Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
I have a hopefully short term need to keep an old unix application which uses PANELS running under Visual COBOL on Windows. I've managed to get the code compiled and running and fixed the function keys etc. using ADIS but no matter what I do I can't get the colours to work, everything comes out black on a green background so it's impossible to see what I'm doing when running the code. Using a simple test program with display statements the colours work fine so it's definitely a panels issue, unfortunately everyone who originally wrote this code has long since eft the company so we have limited knowledge of how panels even works which isn't helping. In case it matters I'm using VC 6.0 and VS 2019. Any suggestions as to where to look greatly appreciated! Regards Gary#VisualCOBOL#panels
Hi, I try to enable the long password support option : https://www.microfocus.com/documentation/enterprise-developer/ed60/ES-WIN/HRMTRHCSTX01.html In my server option/control In the list of initialTrans, i only have the CESN option. i don't find the CESL option. Is there an option or something to install to add this option? Regards Eric
Hello, I created a table using Relativty and one column seems to break my queries. In Relativity's Query Builder, depending of the data I access, it returns a certain number of rows before it tthrows an error, like Table MyTable: Rows Processed = 4, Error Count =1. Querying with another tool (QTODBC), I get an intermittent error, which means that sometimes, it works, sometimes I get the following error: <eb1>Numeric item contains nonnumeric characters (column MyColumn) State: S1000; Native: -4084; Origin: [Micro Focus][Relativity][CRDM]</eb1> The column is defined as a Smallint in Relativity, and as a PIC 9 in Cobol. Side note: The previous field in the table is a COMP and may have some invalid data. Is there a workaround to that error? Thank you!#Relativity
Our many user sites have been using various 32-bit AcuGT runtimes with a variety of 32-bit Windows applications. Among those applications is the Adobe Reader, and recently Adobe is forcing an "upgrade" to their 64-bit version. When our applications attempt to launch Reader the runtime fails and returns a system code 2. (Installing 32-bit Foxit Reader is a good workaround.) But in anticipation Looking to the future three questions:: 1. Can we "correct" our applications to launch 64-bit applications? If not 2. Is the solution to use the 64-bit runtime? If so 3. Will the 64-bit runtime work with the 32-bit Windows applicaions? My hope is that the answer to 1 is Yes. Any guidance will be gratefully appreciated.
Hi, I need to convert a part of a program in VB and i need your help. Dim st As New StreamReader(Fich.FullName) xm = st.ReadToEnd Dim enc As New System.Text.UTF8Encoding Dim Buffer() As Byte = enc.GetBytes(xm) Dim Filename As String = Convert.ToBase64String(Buffer, 0, Buffer.Length)Console.WriteLine(wsSEF.EntregaBoletinsAlojamento(UH, Estabelecimento, ChaveAcesso, Convert.ToBase64String(Buffer, 0, Buffer.Length))) I convert like this: declare st = New StreamReader(Fich::FullName) set xm to st::ReadToEnd declare enc = New System.Text.UTF8Encoding declare Buffer as byte occurs any = enc::GetBytes(xm) set Buffer to enc::GetBytes(xm) invoke type Console::WriteLine(wsSEF::EntregaBoletinsAlojamento(UH,Estabelecimento, ChaveAcesso, Convert::ToBase64String(Buffer, 0, Buffer::Length))) Please tell me if is correct. I have no errors of compilation until the last line. At the last line i have an erro in this part: "Convert::ToBase64String(Buffer, 0, Buffer::Length)". The error
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!
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.