Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Dear sirs, when I run the command: call cc74 'FindFirstFileA' using by reference findFileName *> lpFileName by reference WIN32-FIND-DATA *> lpFindFileData returning fileSearchHandle I'm getting an error 173 Called program file not found in directory/drive FindFirstFileA How do I solve this Att Rogerio Barbosa
I search a way to define in a excel-cell a formel and had problem to do this or to recognize this field/cell as formel Send data, text, date, values is not a problem. The given example "excel.cbl" is not very exhaustive, in msexcel.cpy are many information, but i don't have found the correct solution. Who is interessed to exchange information on the excel/office integration? who can help me for formel? (not managed cobol)
Hi, I wanted to check it's okay to have Net Express 5.1 and Visual COBOL 9.0 installed on the same laptop? Will initially be using VC native code and still supporting out Net Express application so I wasn't sure there will not be an issue with the rts. Thanks
I originally created this post a while ago : How to set Paper Size being passed from Printer Selection , and I never got it to work. Here is my code: PREPARE-PRINTER-WITH-STANDARD-PRINTER-DIALOG. CALL "P$SETDIALOG" USING PrintDialog. CALL "P$DisplayDialog". IF DIALOG-RETURN = 0 move SET-DEFAULT-PRINTER to default-option move dpb-len of MyDefaultPrinterBrowser to dp-len move dpb-body of MyDefaultPrinterBrowser(1:dp-len) o dp-body call "PC_PRINTER_SET_DEFAULT" using by value default-option by reference MyDefaultPrinter PERFORM OPEN-PRINTER-PARA END-IF. What I would like to do is grab what was changed in the Windows Printer selection box, and have it prin
Problem: How do I get the day of the week for any date? Resolution: See attached source code example. Attachments: dateconv.zip Old KB# 4678
I am having an issue running a single program in my project. I had made some changes to the WPF screen, and in the code as well. When I compile and run my software - when I execute my software, and select the program I changed from the menu, I get the below error message. MicroFocus.COBOL.COBOLRuntimeException HResult=0x80131600 Message=198 Load failure [Program has an incompatible codepage dependency "PR450000" is using codepage Western European (Windows) but the main program "MSIMenu.App" is using Unicode (UTF-8) Please see documentation for more information.] I am not sure how to fix this - both my menu and the program being called (PR45000) both have this code in my WPF Screen <?xml version="1.0" encoding="utf-8"?> So I am not sure why it is saying this, and when I run any other program that is in the project - they all work correctly. Where is it seeing that I have the codepage set to Western Europe (Windows) ?
Hello, I have a small C# application from a vendor that allows me to communicate with and receive data from an ID document scanner. I've already managed to "translate" some parts to Visual Cobol but there are others that give some errors in the conversion. Would it be possible for you to help me with this conversion? Thanks. Alberto Ferraz
I tried using your TestExcel program to read a cell. I set the file name with move spaces to ExcelFileName string 'z"C:\\Users\\alan\\Documents\\Micro Focus\\' 'Net Express 5.1\\WORKAREA\\SMNG\\emailsmar25.xlsx"' delimited by size into ExcelFileNameThis is in the NE5.1 IDE with Wrappack 18 on Windows 10. Error: Open methods of Workbooks class failed on "Open" The path C:\\Users\\alan\\Documents\\Micro Focus\\Net Express 5.1\\WORKAREA\\SMNG is correct. The file name is emailsmar25.xlxs I do not understand what is wrong. I examined the ExcelFileName while animating and it is correct. Thank you, Alan Beecher
Hi - I have a ISAM file.. File is in Recovery Status .. causing 9802 in program opening this file... I cannot recover the file using recover1 since file is used in real time system.. Is there any other method to recover this file or skip the bad record ? #RM/COBOL#ISAM
I need to call an API written in C# in out Micro Focus COBOL application. I found this post very helpful RE: Tutorial or example for calling a URL and processing the response one thing though the call needs to ba a POST with input in JSON I can string together the body - but what is the syntax to attach it to the request?
I have a program that runs from the command prompt from my program. This is the command: cmd.exe /C cscript //nologo D:\\NEW_MSI\\MSI_DATA\\MakeGuid.vbs > D:\\NEW_MSI\\MSI_DATA\\myguid.txt I am using CALL "SYSTEM" USING WS-CMD-LINE to run the command. (the command above is placed in WS-CMD-LINE before the call to "SYSTEM". The command works great from a dos prompt, but when I use it in my program - it does not work at all. The myguid.txt file is never generated. Does anybody have any suggestions on how I can get this to work?
Knowing that Visual Cobol for Eclipse is not compatible with DialogSystem instructions. If I would like to adapt a COBOL program that uses DialogSystem, is there any example or document that explains how it should be done? Is there in VC for Eclipse any tool similar to DS that facilitates the migration?
Buongiorno , ho necessita' di contare il numero di caratteri di una stringa,rispetto all'ultimo carattere valido contenuto in essa. Data la variabile WS-DESTINATARIO dichiarata PIC X(30) che contiene il valore "COLOR EXPERT "quindi 12 caratteri complessivi compreso lo spazio fra COLOR e EXPERT. 1) Utilizzando l'istruzione INSPECT WS-DESTINATARIO TALLYING CONTA-CAMPO FOR CHARACTERS ottengo nella variabile CONTA-CAMPO non il numero dei caratteri contenuti nella stringa che sono 12 ma 30 che e' la lunghezza complessiva del campo. Non trovo il modo, nella sintassi del comando, di ottenere il valore 12. 2) -Se utiizzoINSPECT WS-DESTINATARIO TALLYING CONTA-CAMPO FOR CHARACTERS BEFORE SPACE ottengo il valore 5 ovvero conta i caratteri sino al primo spazio ( puo' andare bene solo su valori contigui di contenuto di campo) 3) -Solo se utilizzo l'istruzione INSPECT WS-DESTINATARIO TALLYING CONT
I inherited a substantial application written in Micro Focus COBOL. I need to make changes to the way the connection strings are used. I sniffed through the code - and found 22 (!) with CONNECT USING statements. The application contains hundreds of programs, each compiled and deployed individually, with a handful of EXEC SQL statements - and as far as I can tell every one of them has no problem getting to the database. How are all the other programs connecting?
The setup stops with an error message indicating that another version of Visual COBOL (or COBOL Server) is already installed and should be uninstalled first. Full article: https://portal.microfocus.com/s/article/KM000007637#SupportTips/KnowledgeDocs
Hi! I am playing around with the software, trying to update our conversion programs to no longer use Database Connectors. In my program I have an input file that is an RM\\COBOL ISAM file, and when I run the program, it is giving me a 9+,00 error code. I have tried adding the $SET DIALECT(RM) FILETYPE(21) command to the beginning of the program to let the program know that I am using an RM\\COBOL file, BUT, when I do that, the embedded SQL commands are no longer recognized by the compiler, and I can't get the program to compile. Is there a way to do this, or am I stuck using Database Connectors for my conversion programs?
Hello, I am trying by all means to establish a connection to a SQL Server database, I supposedly connect but cannot see the data in a table. These are the errors: connection to the database establishedError: It is not possible to Access the Province TableError code: -00000000208Description Error: The object name 'province' is not valid Please can someone help me. Thank you. #VisualCOBOL#SQL
Hi Gents,Any experiences using msodbc and unixODBC on RHEL with VisualCOBOL8 on RHEL to connect SQL2012? We are currently experiencing DB reconnect issues to our SQL2012 with our COBOL 8 programs on RHEL8 , using using msodbcsql18 and unixODBC2.3.11 .It was working before with the same COBOL source codes on RHEL6, COBOL5express, using msodbcsql11 and unixODBC2.3.0.Thanks
I am using VS Code to code Visual COBOL. And one of my programs will require to connect to DB2 (MySQL Workbench). As per my research, I need to have ODBC to apply the OpenESQL in microfocus. But as I was trying to compile my cobol program, I am hitting an error saying: error COBCH0149 : No SQL directives have been set. But on the upper part i have declared $SET SQL. I also tried updating the default directives to include sql, i am still getting COBCH0149 error. #VisualStudioCode
I was trying to connect to DB2 using ODBC. When i try to compile my program on VSCode, I am getting COBCH0149 No SQL directives have been set. But before compiling I have set the default directives to include SQL also I have set the value before the identification division. $SET SQL I tried to include other directives like below: $SET SQL(INIT DB=PSDB2CONN PASS=postgres.****) Error: COBCH0053 : Directive DB=PSDB2CONN invalid or not allowed here.#VisualStudioCode#DB2#DB2.Connect
Hi Everyone, I've got a client that just started using AcuToWeb with version 10.4.1 (it was the latest version when I developed the current version of my software) and we're running into some visual/UI problems. Originally, without any scroll bars, if the browser window wasn't large enough to show the window, it was just cut off. I added a CSS file for a custom Theme with the only change being I added an html/body style that sets "overflow: auto". That gave me the browser scroll bars back, but the AcuToWeb "virtual" application window still seems to think that the rest of the browser canvas is inaccessible. Is there any way to change the SCREEN settings/variables so that it's understood that the virtual canvas is unlimited and that the browser should handle all of the scrolling, not the application windows? It's doing things like making the status bar huge, so that it's visible on the screen by default, but if you scro
Looking at documentation for Visual Cobol in Visual Studio 2019/2022 in Developing Applications in the IDE > Building Cobol Applications > Compiling Cobol Applications > Using Preprocessors > Additional Preprocessor In the section Specifying an additional preprocessor there is a note: Note: It is not possible to combine the "Micro Focus - EHTML Preprocessor" and "Micro Focus - XML Preprocessor" with other preprocessors. Selecting one of these preprocessors will prevent you from adding any other additional preprocessors. See Integrating Preprocessors into Visual COBOL for instructions about how to integrate an additional preprocessor with the list in Visual COBOL. My first question is, where is the section "Integrating Preprocessors into Visual COBOL"? Searching for it gives nothing useful. My second question if this is the case, what are the recommendations for code that handles both oracle (with pro*cobol) and XML (using the XML preprocssor)? Some ex
We have recently upgraded to docker image of Visual Cobol DevHub 8.0 (Patch Update 9) from DevHub 7. and we are getting below error when while calling .int compiled module. execution error : file 'server/bin/module.int'error code: 40, pc=5F, call=1, seg=0 40 National Language Initialization not set up correctly I have verified that LANG is set as en_us which is available in /opt/microfocus/VisualCOBOL/LANG folder. Please suggest the solution to resolve this issue.#VisualCOBOL#MicroFocus
Is it possible to show a quick-info when hovering over a bitmap that is shown in a standard grid ?
When we log into our software - the program is giving us an 9D,18 error. According to the documentation, that means that "An Error occurred when creating the primary key for a secondary table". But when I get this error - that is not what is going on in the software - we are just opening and reading files. I also found that the 9D,18 error could mean that both types of SQL Authentication is being run in the ACUFH.TXT file. That is not the case here either. Can anyone help with this error? Our customer is dead in the water until we get this fixed.
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.