Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Hi, Ive got a project that uses the MDI feature a lot and Im having memory problems where it just goes up and up until the application runs out of memory. Then have to close app and restart it again. After some searching have found the following:- http://stackoverflow.com/questions/1238082/memory-leak-on-mdi-with-blank-child-form Is it worth trying this, if so what does the code look like in a Visual Cobol form? Thanks in advance for any help/advice. Kind regards Neil.
We are creating a pdf document and would like to see if anyone knows how we give the file name for the pdf in the program and flag it to auto saving the pdf with a name instead of it coming up with the save window that we have to click ok on. AcuCobol - AcuBench Thanks for your help.
Hi, It sounds weird to ask this here but, could anybody help me in learning CICS on Visual COBOL -from scratch!- I am planning to use Visual Studio and I've never done CICS before#CICS
I am a retired Programmer that primarily codes for RM/Cobol. I have recently been contacted by one of the companies I worked for before I retired. They use programs written in RM/Cobol (6.09.04) on an SCO UNIX System (3.2v5.0.7). They wish to scan invoices into the system using a multipage scanner for future display and/or printing. What I envisioned was to have a COBOL program scan one page from the multipage bin and save it to a name generated by the program. The scanned image would then use OCR to convert the image into a TEXT file. The program could then scan the TEXT file and save pertinent information (such as invoice no., customer no.). My question is, are there programs available that can either interface with RM/Cobol or can be controlled from a call to "SYSTEM" for scanning and converting. I would also need a program that would be able to display the image and/or print the image from a call to "SYSTEM". Thank you in advance.
Question: How do you determine if TERMCAP or TERMINFO is enabled on an RM/COBOL installation? Answer: The librmterm.so file determines whether termcap or terminfo is used by runcobol. To switch to terminfo, change to the RM/COBOL installation directory, and copy the librmti.so file to the librmterm.so file. For example:cd /usr/rmcobolcp librmti.so librmterm.soTo switch back, copy librmtc.so to librmterm.so.
Problem: C$XML fails parsing a XML file with ISO-8859-15 encoding.It works fine if the encoding is ISO-8859-1.Is this correct? Which encodings are supported by ACUCOBOL-GT runtime? Resolution: This is a limitation of the Expat XML parser library that Micro Focus uses to provide the XML functionality within the ACUCOBOL-GT runtime.The Expat parser library is only able to handle 4 encoding types which are: UTF-8, UTF-16, ISO-8859-1 and US-ASCII. Any other encoding type will return the error reported by C$XML CXML-PARSE-FILE. There have been requests to improve the number of encodings supported by ACUCOBOL-GT runtime, but as this is (currently) reliant on this third party product we are not able to unless this is also modified. Further information about the Expat XML parser are available here:http://www.xml.com/pub/a/1999/09/expat/index.html If no encoding option is specified the default encoding that the Expat library uses is "UTF-8". If an XML file that uses UTF-16 is parsed,
Problem When installing RM products it will ask for a license. If the installation process is unable to apply the license to the product it will normally abort the installation process. For some products like Info Express, then installation will complete. How can the product be used once the installation has completed? Resolution In most cases the installation will abort and the product will need to be uninstalled and the re-installed. In some cases, the installation will complete, but the product cannot be used because there is not a valid license present. In these cases, the license can be applied once the installation has completed so that the product can be used. This is how to complete the installation. Copy the license file(s) to the SupportTools directory that is underneath the main installation directory. E.g. for a standard Unix install of Info Express this is /usr/rminfox/SupportTools. For a standard Windows install of Info Express this is C:\\Program Files (x86)\\Lia
Problem As part of the installation process, the Unix install.sh will ask for the full name of the license file. Can a relative path be used in this instance? Resolution No, an absolute path needs to be used in this situation as well as the full name of the license file. If the following is entered then the license file will not be found and this may cause the installation to terminate: ../v1209_Lics/XBIS-Linux-Intel-32b-ID96117.lic Instead the following needs to be entered: /install_area/12_09_32bit/v1209_Lics/XBIS-Linux-Intel-32b-ID96117.lic The reason is that within the install process, the current directory can be changed from the directory that the install process was started from. This means that an absolute path name needs to be used when specifying the license file as the use of a relative path name (to the i
Strange results occurring with the attached piece of code. The CalcPerecntDotNet method is returning mixed results when you divide 100 by the following numbers 13 thru 15, 17 thru 19, 21 thru 24. FYI, I stopped testing at 100. The CalcPercentCobol method seems to work correctly. Also it should be noted that the piece of code that is causing the problem is when I try to move the Decimal field to the Pic 9(03)v99 field using the set command. Below I provided the values 13 thru 24 passed value CalcPercentCobol CalcPercentDotNet 13 7.69 707.54 14 7.14 706.99 15 6.66 706.51 16 6.25 6.25 17 5.88 705.73 18 5.55 705.4 19 5.26 705.11 20 5 5 21 4.76 704.61 22 4.54 704.39 23 4.34 704.19 24 4.16 704.01 #VisualCOBOL
Hi, I am a new user in visual cobol 2012 and I am trying to edit some of my old micro focus 3.2.43 programs and data files that are about 20 years old and use 737 greek character set (ascii), but everything writen in greek is not displayed correctly. What I would like to know is if it is possible to keep working with the existing character set without converting as to keep both old and new programs working together with the same data files. Thank you in advance Antonis
Dear Sirs, Is there an special Linux/Unix Installation media or We can use the Windows Installation Media ??? Many Thaks in Advanced PJM
I am compiling and running this program in Visual Studio 2010, version 2.2. It runs to completion when running with a config file setting the environment variables. When I move the EXE to the runtime server, I get the error below. C:\\BAT>c:\\EXE\\CBL620_040Unhandled Exception: MissingMethodExceptionMethod not found: 'Int32 MicroFocus.COBOL.Program.Reference.GetPointer32(Byte[], Int32, Int32, MicroFocus.COBOL.Program.IObjectControl)'. at Int32 CBL620-040.CBL620_040() at Int32 CBL620-040._MF_ENTRY() I have cleared the exe directory out, and moved in new versions, as well as the supporting dlls. I am unsure of how to debug the method that is being thrown.
Does anyone have or know where I can find some example code of how to create a .tiff file using cobol? Wondering if this can be done in 'select' statement or if there may be a routine that would do this. Any help would be appreciated. Thanks, Kim
Thanks in advance. I am testing Visual Cobol for Eclipse editing an Oracle Pro*COBOL named “Program1.cbl”. At the end of the linker step the Program1.exe is not generated due to a fatal error LNK1120 for 3 unresolved externals symbols: ORASQL8, SQLADR and SQLBEX. The following is the log of the process generated at CMD DOS. C:\\cobol>cobol Program1.cs9 /LITLINK /MAKESYN"COMP-5"="COMP"; Micro Focus COBOL Version 2.2.00244 Copyright (C) Micro Focus 1984-2013. All rights reserved. * Checking complete with no errors - starting code generation * Generating Program1 * Data: 1400 Code: 2016 Literals: 848 C:\\cobol>cbllink Program1.obj C:\\app\\oracle12c\\product\\12.1.0\\dbhome_1\\precomp\\LIB\\orasql12.lib Micro Focus COBOL - CBLLINK utility Version 2.2.
I'm using a product called MPACT from ESI. With MPACT I am able to create screens for our users to interact with. It also allows gives me places where I can interact with the dialog. The interaction points are written in cobol and MPACT compiles our code using the Visual Cobol compiler, but only uses the native aspect of it. I have this MPACT program calling a Visual Cobol Winform program. Inside of the Winform program I am doing an accept from the command line. All of my parameters are showing up, but if I have a filler that has spaces in it then they are being truncated. I've attached the code that is in the MPACT program and the code that is in the winform program We are using Visual Cobol 2.2.#VisualCOBOL#COBOL#unmanagedcode
I'm starting the progress of migrating RM Cobol (Linux) to RM Cobol/Visual Cobol(Linux) with Eclipse (Windows) The problem I've encountered is if the Cobol Code has the "ASSIGN TO PRINTER" clause the program in RM/VC redirects the report to a file called "LPT1", which I know is a throwback to the older Parallel printers. Normally "ASSIGN TO PRINTER" just directs the report to the file name specified before the ASSIGN clause, which we could handle via redirection in Linux. That doesn't appear to work with RM/VC. I've even tried using "ASSIGN" to a file, but the file only had 6 of the 80 lines the report should've had. I should mention that the LPT1 is the complete report, but I really need to control where this file is created and what it is called. Any Ideas? #VisualCOBOL#Printer#redirection#rm#Assign#Eclipse#COBOL
I am having troubles trying to implement a call to a Java program using "C$JAVA". Here is my Java code: public class TestClass { // Main public static void main(String arg1) { System.out.println("test"); System.out.println( "TestClass: main command line argument 1: " arg1 ); } public void testMethod(String arg1) { System.out.println("test"); System.out.println( "testClass: testMethod argument 1: " arg1 ); } } When I try calling the main I get a return of -1 (Invalid Arg): CALL "C$JAVA" USING CJAVA-CALLJAVAMAIN, "TestClass", "String1" GIVING STATUS-VAL. When I try calling the testMethod I get a return of -3 (Class not found): CALL "C$JAVA" USING CJAVA-CALLSTATIC, "TestClass", "testMethod", "(X)V", "String1" GIVING STATUS-VAL. Can anyone help me out with this? I've also tried taking out the argument to Main but still get the -1 error. Thanks!#CJAVA
Hi, We want to share a Cobol Structure between our Cobol program and a new Java Program. The Cobol program will call the Java program. We have succeeded running simple examples exchanging simple data type beteen Cobol and Java. We have failed so far with the CustomRecord data type. Here is our Java CustomRecord class: import com.microfocus.cobol.lang.*; public class TPrestInter implements CustomRecord, java.io.Serializable { private static final long serialVersionUID = 827363353239593196L;private long noEmployeur; public Object[] getParameters(){return new ParameterList().add(getNoEmployeur().toString().getBypes()).getArguments();} public void setParameters(Object[] params) {Byte[] byteNumeroEmployeur = (byte[]) params[0]);setNoEmployeur (Integer.parseInt(new String(byteNumeroEmployeur));} public Long getNoEmployeur() {return this.noEmployeur;} public void setNoEmployeur(Long noEmployeur) {this.noEmployeur = noEmployeur;}} Here is the Java class That generates custom record objects pub
i have a program written in rm/cobol that i am trying to compile using visual cobol. i am have set the proper dialect and its compiling successfully. the problem i am facing is on the windowing system. my current program calls rmputil to create the windows and dialogs. since that is a compiled library that comes with rm/cobol (runpanel.cob, rmputil.cob, what are my options now? is there source code available so i can recompile those? or i have to rewrite all my code? and what is available in visual cobol so i can do the migration easily? Thanks Ali
I want to send a message to a thread to close and am attempting to use the CBL_THREAD_IDDATA_ALLOC and CBL_THREAD_IDDATA_GET routines. I am am getting an exception error when calling CBL_THREAD_IDDATA_GET after creating the and the intellisense is saying there is no routine with this signature. I was going by the example from the documentation. I then created a new project using the example exactly as written and I get the same error. Is there a bug in this approach?
Hi, Can any one advise how to convert the following VB code to Cobol pls. Its for a fingerpint reader. Imports System.ThreadingImports System.IOImports DPUruNetImports System.DrawingImports System.Drawing.ImagingImports System.Text Public Class Verify Private _readers As ReaderCollection Private _reader As Reader Private _readerResult As Constants.ResultCode Private FmdToVerify As List(Of Fmd) = New List(Of Fmd) Private reset As Boolean = False Private nThread As Thread Private enrolledFmdStr As String Public strsplit() As String Public callsw As String Public callsw1 As String Public callOutputFileName As String Private Function CaptureAndExtractFMD() As String Dim capResult As CaptureResult Dim vResult As IdentifyResult = Nothing While Not reset Dim result As Constants.ResultCode = _reader.GetStatus() If _reader.Status.Status = Constants.ReaderStatuses.DP_STATUS_BUSY Then Thread.Sleep(50) Continue While End If If _reader.Status.Status = Constants.ReaderStatuses.DP_STATUS_READY The
Problem When connecting to products like the Relativity Designer tool, a login box is displayed. Is it possible to setup a Relativity Data Source so that it automatically logs in and does not display the logon box? Resolution With a number of other Open Database Connectivity (ODBC) drivers (e.g. Oracle and SQL Server), it is possible when configuring your Data Source Name (DSN), to include login information. This means that users are not prompted for login details when an application uses the DSN to connect to the data source. When setting up a Relativity DSN, it is not possible to enter login details. With some applications it is possible to configure default login details, but Relativity Designer does not provide this functionality. This means that even if a Relativity data source is configured without security, the logon box will always be displayed. A user name and password may not be required, but the logon box does need to be confirmed. Incident 2693018#Relativity#ODBC#Relativit
Problem Can files be built so that that the maximum file size is limited to 2Gb or 512Gb? Can this be done inside and outside of InfoExpress? Resolution By default, RM/Cobol files are limited to 2Gb, by setting a runtime configurable USE-LARGE-FILE-LOCK-LIMIT=YES, it is possible to increase the file size limit up to 512Gb. This needs to be set as the run unit is started. The attached demo, Create_Large_Files.zip shows a file that is created with the standard limit and then recreates the file with the 512Gb limit. The configuration option can also be used when the file is under Info Express control and is set as the client run unit is started. The runtime configurable shown above is only used when the file is created. Once a file has been created with the 2Gb it has to be rebuilt to apply the new limit. Refer to the following wiki for more information about extending a file beyond the 2Gb limit: http://community.microfocus.com/microfocus/cobol/rm_cobol/w/knowledge_base/23931.c
Currently, we have shifted from Net Express 4.0 to Net Express 5.1 (Windows 7). In PC, using microfocus net express 5.1 in windows 7 we compiled all our project sources and all sources compiled without any errors. But while i try to debug the program, then i got an error from one program '153 Subscript out of range (in ..\\cobol_src\\abc.cbl, line 932)'. But this error not occured while we debug through the program in Microfocus netexpress in 4.0 and we are not interested to change the programs because it is running in production(mainframe) without any errors for years. For example, say program, abc.cbl I am using the first line in the pgm as process nossrangeand my Net Express 5.1 listing is as shown below in the attachment, * Micro Focus Net Express V5.1 revision 000 21-Mar-14 08:13 Page 3* ..\\cobol_src\\abc.cbl* &n
I have a large screen divided into tabs. Because I reached the limit on number of controls, I've separated the controls for each tab into separate screens and when the tab is displayed I display the appropriate screen on the tab. Some tabs have multi-column list boxes. The first time I bring up a record (any record), then click on a tab with a list box, the contents of the list box don't show. Data for other types of controls shows, just the list boxes are blank. If I bring up a second record, then the list box contents display and continue to display for every other record I bring up. However, if I now click to a different tab that also has a list box, the data in that list box doesn't show until I bring up another record. In other words, the first time a list box is displayed its contents do not show. Once I display the tab/screen with the list box on it and then move to another record, the list box contents display. I am o
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.