Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hello Everybody, I try to accept the postbody from a POST-Request in a cobol program. With a GET-Request everthing works fine (with "field a pic x(5) identified by fielda"). I get all the expected data. But problems occur with the POST-Request . I tried Chris Glaziers Cobol-Example (LInk: Calling COBOL program using AJAX with POSTed data )In the mentioned buffer I got only NUL-Data. Chris Glaziers Example show the accept to values from the environment. This works great. My Postbody is a normal Json-structure with the length of 212 Bytes. After execution of the Post-Request the received content-Length for example shows 212 Bytes. The accept-buffer for the POSTBODY contains 212 NUL-Bytes. I am really confused. I warmyl welcome a solution for this problem. Thank you Roland Stein
We are setting up our application in new AIX 7.3 server with Visual Cobol Devhub 7.0 - Patch Update 18. and we are getting below error when compiling a cobol program. The program/compilation script does not have reference to xlc so not able to understand why the below error is getting displayed. The module is getting compiled without any program errors and when creating .o file, the error is displayed. Kindly help to resolve the issue Please let us know for any further information. Compilation log for BATCHCON.cbl: Current Configuration :Base Directory : /projects/pr/server** -- **Compiling : BATCHCON.cblMember Name is : BATCHCON.cblMember is : BATCHCONCompiling with COBOL Options ...cob64 -x -v -V -t -C DIR"/projects/pr/server/scripts/cobol.dir" BATCHCON.cbl -o BATCHCON -L /usr/mqm/lib64 -lmqicb_r -L /db2inst1/sqllib/lib64 -ldb2 /opt/microfocus/VisualCOBOL/lib/cobdb264.so /opt/microfocus/VisualCOBOL/lib/cobrtxml64.so /opt/microfocus/VisualCOBOL/lib/libxerces-c64.soversion @
Hello everyone, I have encountered this error while launching a compilation on an AIX environment with Cobol 8 : * Accepted - noint *1502-U Open fail : 'stdin' cob64: error(s) in compilation: stdin make: The error code from the last command is 16. Stop. ABNORMAL END Any help please ?#COBOL8#aix
Hi, We are doing the Micro Focus Cobol Fundamentals Course (COBOL in 1 day) but when compiling there is no license available for Micro Focus COBOL v6. Course documentation does not talk about the need for a license. What should we do? Regards
I have a .dat data file that inexplicably doubles in size and whereby all the records get duplicated. It seems to occur once every three months or so. The problem began in March, and it happened again this month. I checked all my programs including the ones that run automatically over night and nothing stands out as a red flag. I have rebuilt the data file to check for possible corruption, but everything seems okay. There have not been any changes to how our programs write to this file in over a decade. The data file is an IDXFORMAT-8. Has this ever occurred to anyone else? Are there any suggestions on what steps to take in order to find the source of this problem? Thanks, in advance.
HI, We have a C# WCF Service that opens a Database Connection and begins a transaction when a request to one of the available web methods is made. After this connection is opened and the transaction has begun, we make a call to a COBOL Module that performs some common functionality with a database connection. This call is performed through a Wrapper that creates a RunUnit similarly as described in this forum post: https://community.rocketsoftware.com/discussion/rununit-recommended-approach-with-wrapper#bm01394414-3974-4f15-8877-465354def492 . The Wrapper passes our SQL Connection and Transaction to the RunUnit which uses the following to bind our database connection: EXEC ADO BIND CONNECTION TO :DBconn WITH TRANSACTION :DBtran END-EXEC The COBOL module is then called and functions as intended. The very last step of the Wrapper, we issue StopRun() on our RunUnit to free any resources. We'd then continue on with our web method, making further database updates/sele
Visual Studio CE 2022 Visual COBOL PE V8.0 Native code I have an application using ACUCOBOL windowing functions ( $SET preprocess"window1"). When I run the program from within the IDE (Start without Debugging) instead of a well formatted output window showing the app's screen a full screen output window opens with the formatting of titles and input fields completely distorted and spread across the window. I am unsure whether this is a VC issue or a VS issue. If the former is there a solution? TIA
I am trying to get free access to enterprise COBOL to try it out (it's features like flowchart, program control flow, etc.). I applied for it and got license but I am not able to install it (it downloads a no-readme file). Can someone help me with it? I have a Mac and if Enterpris COBOL can't be installed in it, is it possible to get Azure cloud access or something where I can use a browser to try out its features.I am really interested in Visual COBOL and COBOL analyzer products and am looking for a long term collaboration with MicroFocus but want to give out initial trials to actually try out the contents of the YouTube training videos.
Is the Visual COBOL product supported in MacOS? Does the product also assist me in converting code from COBOL to Java/C for eg.
We need to replace the acucobol browser control with one that does not depend on IE 11. We have tried working with several .net controls including cefsharp and dotnetbrower. We have tried writing our own .net wrappers around both and directly using both in our cobol code. Our latest try is to embed the cefsharp control into our cobol code using netdefgen. It works fine until we put the dll generated by netdefgen for the event handler into our bin folder. Once we do that we get "Could not load file or assembly 'CefSharp, Version 0.0.0.0, Culter=neutral, PublicKeyToken=null' or one if its dependencies. The located assembly's manifest definition does not match the assembly reference" CefSharp is not the dll we generated the def files and event dll from. But it is used by the dll we did this for. It does work fine when used by the dll we generated it for, We can see this by running without the event dll in the bin
Acucobol GT version 10.5.0. Windows client/server environment. (Not thin client). We have a third party online payments window that we just upgraded to Web-browser2. We previously used a control using ieframe.dll, which is not able to execute certain javascript. The browser control is the first control in a screen section along with a couple of push buttons. Everything is working fine except for one issue: When displaying the web page, previously we were able to cause the browser control to be "focused" with the first field (account number) highlighted. This allowed the user to continue without having to highlight the field with a mouse. Typically the user swipes a credit card in this field, then proceeds to the next step. With web-browser2 we are not able to set the focus to the browser control, causing the user to have to use the mouse each time in order to give focus to the browser. This is a major annoyance to users w
What is the best way to determine the number of records in a relative record file?#VisualCOBOL#RelativeRecord
Hello, When I tried to register a custom-made dll from cmd, the dll got registered successfully.However, when I try to register the same dll using a Acucobol program, the process is not successful. (Didn't display anyexception). The command I used was C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\Regasm.exe E:\\SWRUN\\ACUCORP\\BIN\\test.dll /tlb: test.tlb Please advise. Thanks, Aji Cherian
Is there a way to turn off the code reformatting? We want the code to stay the way it is but every time we change or move a line of change it gets reformatted. We are using VS 2022/MF COBOL 8 Thanks
Join Our Webinar Building for the Future OpenText Micro Focus Visual COBOL and Enterprise Suite 9.0 Event Details Date: July 12, 2023Time: 8:00 a.m. PST | 5:00 p.m. CET Speakers: Scott Nielsen, AMC Product Marketing, OpenText Guy Sofer, AMC Product Marketing, Open Text Modernizing core business systems is now mainstream. Over 70% of organizations plan to modernize their existing COBOL and mainframe applications. Cloud continues to drive IT transformation, but improving agility is also important for many IT leaders. Now is the time to start that DX journey with a proven partner in modernization. Join the Open Text product team for an exciting application modernization and product launch event: the release of Visual COBOL 9.0 and Enterprise Suite 9.0 from OpenText™. Join the COBOL and mainframe community for a closer look at these latest innovations supporting COBOL development and mainframe migration. During
I'm an ole school programmer getting back into COBOL programming (for fun, not profit) currently using Visual COBOL in VS2022 to produce an application with character-based screens (i.e., screen section) and I have a couple of questions: How can I print a program listing? Ages ago on the mainframe I would print listings showing the assembler code. Is this even possible in my configuration? What are the prevailing COBOL coding conventions? If this question is likely to trigger a war of conventions, please ignore it and I'll make up my own. #standards#Listings#VisualCOBOL
We have a batch system which is being converted from NetExpress to MF Visual COBOL 8. In VS when debugging we are using Environment Variables to define file and report paths. But when the EXE is used in Testing or released to client we don't want the Environment Variable included as the report/file paths will be in the BAT file. If we don't tick the 'Use variables when building the project' when debugging will the variables be used but when compiling/build for release will the variables be ignored? In NetExpress we had two projects, a development project where the environment variables would be populated and then a release project which the environment variables would not be entered. I am trying to get away from having to have separate projects, one for development and one for release.
HI Team, I am converting RM COBOL to Visual COBOL. but getting the below error. Could someone please help. I am getting below Warning. Seems this would be an Issue. When I compile this same program in RM It doesn't give this warning.
Hi everyone,Haven't seen an example from NetExpress product that can;1. open an Excel file (say; myfigure.XLSX)2. go to a certain cell (say; A3)3. Then get the cell value and save it in a .DAT cobl datafileAnyone here? Thank you very much.infoRene#SupportTips/KnowledgeDocs
Hello,I'm having trouble using "Wait for a debuggable attachment" feature of Micro Focus COBOL VSCode extension with "any" parameter : I successfully make it worked starting a "Wait for a debuggable attachment" runtime with "directory" in launch.json : { "type": "cobol", "request": "launch", "name": "COBOL (native): Wait for attachment", "waitForAttachment": { "directory": "${workspaceFolder}" } } But when I change "directory" to "any", it doesn't work anymore : The "wait" runtime starts successfully but it doesn't catch any program cobol (either with environment variable COBSW=+A or calling CBL_DEBUGBREAK in cobol program according to documentation).Instead of, it opens "Animator".launch.json with "any" parameter : { "type": "cobol", "request": "launch", "name": "COBOL (native): Wait for attachment", "waitForAttachment": { "any": {} } } Any idea how to make it work ?Thank you
I created an application with ESQL using Visual Studio 2019 and Visual Cobol 6. Now I have migrated to Visual Studio 2022 and Visual Cobol 8. Since then, the menu item for starting the OpenESQL Assistant is no longer available. Who knows advice.
I am trying to connect with MS SQL Server using acuSql but I get:SQLCODE -1SQLSTATE 08001 01 servername pic x(30) value "(LocalDb)\\MSSQLLocalDB". 01 userid pic x(20) value "PCANDRE\\andre". EXEC SQL CONNECT TO :servername as C1USER :userid USING :passwd also tried withoud userid. Configuration: ACUSQL_RUNTIME_DLL asqlsrvr.dll However this works: sqlcmd -S (LocalDb)\\MSSQLLocalDB
I am trying to connect with MS SQL Server using acuSql but I get:SQLCODE -1SQLSTATE 08001 01 servername pic x(30) value "(LocalDb)\\MSSQLLocalDB". 01 userid pic x(20) value "PCANDRE\\andre". EXEC SQL CONNECT TO :servername as C1 USER :userid USING :passwd Configuration: ACUSQL_RUNTIME_DLL asqlsrvr.dll However this works: sqlcmd -S (LocalDb)\\MSSQLLocalDB#Other#SupportTips/KnowledgeDocs#SupportTip
Hi, I am trying to create a build pipeline for a simple cobol console app created using Microsoft Visual Studio. I have installed Microfocus Visual cobol and VS 2022 in an azure VM which I use as self hosted agent in Azure pipeline. While executing the pipeline , I am getting the error "The nuget command failed with exit code(1) and error(NU1101: Unable to find package MicroFocus.COBOL.Runtime. No packages exist with this id in source(s): NuGetOrg Errors in c:\\work\\1\\s\\DemoCobolApp\\DemoCobolApp\\DemoCobolApp.cblproj NU1101: Unable to find package MicroFocus.COBOL.Runtime. No packages exist with this id in source(s): NuGetOrg)" Am I missing any nuget configuration. Please note that the same app can be build successfully using VS 2022 when running in the same machine. Any help is appreciated. My actual target is to create Azure CI/CD pipelines for cobol program. Hence I am doing a small poc by creating a small cobol console app. Thanks, Jay#azurepipeline#Knowledgepartner
Hi - We are moving from NetExpress 5.1 to Visual Studio 2022/Visual COBOL 8.0 We have several program that use COMMIT TRANSACTION transname-name these compile in NetExpress but in Visual COBOL they error with COBES0100 Incorrect SQL statement syntax near: ONE We are compiling using the same COBOL.DIR. This the a setting, directive or something else that will get the program to compile without changing the code? 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.