Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: This demo returns information about the operating system environment via the library call CBL_GET_OS_INFO. Resolution: This demo also demonstrate the usage of the Library Routine Type Definitions and Call Prototypes. Net Express contains two copyfiles; one contains data items used by the library routines specified as type definitions, or TYPEDEFs, while the other contains call prototypes for the library routines. These can be used in your COBOL programs to enable the Compiler to validate all calls to these routines. SOURCE FILES: ========== Program Files Description --------------------- --------------------------------------------------------- GetOSInfo.cbl Sample program used for the demo Copy Files --------------------- --------------------------------------------------------- CBLPROTO.CPY Located in your Net Express\\base\\source folder CBLTYPES.CPY Located in your Net Express\\base\\source
Problem: The demo attached contains 3 programs One Java program which does SQL I-Os thru JDBC One OO COBOL program which invokes the Java program above ( this OO COBOL program is a 'stub' between procedural COBOL and JAVA ) One procedural COBOL program which invokes the OO COBOL program above. Resolution: ======================= INTRODUCTION_1: since the JAVA program does SQL I-Os using JDBC using an ODBC layer, you need a DSN (Data Source Name ) called 'NetExpress Sample2' pointing to an ACCESS DataBase named SAMPLE.MDB ( delivered with .ZIP attached with this demo ) --> Config Panel->Administration tools->ODBC data sources IF the DSN 'NetExpress Sample2' does'nt exist, create it using an ACCESS Driver pointing to ACCESS DataBase named SAMPLE.MDB ======================= INTRODUCTION_2: As described above, the
Problem: File routines, such as CBL_DELETE_FILE, CBL_RENAME_FILE, and CBL_COPY_FILE, in Net Express 4.0 fails to find filenames that are prefixed with a dash "-", e.g. -TEST.TXT These CBL_ routines fail with a non-zero return code, which can be interpreted as the routines were unable to find -TEST.TXT. Resolution: This problem has been fixed since All WebSync WrapPack v4.0.007 (all07n40.exe). Old KB# 3969
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: 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: This error was encountered in Release 3.1, but may be relevant to later versions of Net Express: Testing an ODBC environment: It runs ok under the Net Express development environment however running this in a Net Express runtime environment it fails and returns the error: The procedure entry point mF_xe_odbc_load could not be located in the dynamic link library cblrtss.dll What does this mean? Resolution: There is a difference between the development and run time environment versions. You should synchronize the versions - you should make sure the version of Net Express and Application Server (or Micro Focus Server in later versions) are the same. You can get the latest Application Server files and Net Express development environment files by logging on to the Supportline Website and then checking the following - For the Net Express development environment: 'Product Updates' -> and then under the heading 'Net
Problem: If you have a PictureBox control on a Form with an Image displayed how can you set the picturebox so that it does not display an image? Resolution: This can be achieved by setting the "Image" property in the PictureBox control to null. Code such as:- set PictureBox1::"Image" to null should achieve this. Old KB# 3963
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: 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: 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: 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: 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: 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: 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: 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: 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: 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.