Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hello, We need to generate Word documents from our Cobol application. I came across XMLDOCX which allows to create xml files and then convert them to docx document. The API is quite extended. I know that we can generate xml from Cobol. But I don't see how to generate cobol structures from the XML stuctures of the xmldocs api. For example, to add a text, here is the xml model :<pdx:content> <pdx:addText pdx:wordFragmentName=""> <pdx:textRun> <pdx:data pdx:dataId="" pdx:dataType="text|wordFragment">text</pdx:data> <pdx:textRunStyle> <pdx:bold pdx:value="" /> <pdx:caps pdx:value="" /> <pdx:color pdx:value="" /> <pdx:doubleStrikeThrough pdx:value="" /> <pdx:em pdx:value="" /> <pdx:font pdx:value="&q
ODBC Request from C# windows service unable to connect. Running into an issue with a C# application running as a windows service being unable to read from the odbc driver. When the application is running from Visual Studio it works as expected. Once it is installed as a Windows services it generates this error on the execution of the query(below) The Error {"ERROR [HY000] [Micro Focus][Relativity for RM][CRDM]Filename is invalid.\\r\\nERROR [HY000] [Micro Focus][Relativity for RM]Unable to open table: ORDER_HEADER_FILE."} The query SELECT OrderNo, OrderCustContact, OrderShipToName, OrderShipToAddress1, OrderShipToAddress2, OrderShipToAddr3,OrderShipToCity, OrderShipToState, OrderShipToZip, OrderCustPhoneNo, OrderShipViaCode, OrderTotalSaleAmount, OrderFreightPayCode,OrderPurchaseOrderNo, OrderShipToNo, OrderShipToCountry FROM ORDER_HEADER_FILE#WindowsService#error#C#c#ODBC#Relativity
I am using a grid box to list files in a directory so one can be selected and copied from pc or unix to pc or unix. When getting the files from the unix directory I can not see all of my files. Is there a limitation on how many items can show in a grid box?
Hi, In Relativity Designer/DBA, I can change the path to the data file supporting each of my table. If all the data files are in the same directory, is it possible to have a dynamic path, like with a environment variable? Or is it possible to modify it in a batch? Thank you! Simon.#Relativity
We use already webservices provided by other applications. Now we have to provide webservices of our own. I know this is not exactly a cobol problem but I would be interested in a case where somebody has provided a webservice using a cobol applications because I'm not sure about the general procedure. Any help is appreciated.
I don't know how to do this. This is not a COMP-3 field. I'm needing to match the file layout the government gave me. All of their amount fields are defined this way. The internet says I need to use USAGE IS DISPLAY. When I look at the field afterwards it is still 12 characters including a sign. Is there something I need to install? Or, a switch I need to set?
Problem How to setup C and COBOL (Calling C module) projects in Visual COBOL for Eclipse. Resolution The following steps can be used to prepare an Eclipse Project to recognise C projects and Source files:-Install the C/C++ Eclipse plugin via IDE > Help > Install New software > Add 'http://download.eclipse.org/releases/mars'; after that check > Programming languages > C/C++ Development Tools and install these. -Following that, install and configure the 3rd Party MinGW C compiler to be used by the Eclipse IDE, available at URL: https://sourceforge.net/projects/mingw/files/-For the MinGW compiler you may have to set the Windows PATH environment variable (at SYSTEM level) to point the MinCW compiler e.g. as set here: -Install the additional MinGW gcc compiler files via Windows command prompt (command: mingw-get install gcc), from location as shown in the above path.-Create an Eclipse C project (Project Type>Shared Library, ToolChains > MinGW GCC), -Add your sou
Problem How to get count of how many lines of code in project/workspace Resolution Visual COBOL or Enterprise Developer do not offer a built in feature for this but an alternative is to use listing files to generate the information, then use a script to read those.Content of .bat file used: @ECHO OFF setlocal enabledelayedexpansion set /A counter=0 for /F "delims=" %%a in ('findstr /S /I /C:"Lines of Code" *.lst') do ( set result=%%a set /A endresult = endresult+!result:~-5%! set /A counter +=1 ) echo Source line counter results are: echo Listing (.lst) files processed: %counter% echo Total lines of code counted: %endresult% -Complete sample: linecounter-sample.zip.-First set affected projects as follows, in the project properties see example: -Compile affected projects (to gene
Environment RM Relativity DesignerAll Windows Platforms Problem RM/Cobol supports a number of data types and one of them is the comp-6 binary numeric data type. Does the user need to do anything special in Relativity if the file definitions use this data type? Resolution RM/COBOL supports the standard Packed Decimal Cobol data type of COMP-3. It also supports an extended Packed Decimal data type COMP-6. To be able to correctly map a file that contains COMP-6 fields, there are two Cobol Data Types options that need to be set before the file is imported into the catalog.Setting the Cobol Data Types Options in the Catalog here are two Cobol Data Type options that need to be set. They are: Include RM/COBOL data types Computational No Sign data types Points to note: The options need to be set before the Cobol File definitions are imported into the catalog. If the options are not set and the file is mapped to a table, errors can occur when selecting the columns from the table
Now that Visual Studio 2022 Community Edition has been released when will the Visual COBOL PE that integrates with the 2022 edition be released?
how do I stop a process running with the thread? I tried with stop thread but it does not work..
Hi, Would like to ask your assistance to confirm if we install a new license, what will happen to the old license, does it append to the current license and not replace? Thanks in advance.
Hello, We need to test the behavior of our cobol (LINUX Redhat server express) application with PostgreSQL database ; Does Microfocus provide support for this DB ? And what type of connexion MF advice or provide ODBC,other ? Does MF provide or advice for a pre-compiler ? regards
I am having an issue where if a date field is blank on the screen, I want to save NULL in my date field in my SQL DB. How do I do this with Embedded SQL with Visual COBOL? I've tried passing spaces, but that saves the date as 1900-01-01, I've tried passing 020202, and that saves the date field as 1955-04-25.
Hello, I've run into an issue regarding the use of pointers in a .net assembly when using Thin Client(version 9.2.4). The code that follows runs fine when local, however through thin client the acuthin executable crashes when running the Marshal.StructureToPtr in the .net code. I'm suspecting this is because the pointer is getting created server side, rather than client side. I did find some documentation regarding calling dlls that use pointers through thin client(7.2.6.3 Passing pointers in DLL calls ), however neither the -Zm compile option or the M$ memory calls seemed to solve the problem. In the windows event viewer I'm seeing acuthin throw a memory access violation. Any help here would be much appreciated. Thanks! .net Code: public int Swipe_Card(int resultPointer) { var code = CardSwipeResultCode.SwipeTechnicalError; try { var pointer = new IntPtr(resultPointer); SwipeResult result; (result, code) = DebitCreditProcessor.SwipeCard(); Marshal.StructureToPtr(result
Hi, I'm trying to print a form with a string justified on the right margin of the page On version 8.0 of rmcobol I used the function P$TextOutRightJ but on rm12 it doesn't work The string is not costant so I can have "abcdefgh" "abcd " "ab " etc, and with the P$TextOutRightJ I had always the last right characters of the string aligned on the right of the position I want Example 77 STRING PIC X(55). call "P$TextOutRightJ" using STRING 19,5 27,60 How can do this ? Many thanks to all
Hi, I'm trying to print a form with a string justified on the right margin of the page On version 8.0 of rmcobol I used the function P$TextOutRightJ but on rm12 it doesn't work The string is not costant so I can have "abcdefgh" "abcd " "ab " etc, and with the P$TextOutRightJ I had always the last right characters of the string aligned on the right of the position I want Example 77 MEP-DESCIVADOC PIC X(55). call "P$TextOutRightJ" using STRING 19,5 27,60 How can do this ? Many thanks to all
Hi, We have developed a program that takes advantage of the XML and Rmnet extensions, to extract some information from a website by interacting with a SOAP web service.On the Windows operating system, the program (compiled with the -Ze option) works perfectly and was developed with the help of libraries: xmlif.dllrmnet.dll Problems arose when running functioning tests also on Linux system (Red Hat)From the examples in our possession we are instructed to use the libraries: libxmlif.solibrmnet.so But after several attempts, these are not recognized as cobol libraries We also tried setting the variablesSHARED_LIBRARY_LIST e SHARED_LIBRARY_EXTENSION, without any success. By checking the manual, we do not find a confirmation (for version 9.2.5) of these libraries. While an example of execution is proposed on version 10.3.Also in the manual of version 9.2.5 there are indications for the library: xmlif.so Run the COBOL program. On Windows use -y xmlif.dll. On UNIX use -y xmlif.so. Test the p
Hi I am trying to translate code from C# to Visual Cobol to allow numbered lists in a richtextbox on Windows Forms. This is to replicate a similar feature from a different application we are scrapping. The code I am having difficulty with is highlighted in red (same code highlighted in C# and Visual Cobol block), as I will explain. We are using Visual Cobol 2.3 for Visual Stuidio Community 2015 on Windows 10. The C# code is as follows: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Drawing.Printing; namespace RichTextBoxEx.Controls { public class RichTextBoxEx : RichTextBox { #region BULLETING [StructLayout(LayoutKind.Sequential)] private class PARAFORMAT2 { public int cbSize; public int dwMask; public short wNumbering; public short wReserved; public int dxStartIndent; public int dxRightIndent; public int d
I'm getting started with an evaluation version of Relativity and I try to create a new catalog in Designer. I choose File -> Create New Data Source. I select Micro Focus Relativity Data Manager. Then I click the Create Catalog button and select a file name. I'm getting "ASLM: Semaphore failure." error. I've executed ASLMPCLOCATE as instructed but no change. Running Process Monitor shows that it's looking for IDELINK.DLL but I can't find it on my drive. Anybody knows what I'm missing? Thank you!
This article explains that the COBOL Profiler tracks CPU time rather than elapsed wall clock time. Problem: Does the Profiler keep track of elapsed (wall clock) time? When using the Profiler to measure performance, I see that the total time it reports is less than the total elapsed time for the program, based on the time of day. Resolution: The COBOL profiler does not keep track of elapsed (wall clock) time, instead it tracks CPU time. Several sources of elapsed time will be left out of a profiler report: it does not keep track of time waiting for user input, neither does it track time when the process has spawned a child and is waiting for the child to return, nor does it report elapsed time in calls to databases. Attached to this Knowledgebase article is a demo useful for testing Profiler's behavior. The demo tests Profiler when: Waiting for user input in a COBOL program When a CPU-intensive C routine is called When COBOL calls "SYSTEM" using a sleep comma
Good Morning I am getting misleading TIMEOUT Message. What I am doing: I have transaction, run 24*7*365, calls COBOL program which in turn calls API using RMNet. Initially, when transaction is started RESPONSE-STATUS from RMNet functions [NETINIT, HttpSetConnectTimeout, HttpSetTimeout, HTTPPOST] is 0. And NetGetError gave Message = "no error, don't panic!". After sometime RESPONSE-STATUS from RMNet functions is 0. But at same time, NetGetError gave Message = "Timeout was reached". Response is proper but getting misleading message. Using CONNECITON TIMEOUT =1 sec and RESPONSE timeout = 1 SEC. Am I doing something wrong ? Something missed in coding. Log INITIALLY 20210921-07063002 ENDPOINT=http://xxx:nnnn/performapicall20210921-07063002 RESPONSE CODE FOR NETINIT=00020210921-07063002 RESPONSE MESSAGE FOR NETINIT=no error, don't panic!===> from NetGetError20210921-07063002 HTTPSETCONNECTTIMEOUT=00020210921-07063002
Hi - I need a help to locate copybook version used in RM/COBOL obj modules. Problem : My platform maintained 2 version of same copybook. Ex: Folder#1 Copybook:- C1.CPY Ex: Folder#2 Copybook:- C1.CPY I have list [cannot be trusted] which tell me to call shell#1 [using Folder#1] to compile or sell#2 to compile[Folder#2] for a program. Mostly, I need to find once start working in a program. I have listing file that also cannot be trusted. I have huge number of programs to be compiled. Is it possible to find out any information from load or some other way like generating listing from COBOL load? #RMCOBOL
Hi With runtime 9.2.5 hit remove the .vix With runtime 10.3.1 hit will not remove the .vix his there a switch that i am missing Thank you
Some of the JSON I have to parse has the same tag names for different segments. For example [{"id":10,"order_id":105,"product_id":137,"product_options":[{"id":8,"option_id":24... where "id" occurs twice. Is there some technique with the NAME OF/IS phrase that will allow me to give these two tags different names? Or any other ideas other than manipulating each context-specific "id" to rename them to two different names? I am at release 10.4#extend#AcuCobol
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.