Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
I would like to deserialize JSON from a REST call into an array and I'm not sure of the exact syntax. Are there any examples you can point me to or can you provide the syntax? I am working with Visual COBOL 2.2 and Visual Studio 2013. Thanks! This is what I have so far: $set sourceformat(variable) $set ilusing "System.Net" $set ilusing "Newtonsoft.Json" $set ilusing "System.Configuration" $set ilusing "System.Collections.Specialized" class-id CallRestService implements type IDisposable. working-storage section. 01 wc type WebClient value new WebClient(). method-id RestService. local-storage s
hello, I have no idea how to create a package of the Airport demo application for mobile and how I can deploy the application on a mobile phone (what files etc...) The mobile step-by-step presentation doesn't talk about packaging Any suggestion? Many thankx Any suggestion?
I tried to use Visual COBOL 2.3 to connect to IBM MQ 7.5 which is installed on the same machine (RHEL 7.2) The sample code is from IBM MQ 7.5 sample folder and I follow IBM document (instructions) , the sample is also posted online as www.davar.net/.../amq0put0.cbl I setup and compile the code as these steps: export COBCPY=/opt/mqm/inc/cobcpy64 cob64 -xtvP amq0put0.cbl -L /opt/mqm/lib64 -lmqicb_r Everything is good, create the 64-bit executable: [cobol@rh7 samp]$ cob64 -xtvP amq0put0.cbl -L /opt/mqm/lib64 -lmqicb_r cob64 -C nolist -xtvP amq0put0.cbl -L /opt/mqm/lib64 -lmqicb_r * Micro Focus COBOL V2.3 revision 000 Compiler* Copyright (C) Micro Focus 1984-2015. All rights reserved.* Accepted - verbose* Accepted - reentrant* Accepted - nolist* Accepted - list("amq0put0.lst")* Compiling amq0put0.cbl* Total Messages: &n
Problem: When attempting to call a C function such as "time" directly from a Net Express program linked as an .exe, a 173 error is returned on the call. How can I get the call to find these C system functions? Resolution: In order to call C functions such as "time" directly from a linked Net Express executable, you either need to specify the litlink option for the call so the function will be resolved at link time to the MSVCRT.LIB import library or you need to load the C library dynamically at run-time. Example: call "time" using by reference time-row If you compile this for .int/.gnt then it should be found OK as the C run-time will be loaded automatically and the entry point will be available. If you are linking your program as an .exe/.dll then you must load the C run-time support manually in order to make these entry points available.. You can do this dynamically at run-time by using the following: 01 pp procedure-pointer. set p
Hi, I am trying to create a managed dll from command line using -ILGEN directive. While creating the dll I am also trying to consume the .res (Resource script) file but I am unable to do the same. can anyone please help me with a way to consume the .res or .rc file in managed dll from command line. Thanks Anand
Let’s start with a simple example. Declaring Local Variables Today variables are declared in the local-storage section of a method: In the next release of Visual COBOL you will be able to declare them within the procedure division body of your method. Optionally, you will be able to assign a value to the variable during declaration : The same principle applies to framework types. For example, declaring the .NET Class Library structure System.DateTime. and again, optionally a value can be assigned on declaration: Declaration of Iteration Variables or In the current product, the variables i and s have to be declared in the local-storage section of the method. But as shown above, in the next release, the iteration variables can be declared within the scope of the iterator. Declaration of Exception Variables Likewise, currently the exception variable e has to be declared in local-storage, but in the next release it can be delcared at point of use. Scope T
Hi, I have a cobol program that use ESQL in Server for Cobol 5.1 , the oracle odbc client x32 has been migrated from 11.02.00.01 to 12.01.00.01. I did not recompile the program, I use the same dll, and the unique field defined numeric is: 10 RAG-IMP-CNT-EU PIC S9(13)V9(2) USAGE COMP-3. the column of the table is: RAG_IMP_CNT_EU NUMBER (15, 2) NOT NULL if I use in a SELECT works fine,instead if I use the same field with an INSERT\\UPDATE oracle odbc driver 12 give ORA1722. What can I check ? thank bye #ORA1722
hi,I'm using "Micro Focus COBOL Server 2.3.1142" on Windows Server 2012.The same program compiled with Enterprise Developer 2.3.1 (Eclipse version) with same input data on my server work fine, instead on the server of customer give error rts 198.the command line is:C:\\"Program Files (x86)"\\"Micro Focus"\\"COBOL Server"\\BIN\\RUN.EXE LBTESO37.DLL 1>E:\\ALA90T\\FILES\\SYSOUT_LBTESO37.TXTerrorlevel = 198The customer told me that mfdebug.log was not created .I have attached mfsupportinfo and environment vars when error happens.All other program (also DLL) work fine....What can cause this error ?Thank..#rts198
I am trying to get the Net Express 5.1 WP8 package installed on our Windows Server 2012 VM and it continually produces errors when it reaches the step to update the Registry. I am signed on as an administrator, and am running the installation app as an administrator. I can manually run REGEDIT and do whatever I want to do in the registry (obviously being careful to undo what I do so as not to corrupt the registry.) I have read the post about this error on Windows 7 and have read the post referring to Server 2012 support back in 2013. Still no luck.Is there any help to be found? Thanks for any suggestions. Tom#64bitWP8installationerror
My Visual Cobol is running now! I try a most simple little program to run (display on the screen 'Hello World'. It seems to be running, but i can't see the text on the screen. Background on the screen is black of course, but my text is also black. With Help function i found out that there should be a screen section in the Micro Focus extensions to Cobol. Can I use this Micro Focus extensions to Cobol and install it with mij Visual Cobol Personal Edition? Or, if this not is possible, someone a solution to display the text on the screen? Thanks, Hemmie
I am trying to connect to a database using net express 5.1 and the error returned is -1390 which means the DB2INSTANCE is not set. However, it is set so not sure why we are getting this error. Anyone face this issue? We are able to connect on other terminal server but this one gives us this error.
Is it allowed to post potential Acucobol Job opportunities in this community
We are replacing our legacy Cobol security programs with a new Security System which runs as a Web Service. Working with legacy code, I have an unmanaged cobol subroutine (SUBR01) that is compiled as a GNT. This, in turn, calls a DLL (DLL01), registered as a COM object, written in C#, which calls another DLL (DLL02) which acts as a Web Interface to the Security System service. This way I have a nicely encapsulated way to call the Security System from any legacy Cobol program. The problem I’m running into is this: When I call SUBR01 from an unmanaged Cobol console app, it works fine. However, when I run it from a web program, also written in unmanaged Cobol, it hits DLL01 fine but when DLL02 tries to access it’s config file, it throws an error “System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.ArgumentException: Illegal characters in path.” It seems like the messaging between DLL01 and DLL02 is somehow getting garbled or corrupt
In a native cobol program, I'm trying to make a web request using the WinHttp.WinHttpRequest.5.1 com object. The process works just fine if I'm sending text to the web site: INVOKE WINHTTP "new" RETURNING WH. IF WH = NULL MOVE "WINHTTP Service failed to initialize" TO LOG-REC WRITE LOG-REC END-IF. MOVE "CALLING ESEC" TO LOG-REC. WRITE LOG-REC. INVOKE WH
Hello, I need to create a parameter which shows me the printers are installed and I pick one for each type of document (For example: Invoices to Epson ESC/PR, Orders to Samsung 2145, etc.). How I can get the printers that are installed on the system? Thanks Alberto Ferraz
Hi, Is there any way the calendar position without being the month in which we are?I have two calendars: one for check-in and one for check-out. Walking with the left (check-in) for June and click on 10 June (for example) wanted the right timing to position itself on 11 June. Thanks
Our application is a collection of originally Unisys mainframe tasks (IBM jobs) that over the last 18 years we have converted to Object COBOL, then Net Express, and finally Visual COBOL 2.3 for VS 2013 Update 1. Each task consists of an .exe using a Screen Section and DISPLAY/ACCEPT to input run parameters calling a number of .dlls and passing the run parameters through a Linkage Section. Every task is executed from a single parameterized .bat file that, among other things, sets the console redirection switch and appends all program DISPLAY output to a log file. This gives us a record of everything that happens in a run. We are converting this application from native console/libraries to web-accessible ASPXs in #C (replacing the .exes) and managed COBOL (replacing the .dlls) The ASPX program starts the log file by writing some initial info and then closes the file. Each called COBOL program then opens the log file in EXTEND mode, writes (DISPLAYs have been converted to WRITEs)its
We installed COBOL Server 2.3 Update 1 on a Windows Server 2008 server with File Share as the only server role installed/setup/enabled. Our IT security people periodically run a commercially available network scanning tool they refer to as ACAS in order to assure compliance with all of Navy's rules. The following is an excerpt from an e-mail my supervisor just received from them - The software/website is part of the Micro Focus DSD package. It's likely an embedded webserver installed as part of that package. There may be an update to the software, or there may be no way to fix this other than through the vendor. This is the output from the ACAS plugin: When processing the following request : GET / HTTP/1.0 this web server leaks the following private IP address : 172.17.5.118 as found in the following collection of HTTP headers : HTTP/1.0 200 OK Server: Micro Focus DSD 1.20.15 Cache-control: private,no-cache ?Pragma: no-cache Expires: -1 Content-Type: text/html Set-Coo
Can anyone please give me an example of export to excel using Visual COBOL in asp web forms ?#extend9.2.5VisualCOBOL#ASP.Net#FormVisualCobol
Hello, I am entering the main part of the application that I am developing and now comes the main problem: how to make a screen of accomodation reserve management. I do not know what features can be used or what types of fields.I need your help (can be in WPF or Windows Forms). Sending three images to be easier to understand what I want. Thanks
Where can i set this variable in managed console application? in native console application I put it in enviroment
Hi all, I am trying to find a "What's New" datasheet for version 10 (or 10.0.1) but with no success... This link does not seem to work: https://www.microfocus.com/downloads/extend-10---whats-new-215583.aspx Regards Th.P.
In my code I have the connect statement like this: connect / It connect to oracle database (unix) Is it possible to connect to default ado connection?
Hi again, Now I have the problem of replacement of variables resolved need a field to write the original text (which contains the variables to be replaced).I was looking for and I think I have two options: one TextBox or RichTextBox. I looked for some features of RichTextBox and it seems a better solution for this case. I tried to use it and could not even put the RichTextBox content in a variable or the variable content in the RichTextBox. Can anyone help me with a small example? Thanks
Hello, Since the operating system has an update and installed io .NET Framework 4.6 that can not run the Visual Colbol (with Visual Studio 2015) in debug mode, always gives an error in the implementation of the first window. The error: "An unhandled exception of type 'System.ExecutionEngineException' occurred in PresentationFramework.dll" Can anyone help me? Best Regards Alberto Ferraz
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.