Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
We have microfocus Visual COBOL version 2.3 on server Red Hat 6. Our database growing for 15% and programs begins work 3 times slower.
Hi guys, we are using a client generate by imtkmake using MICRO FOCUS SERVER EXPRESS 5.1 for pSeries running AIX installed on the customer machine that sometime failed with error code 0200. After various tests we identified what could be a possible cause, i.e. the size of the buffer containing the request was shorter than the request itself. We therefore extended the initial size that had been generated by imtkmake bringing it from the value 100000 to the value 150000 but the result did not change and we always get the error 02000. The counterparty receiving the request told us that data recevid it is truncated despite the size of the buffer that contains it. I couldn't find information on error 02000, what is the cause that generates it or where can I check to determine the cause?? Is it possible to extend the size of the buffers provided for requtest/respons? These are code use to made the call to the webservice : &
Hi, we use level 78 constants to keep our data consistent e.g. LENGTH-PATH, LENGTH-CITY etc. So in the WORKING STORAGE SECTION we only need 03 CUST-CITY PIC X(LENGTH-CITY). The problem is that we want to use these also in the FILE SECTION. But our source only compiles correctly if the first statement of the FILE SECTION is an FD. Do you have an idea how to solve this issue ?
Hello Micro Focus Community, I'm encountering difficulties when attempting to use transactions with AcuCOBOL-GT 10.4. Initially, I noticed that version 10 includes, by default, the RMFM file system, which, according to a community post, doesn't support transactions. I reverted to a previous version, and the errors ceased. However, when performing a ROLLBACK, the information is committed, and the reversal is not carried out as expected. Below is a simplified example of my code: START TRANSACTION.SET WF-OK TO TRUE.PERFORM REGISTER-INFOIF WF-OK COMMITELSE ROLLBACKEND-IF. The code above involves processing various records, each handled by different paragraphs (REGISTER-CLIENT, REGISTER-PRODUCTS, etc.). Upon executing ROLLBACK, the information is not rolled back as anticipated. Any suggestions on how to approach this issue? Has anyone faced a similar situation with AcuCOBOL-GT 10.4 or has insights on configuring transactions correctly in this version? I appreciate any help or guidance you
We need to find out if one of our customers have had certain Visual COBOL Server patches applied. Is there a way to see that? Where would I look?
I am unable to find any resources on this that resolve my issue. I'm quite new to COBOL and the dotnet ecosystem. I am on the personal edition where I've created a COBOL class library (.NET) and a C# console application (.NET). I referenced the class library project and implemented the function, but I get this error shown below. Error System.IO.FileNotFoundException HResult=0x80070002 Message=Could not load file or assembly 'MicroFocus.COBOL.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0'. The system cannot find the file specified. Source=SearchFrate.Core StackTrace: at SearchFrate.Core.Class1.Next() in C:\\Users\\repos\\ProjName\\ProjName.Core\\Class1.cbl:line 9 at Program.<Main>$(String[] args) in C:\\Users\\repos\\ProjName\\ProjName\\Program.cs:line 3 C# using ProjName.Core; Console.WriteLine(Class1.Next()); COBOL class-id ProjName.Core.Class1 as "ProjName.Core.Class1". working-storage section. method-id Next static. local-storage section. proced
Hi, I have a problem to retrieve an activation code of RMCOBOL 12. I rececieved the below error message: Error occured. Please try again later! Please tell me what can i do. Thanks.
I had the free versions of PE for Visual Studio 2022 on my PC, but could not get to work. When I downloaded the software, I had just changed my ISP and it was dropping out all the time. I have deleted all of the free PE software and the Visual Studio from my computer. I had installed Visual Studio 2022 and was concerned that maybe I had installed the incorrect version for the free PE? How do I go about getting a new copy of the free PE and is the Visual Studio 2022 the correct version that I should be using? thanks#VisualCOBOL#QuestionaboutgettingnewcopyofPEandwhichVisualStudioIshouldhvaebeenusing#Installation
In our application we use the CBL_GET_PROGRAM_INFO function embedded in a copy to determine and output the name of the active program for logging purposes.Now we want to migrate our application to JVM Cobol. Our search for an adequate function there has so far been unsuccessful. How can the program name be determined there?
I'm using 10.5.0 thin client on Windows 11 and it comes up with Memory Access Violation when I run Shell32.dll to display a PDF file. When I use thick client, there are no problems, or if I drop the @[Display] and run this in thin client - then comes up with authorisation issues.
Problem Who provides support for RM/Panels programs? Resolution The RM/Panels product was one of the forerunners to the WoW product range and provided a way to quickly move a RM Cobol application from a character based application to a Windows based application without having to rewrite all the COBOL business logic. The last available version of RM/Panels was the 2.1 version and the documentation for that product can be downloaded from this location: RMpanels_v21.pdf The RM/Panels product is supported by the company England Technical Services (ETS). Below is a link to their home page: http://showcase.netins.net/web/etsinc/index.html Note: The standard COBOL syntax is supported by Micro Focus; however the specific syntax of RM/Panels or issues relating to the use of RM/Panels are supported by ETS. Incident # 2796367 #RMPanels#RMCOBOL
so the following; 01 di-val string occurs any. set size of di-val to 1. move "123" to di-val(1) set size of di-val to 2. move "ac" to di-val(2) When "set size of di-val to 2" is executed, di-val(1) is set to null (ie. all elements in the array are set to null) Is there any way around this or an alternative approach. I basically want an array that can contain strings of varying lengths without taking up too much memory.#managedcode#VisualCOBOL
I am taking the Micro Focus COBOL Fundamentals course (https://www.microfocus.com/en-us/cobol). I have installed the "Learn COBOL" extension into my pre-existing Visual Studio Code installation (using the extensions menu). Following the video instructions I have created a file called "Hello World.cbl" and typed in the COBOL code suggested. My program runs fine, but it does show an error as shown in the screenshot below. This suggests to me that something about my Visual Studio Setup is not correct. I had to add .cbl as a file extension because it did complain about that. So I assume there is also something else not correctly applied from the Micro Focus extension installation. The video at this part of the course suggests that we write this Hello World program to check that our environment is correctly set up, but then it does not provide any assistance in getting it correctly setup if it is not. We were directed to come here with any questions, so I hope this is the correct place to
Installed Cobol software: Micro Focus Visual COBOL Development Hub 7.0 - Patch Update 18 Invoking debug by setting export DEVANIM=+A and trying to debug a program but getting below error and unable to proceed with the debugging. WS-DEBUG=+A /usr/bin/X11/xterm Xt error: Can't open display: localhost:0 Compilation and runtime are working fine without any issues.#VisualCOBOL#aix
Hi, is it possible to know the encode of a string in cobol?
We have been implementing an upgrade from Visual COBOL 2.3.2 to COBOL 8.6 and have been utilizing it within our development environment from Visual Studio. We have now moved to our TFS server which is 14.114.26403.0 (Tfs2015.Update4) running on Windows Server 2016 Datacenter. Initially our TFS build was failing due to the missing COBOL version in our project files however after this was updated, we received errors relating to the MicroFocus.COBOL.CurrentVersion.targets. The first issue was with the same version error, however after fixing the version configuration in the targets file we are running into more issues with the builds. Before I go modifying anything else to have this working, I'd like to ensure I am going along the right path. What I have done so far: Created an offline Visual Studio 2019 Enterprise layout with all of the required packages. Installed Visual Studio 2019 Enterprise Performed all of the steps in https://www.microfocus.com/do
Hi, we works with Visual Cobol runing in UNIX servers and our BBDD use UTF-8 encodig. Now we are starting to transfer informatión with other companies using API´s. The problem we have in this moment is that we recive the information ANSI encode and we need convert it to UTF-8 encode. is there some way to do this in cobol?
My customer has a device that only communicates via COM ports...how does Acu-COBOL Extend handle this? And it doesn't have to be with the API if a better way is available.#AcuCobol#COBOL
We have been running the same software for several years using AcuCOBOL runtime 10.2 on a Windows network with an Oracle database. Everything is fine without error and then randomly we get an error that gives very little information. Just a message that says "ProgramName: Not a COBOL Program". Any idea what would case this?
I have Visual COBOL 9, UnixODBC 2.3.9, Microsoft ODBC Driver 18 for SQL Server installed on RHEL 9. odbcinst -junixODBC 2.3.9DRIVERS............: /etc/odbcinst.iniSYSTEM DATA SOURCES: /etc/odbc.iniFILE DATA SOURCES..: /etc/ODBCDataSourcesUSER DATA SOURCES..: /xxxxxxx/odbc.ini I have ODBCINI set to xxxxxxx/odbc.ini LD_LIBRARY_PATH = :/opt/microfocus/VisualCOBOL/lib:/opt/microsoft/msodbcsql18/lib64:/usr/lib64 When I ran a simple COBOL program to connect to the database, I keep getting the following error:- OpenESQL Error: Unable to load ODBC Driver/Driver Manager. Ensure that yourdatabase environment is set correctly.Connection to database failed: Sqlcode = -0000010000 Sqlstate = IM001 Sqlerrmc = Any help/suggestion will be appreciated. Thanks!#VisualCOBOL#unixODBC#mssql
youtu.be/X6YifKnVuHg#Videos
Hello, As I understand, there are 3 ways of dealing with XML (please correct me if I'm wrong): XML PARSE - a set of statements that are coming from IBM Enterprise Cobol. This syntax is allowed for compatibility reasons XML Extensions -> XML IMPORT/EXPORT syntax that is pure MF XML Extensions -> ORGANIZARION IT XML syntax that is also pure MF and more Cobol-like syntax. With the first one everything is clear. My question is concerning the difference between the points Nº2 et Nº3. Which one is advised to use? Any limitations? How to make the choice? There are the same libraries behind this 2 syntax? Thank you in advance.#xmlparse#xml-extensions#XML#organizationxml#XMLImport
Hi there, I have some questions about Visual COBOL for Eclipse Personal Edition. As I know, the PE license was for 1 year, renewable. I've installed it less than a year ago, then opening it now it's saying "Unable to find a license on this machine"... Once checked in https://my.microfocus.com/myproducts I see the license was like for 3 months... Before it was automatically renewable directly from Eclipse. Now it's not the case. How can I renew my PE license? Thank you in advance.#VisualCOBOL#PersonalEdition#Eclipse#VisualCOBOLEclipse
Our application uses Microfocus Visual cobol 7.0 version and frontend application is in JBOSS. We are connecting the frontend (UI screen) and backend (COBOL) through activeMQ version 5.16.1. In the current logic, the activeMQ address with port number of 61616 and user_id and password are hard-coded in cobol module to send/receive the value from frontend to cobol module and vice versa. I am trying now to enable failover transport logic of activemq to acquire high availability. Logic can be included in the JBOSS configuration for failover as "<config-property name="ServerUrl">failover:(tcp://broker1_url:61616,tcp://broker2_url:61616)</config-property>". We need the failover logic in cobol code to test the HA. Attached the code snippet of current logic for connecting activemq in cobol module. Please suggest me on how to add failover logic in COBOL module. CONFIGURATION SECTION. repository. class AMQConnectClass as "$JAVA
We are upgrading from NetExpress to Visual Studio/COBOL 8.0 We have a program that runs fine under NetExpress but with Visual COBOL it error with SQLCODE = 000019514- (Cursor is not prepared) The program is doing the first fetch fine but gets the error on the second fetch, we are doing an update on another table between the fetches but the DB connection is not being disconnected (like in other 19514 issue I have seen). We are using transaction level commit, so a commit is done between the fetches. Any help would be appreciated. Thanks
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.