Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: Rebuilding an Object-Oriented Cobol program in a Net Express 4.0 project fails with "Rebuild complete with errors", but nothing more is shown in the Output window. If the same program is compiled and linked from the Net Express Command Prompt, the following error message is then displayed: * 013-R Illegal intermediate code (at 0X101 in seg 0) ERROR: (9) Program indicated failure Resolution: This has been fixed since All WebSync WrapPack v4.0.005 (all05n40.exe). Old KB# 3972
Problem: How to change the settings for MS Word document's orientation, margins, and font Resolution: There are few demo projects in Net Express, which shows how to use Microsoft Word with Cobol applications, and they are located in C:\\Program Files\\Micro Focus\\Net Express 4.0\\Base\\DEMO\\COMDEMOS\\WORD. The programs may not show you how to change the settings you wish to change, but they show you how to change MS Word settings in general. You can have a look at MSWORD.CPY in the same folder to discover other numerous methods to change MS Word's settings or properties. We do not provide any documentation on how to use MS Word from Cobol. You need to know Object-Oriented Cobol and methods and functions available in MS Word. The attached demo (WORD3.CBL) is taken from the Word demo folder and modified to set orientation, margins, and font. Go to the Microsoft MSDN site (http://msdn.microsoft.com) to see the complete documentation on these MS Word fu
Problem: This demo shows the use of animate from the command line when passing a command line parameter Resolution: This demo demonstrate how to accept and use parameters from a command execution SOURCE FILES: ========= Program Files Description -------------------- ----------------------------------------------- animparm.cbl Sample program Other Files: -------------------- ----------------------------------------------- compile.bat Batch file to compile the program runit.bat Batch file to run program passing parameters OPERATION: ======== From a
Problem: How can I pass a null terminates string to .Net so that the null is retained in the string being passed? The calling program is Unmanaged COBOL and it will be using COM Interop to call the .Net assembly. Resolution: You need to use a chararray to pass this data across as you can specify the size of the chararray when you create it. Some example code that does this is:- *> This is required for OLE applications $set ooctrl( P) program-id. testnet. special-names. call-convention 66 is winapi. *> Non Litlinked apis class-control. *> OLE automation classes &n
Problem: How can I get/set the column widths in a DataGridView in a COBOL WinForms application. Resolution: There is a "Width" property on the Column object. Given the datagridview object you can access it using code such as:- set Label2::"Text" to dataGridView1::"Columns"::"Item"(1)::"Width" This code get the width of the second column (zero based index). Old KB# 3955
Problem: How to trap exception in COBOL .NET? Resolution: You can find documentation on how to handle exceptions using the TRY statement from the Net Express with .NET Help. Just follow the steps below: 1. Click on Help > Index 2. Make sure "Micro Focus Net Express with .NET" is selected from the "Filtered by" drop-down list 3. Type in "exception" from the "Look for field" 4. Double-click on "structured", which is right below "exception handling" in the list of topics That will lead you to the page where it addresses about structured exception handling and the usage of the TRY/CATCH/FINALLY/END-TRY control structure. It also refers to an existing sample, which is in Net Express with .NET\\Examples\\LRM Samples\\Exceptions folder. Old KB# 3944
Problem: The following error message occurs in Net Express 4.0 when the Internet Application Wizard attempts to generate a CGI program: ---------------- Object Code error : file 'splithtm' error code :153, pc=0, call=1, seg=0 153 Subscript out of range (in E:\\BUILD\\EHTM\\splithtm.cbl, line 225) ---------------- This problem occurs when All WebSync WrapPack v4.0.006 (all06n40.exe) was applied. The previous version did not have this problem. Resolution: This has been fixed since All WebSync WrapPack v4.0.007 (all07n40.exe). Old KB# 3970
Problem: When starting Net Express for the first time you are prompted by a welcome box. In this case the customer's welcome box did not have a check box that will allow you to discontinue showing the welcome box at the next startup. Resolution: Open the registry editor. Go to: HKEY_CURRENT_USER Software Micro Focus Net Express 4.0 IDE &
Problem: Customer had spent a long time developing a screenset, and one day received an error which indicated that the screenset was corrupt in some way. Resolution: If a screenset gets unexpected corruption of any sort, then it is always worth trying to salvage it by exporting the entire screenset as a .imp file (which is really just a text file). Check the file for any obvious funnies (half-lines, mistyping, or if you know that a particular object is the one causing the trouble, delete all references to it). Then create a new screenset, and delete the only window (select it and press <Delete>). Import the .imp file into the screenset, and say 'OK' when informed that some duplicate global dialog will be renamed. You should then have a more or less working screenset. If you have removed any objects from the .imp file, try adding them to the screenset again. Old KB# 3928
Problem: When you run CBLCORED from the Net Express Command Prompt, it pops up a window to allow you to select the following options: Disabled (default) Enabled with prompt Enabled with no prompt How to enable this feature without having to select manually from a popup window? Resolution: The runtime tunable core_on_error was introduced in the All WebSync WrapPack v4.0.005 (ALL05N40.EXE) of Net Express v4.0. There is a demo available on the sample site, which shows how to use (http://downloads.microfocus.com/examplesandutilities/utilities/CoreDump.zip) The description below for core_on_error is in the documentation. core_on_error Specifies in what circumstances a core file is produced. Syntax: >>-----set core_on_error=---.-0-.-----------><  
Problem: The customer wanted a list of XML file status codes: he looked under 'XML' and 'file' in Net Express help, but found nothing. Resolution: The XML error codes are detailed in the Net Express help, but they're difficult to find. They're on the 'Contents' tab -> Reference -> COBOL Language -> Additional Topics -> XML Syntax Extensions -> XML File Status. That returns the following list: Return Code Meaning > 0 After a successful READ action, the ordinal number of the record read is returned as the status code. 0 Success. The XML I/O action is performed without problem. -1 The XML I/O action is trying to access an XML stream that is not opened. -2 This is an invalid XML I/O action. -3 Invalid mode is specified in the OPEN statement. -4 The XML stream cannot be opened. -5 The XML I/O action is attempting to access an internal DOM (Document Object Model) representation whi
Problem: Is possible to join together three files into only one file? Resolution: Yes, using x"91" funtion 35. Example program: 01 result pic x comp-x. 01 function-code pic x comp-x value 35. 01 parameter. 03 name-len pic x comp-x. 03 progname pic x(99). procedure division. move "COPY a b c d" to progname move length of progname to name-len c
Problem: Which database products are certified for use with Server Express ? Which database products are certified for use with Net Express ? Which database products are certified for use with OCDS ? Which database products are certified for use with Workbench ? Is OpenESQL available on my platform? Is ODBC support available on my platform? Is DB2 support available on my platform? Is Cobsql available on my platform? Why do I get an 18-U Preprocessor error on initialization error using Cobsql? Resolution: 1. If you are using the COBOL precompiler as provided by a database vendor, e.g. Oracle Pro*COBOL, Informix ESQL/COBOL, Sybase cobpre (or are using Cobsql), or IBM's precompiler (or are compiling with the DB2 compiler directive), the responsibility of certifying the precompiler against Micro Focus COBOL products lies with the database vendor themselves : Oracle users with a valid MetaLink account, can access Oracle's document detailing certifi
Problem: Release 4.0: Is there a problem using CBL_CHECK_FILE_EXIST also CBL_COPY_FILE in regard to pathnames including spaces, not getting back a return code consistently? Resolution: Basically, there is no problem using CBL_CHECK_FILE_EXIST, also CBL_COPY_FILE to get back return codes correctly. Please check attached demo file to get more information about. This demo program1.cbl shows how you can use a spacey pathname pointed to drive E:. (If you do not have an E: drive change it to a drive you want). Attachments: CBLSPACE.zip Old KB# 3917
Problem: The Migration Development Toolkit is an addpack which eases migration from the mainframe to Enterprise Server in migration scenarios. It was designed to be used with Net Express 4.0 but not Studio 5.0. Resolution: When installing it on Studio 5.0 you will need to install the files attached to this KB. They are: PCOMMAIN.DLL, PCOMUTILS.DLL, YGREP32.DLL and several .DIR files. Attachments: Temp.zip Old KB# 3847
Problem: You can get a 173 Error Exception in .Net is you attempt to call a program that resides in a different namespace if that other assembly has not already been loaded. Resolution: You can fix this by adding the namespace to the call:- call "namespace1.program1" using ..... Old KB# 3887
Problem: The following commad will give you information about what is the list of imports for a particular .exe or .dll. Resolution: At the command prompt: link /dump /imports prog.exe > report.txt notepad report.txt report.txt will show cblrtss.dll if prog.exe is pulling the Micro Focus single threaded runtime, or cblrtsm.dll if prog.exe is pulling the Micro Focus multithreaded runtime. report.txt should also show other dlls that are been pulled when prog.exe is loaded. The same command would work the same for prog.dll instead of prog.exe. Old KB# 3878
Problem: I've compiled my application with SQL(TRACELEVEL=n), yet I cannot find the resultant log file (OpenESQLTrace.XXX.log). Resolution: OpenESQL requires write permission to the current directory to create the OpenESQL trace file. If running from within the Net Express IDE, this will be the project directory. If the current directory is not writeable, OpenESQL will attempt to create the log file in the directory pointed to by the TEMP environment variable. See http://supportline.microfocus.com/mf_kb_display.asp?kbnumber=20008 for further details on OpenESQL tracing. Old KB# 3899
Problem: CBL_COPY_FILE returns a status code of 14596 Resolution: The filename parameters that are passed to the CBL_COPY_FILE routine (and other CBL file related APIs) need to be space terminated. Ensure that you initialise the variables and make them longer than the filename you intend to use. Old KB# 3898
Problem: You will encounter a problem when installing Application Server if setup detects an existing installation of Application Server. Resolution: Run Regedit. Rename: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall To: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall-temp Note: Do not open the Uninstall key. Right mouse click the Uninstall key name and click the Rename button in the context menu. Type the new name and press Enter. Close Regedit. Rerun Install. At "Welcome" screen, run Regedit and rename Uninstall-temp to Uninstall. Close Regedit. Continue with installation. Old KB# 3885
Problem: Web CGI Application. Resolution: Make DLLs of conversion objects (NMCNVRTI.obj, NMCNVRTO.obj). Use call-convention 0. Use set procedure-pointer-item to entry "dllname" to load DLLs and gain access to the internal entry points. special-names. call-convention 0 is llnk. working-storage section. 77 NMCNVRTI-pointer procedure-pointer. 77 NMCNVRTO-pointer procedure-pointer. procedure division. set NMCNVRTI-pointer to entry "NMCNVRTI" set NMCNVRTO-pointer to entry "NMCNVRTO" Old KB# 3897
Problem: Let's say you have such an error when you invoked a method of a COM component Exception 65537 not trapped by the class oleexceptionmanager. Description: "Server defined OLE exception" (80020009): Exception occurred. Hit T to terminate program. Hit any other key to continue. What does the number between () mean? Resolution: This error means that, for any reasons, the COM server raised an exception: he number between () is the exception number (80020009) What does this number mean? follow this URL http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q186/0/63.asp&NoWebContent=1 and you'll see that, regards to the EXCEPTION pasted above ( as an example ) , the error means (80000009) General access denied error. ... Old KB# 3841
Problem: When compiling a .NET project, the following errors occur: Could not find method 'New' with this signature Could not find method 'xxxxxx' with this signature Resolution: Create a new .NET project using the same source code. Old KB# 3860
Problem: The national characters are not correct in my character based screens. Resolution: The reason for the characters not appearing correctly is that the application has the 'ANSI Input mode' option selected in Application build settings. Unselect the 'ANSI Input mode' option and retry your application. Old KB# 3844
Problem: Any directives or tips to help performance, not using cursors doing select into an array Resolution: Following made a significant improvement in performance: 1. move sql directives to sql program only (remove from project properties) 2. remove autocommit and thread=isolate add autofetch remaining directives were targetdb=mssqlserver ansi92entry esqlversion=3 Old KB# 3857
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.