Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: The time returned from an ACCEPT statment is only accurate to the hundredth of a second, is there a way to retrieve the time to milliseconds. Resolution: There is a demo out on the supportline website that uses the win api GetSystemTime which returns time to milliseconds. The sample is called gst.zip and can be downloaded from http://supportline.microfocus.com/examplesandutilities/nesamp.asp#Win32API There is another win api function that can be used called GetSystemTimeAsFileTime which returns the time in 100 nanosecond increments. This function returns the time in a FILETIME structure which can be declared in COBOL as: 01 FILETIME. 05 lowOrderDateTime pic x(4) comp-5. 05 highOrderDateTime pic x(4) comp-5. 01 redefines FILETIME.  
Problem: When using remote desktop and all that can be seen is the desktop on the task manager applications. Resolution: CNTL ALT DEL will not get you the task manager for the remote system. CNTL ALT END will give you the task manager of the remote testop connection. CNTL ALT INS will give you the task manager of a VMWare machine. Old KB# 1425
Problem: After installing the WrapPack 4 for Net Express 5.0: NXP3250040063.msp Starting Dialog System from the Net Express 5.0 IDE or as DSWIN.exe in a command prompt results in a message: Cannot initialise DSRUN, error code 00003, 00057, 00018 Resolution: Please install the attached HotFix which corrects this. Attachments: NXP325004006300015-HOTFIX-1439.msp Old KB# 1495
Problem: You may have a requirement to store data and retrieve data in EBCDIC format on Windows using Net Express. Resolution: By default data is stored in ASCII format in Net Express but it can be stored and processed in EBCDIC. However there is a difference in the way signed numeric data is stored and displayed between ASCII and EBCDIC. Subsequently, this data may not be displayed as expected in reports, especially signed decimal fields. ASCII will store and display the value 24 as that - 24, where EBDIC will store it in EBCDIC format and display it as 2D. Negative 24 would be displayed as 2t in ASCII and 2M in EBCDIC. To change this behavior, set the CHARSET"EBCDIC" compiler directive. Attached is a sample program to illustrate how this works. Create a project for this and run the program. Comment out or uncomment CHARSET"EBCDIC" to change the behaviour. Also, have a look at the actual data file written out (eg via Wordpad
Problem: Compiling with Cobsql returns CSQL-F-013 against COBPUB.CBL Compiling DB2 application cannot locate sql.cbl Compiling Sybase application cannot locate cobpub.cbl Compiling Oracle application cannot locate sqlca.cob This article also relates to Server Express on UNIX platforms. Resolution: When using third party (RDBMS) COBOL precompilers, you need to ensure that the precompiler option for specifying include directories, and/or the COBCPY environment variable setting, are set correctly for locating copy files supplied by the RDBMS vendor. For example, with DB2 applications, the copy files are located under $DB2DIR/include/cobol_mf (UNIX) or �2DIR%\\include\\cobol_mf (Windows), so the COBCPY environment variable needs to include that directory.. Old KB# 1473
Problem: When setting MFCSCFG to a path that contains spaces, mfclient does not seem to find the configuration file. Resolution: Long directory name is not supported even if it is quoted. Use the short name instead, e.g. "C:\\Program Files" --> "C:\\Progra~1" You may want to look at a demo (longname.zip), which shows how to return a short filename (or directory name) from a long file name under COBOL using the WIN 32 APIs. Demos can be found at the Example & Utilities page from the Micro Focus SupportLine site (http://supportline.microfocus.com) Old KB# 1417
Problem: There are many differences between the Object-Oriented language extensions that are provided in the .NET checker and the unmanaged COBOL checker. Resolution: The unmanaged COBOL compiler actually supports two methods of writing Object-Oriented COBOL. The first method uses syntax that was developed by Micro Focus before the ISO2002 standard defined its own syntax. These extensions are known as the Micro Focus alternative syntax and makes heavy use of the Net Express class libraries. The later syntax is known as the ISO2002 syntax and it uses a repository section to hold all of the class and method information. Old KB# 1511
Problem: Release 5.0: After installing Net Express 5.0 and trying to run an application compiled within the IDE as well it seems this F5 key does not work as expected, because CTRL F12 binds the run functionality now. Also, the tooltip for the "Run"ner button shows CTRL F12. What to do getting back this F5 keystroke to "Run" an application? Resolution: To resolve this issue take a look here: Net Express 5.0 IDE-> Options -> Customize IDE... -> Keyboard Configuration -> Load Scheme Binding "Run" to F5 is related to this MS.KEY file covering Microsoft's scheme, and picked up from the Net Express installation here: ..\\Net Express 5.0\\Base\\bin\\MS.KEY Old KB# 1498
Problem: How can you interact with a FTP Server from COBOL on .Net ? Resolution: The .Net framework V2 introduced some new classes that allow developers to easily use FTP programmatically. The FTP classes are located in the System.Net namespace. There are 2 main classes involved. You need to create an instance of FtpWebRequest containing the details of the FTP request you need to perform. You then need to use the FtpWebResponse class to receive the file you are attempting to receive. If you are accessing an FTP server that requires logon then you can specify login details using the System.Net.NetworkCredentials. An instance of this is returned from the FtpWebRequest "Credentials" property. Attached to this article is an example showing how to use these FTP classes from COBOL. You will require Net Express V5 and Visual Studio 2005 in order to this example. The demo is attached. Attachments: FTPSample.zip Old KB# 14
Problem: A dll was created in Netexpress 4.0 for .Net to access our Isam files. This dll is called from a Web based application.Experiencing performance issues when accessing the Isam files. There can be up to 100 users accessing the files at the same time. Also are there tools to monitor file access performance? Resolution: A setting change in the System icon will help with file I/O perfromanance. Goto the Control Panel Open up System icon. Click on the Advance tab In the Performance section, click on Settings In the Performance Options window, click on Advanced tab In the Memory Usage seciton, change setting from Programs to System cache This will help with file I/O performance. Tools for monitoring file access performance. There is a Microsoft website , SysInternals, that has utilities for file monitoring that could help with file I/O performance. Here is the url: http://www.microsoft.com/
Problem: Customer runs Fileshare as a service on 2 separate machines. The name of the Fileshare service is the same on each machine. Since installing WS03, whichever Fileshare is started last gets and error: FS077-S A Fileshare Server of the same name has already been defined - the Fileshare Server is closing down. Resolution: Go to ES Admin > Configure > Options > General and uncheck 'Generate UDP Broadcast Search Requests' on all machines. This will prevent the Fileshare Server from broadcasting its presence to other MF Directory Servers and will allow Fileshare Servers of the same name to run on separate machines. Old KB# 1464#RMCOBOL#ServerExpress#netexpress#AcuCobol#COBOL
Problem: CANCEL statements used inside a class program cause the compiler to loop and produce the following error in Net Express 5: "Error 912 : Internal error - Dictionary invalid r/w Inform Technical Support" Resolution: This issue has been fixed in WrapPack 3 (a.k.a WS3) and is available at the Micro Focus SupportLine site (http://supportline.microfocus.com). The name of the file is NXP3250030082.MSP. Note: Please make sure to read the important instructions in the WrapPack's description before applying it! Old KB# 1424
Problem: After calling CBL_DIR_SCAN_START with return code of zero, CBL_DIR_SCAN_READ fails with return code 127. Resolution: Make sure the path provided in CBL_DIR_SCAN_START does not contain any double quotes. If you called CBL_GET_CURRENT_DIR to get the current directory and the path contains spacey directory name, the returned path will be quoted (e.g. "C:\\Documents and Settings\\UserID\\My Documents\\My Current Directory"). If you use this quoted path in CBL_DIR_SCAN_START, it would return a zero return code, but CBL_DIR_SCAN_READ will fail with return code of 127. Old KB# 1444
Problem: Application was built with Net Express 4.0 that had all07n40 wrappack applied. Resolution: This message indicates that the application server 4.0 is back level from the development machine which is running all07n40 so they need to apply aps09a40.exe. aps09a40 is the first Appliocations serv er version to have CTF enabled. http://suppportline.microfocus.com Sign in and select "click here for latest software updates" or "patest and fixes" Under Micro focus servers select "Application Server for Net Express 4.0 / Applications Server for Net Express with .NET". By looking at the description you can find the version of application server that will match the development version you are using. Old KB# 1457
Problem: XML document & COBOL - accepting XML string through linkage - (using COBOL SELECT statement to use buffer area (address using "WSDATA") - in XML file, between start of document event and end of document, parsing halts with "Exception error 102" message while searching for root element. Resolution: XML exception error 102 parsing error is to be expected in this scenario. The parser reached the end of the document while looking for the root element. With XML exceptions, no further events are returned from the parser, even if you set XML-CODE to zero and return control to the parser after processing the exception. Control is passed to the statement that you specify on your NOT ON EXCEPTION phrase or to the end of the parse statement if you have not coded a NOT ON EXCEPTION phrase. Solution: Include the NOT ON EXCEPTION phrase. Old KB# 1482
Problem: The following error may occur if you are trying to invoke a C function from COBOL with NetExpress 5.0 and Visual Studio .Net 2005 (C) installed. "Runtime Error! Program C:\\NetExpress5.0\\BAse\\Bin\\RUN.EXE R6034 An Application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information". This error occurs when trying to set the entry point in the COBOL program as it tries to invoke an (exported) function of the DLL. The C DLL is built from .obj files, linked together with link (v8 link). The .obj files are built , from the VS2005 command line, using cl.exe. The problem occurs only when /MD is specified in the command line of cl.exe. The problem does not occur on when running NetExpress 4.0 and Visual C Studio .NET 2003. Resolution: Consider the following commands being run from the VS2005 command prompt: cobol caller.cbl,,,, GNT(&q
Problem: The aim of this demonstration is to show "How can a Cobol program consume an EJB deployed on a Java Application Server". First question: Is it possible? ( OO Cobol EJB Client <-> EJB home Interface <-> EJB remote Interface <-> EJB [Bean] ) The answer is NO, Not directly it is not possible to invoke a instance of an EJB from Object COBOL, due to the Object COBOL Java domain not support "proxy classes". How to Proceed then? Use a Java Wrapper which will communicate with the EJB. This will be possible: ( OO Cobol Client <-> Java EJB Client STUB <-> EJB home Interface <-> EJB remote Interface <-> EJB [Bean] ) Resolution: Environment used in the context of this demonstration Weblogic 8.1 Net Express 5.0 Websync3 ==> Demonstration is in the .ZIP attached to KB more comments in the ..DOC file in the .Zip file which d
Problem: The COBOL code attached just does what's pasted below which is a VB code OL2000: How to Programmatically Change the Displayed Calendar Date http://support.microsoft.com/kb/259767 some more glue regards to Outlook Object Model Overview http://msdn2.microsoft.com/en-us/library/ms268893(VS.80).aspx http://msdn2.microsoft.com/en-us/library/aa221870(office.11).aspx VB sample: Dim ol As Object Dim olns As Object Dim oCalendar As Object Dim oAppt As Object Dim oViewCmdBar As Object Dim oItem As Object Dim nItem As Integer Sub ChangeCalendarView() ' Create Outlook Application object. Set ol = CreateObject("Outlook.Application") Set olns = ol.GetNameSpace("MAPI") ' Retrieve the Calendar folder. Set oCalendar = olns.GetDefaultFolder(olFolderCalendar) ' You can retrieve your specific a
Problem: The following error is occurring in Net Express 5.0, Wrappack 4(WS4 :) ----- Form Designer requires Microsoft Internet Explorer 4.01 or greater to be installed on this system. See Installation Notes for more details. Form Designer cannot continue. ----- Resolution: WrapPack 3 (WS3) of Net Express 5.0 contains the fix for the issue with Internet Explorer 7 (IE7). However, the same fix is NOT unfortunately included in WrapPack 4 (WS4). WrapPack 3 (WS3) --> NX3250030082.MSP WrapPack 4 (WS4) --> NX3250040064.MSP It is likely that those who have applied WS4 on Net Express 5.0 that did not previously have WS3 will not be able to start Form Designer and will see the error message above. If WS3 was applied before WS4, then this problem will not occur. Please follow the steps below to resolve this problem: 1. Uninstall WS4 (see below the uninstall steps) a. go to Start | Control Panel | Add or Remove Programs &nbs
Problem: Can the selected tree view item be displayed in light blue? Can the tree view items be colorized individually? Resolution: To do this you have to derive your own tree view class from the standard tree view and use this class in the class control paragraph of your tree view control program. You find a sample "owndrawtreeview" as attachment. ------------------------------------ The "owndrawtreeview" defines a method "wmGadgetNotify" which handles a redraw of the tree view items in the desired style. "owndrawtreeview" sample shows any level (up to 6) of the tree view items in a different color and shows the selected item in light blue and underscored style. The background of the selected item is white or yellow depending on the line, which is commented in. ------------------------------------ To use the "owmdrawtreeview" in your application, he class declaration in the control program has t
Problem: Does Net Express 4.0 IDE support Windows XP Pro 64 bit? Resolution: Net Express 4.0 is a 32-bit application, and 64-bit operating system are supposed to be able to run both 32-bit and 64-bit software. l Net Express 4.0 can be installed on a 64-bit operating system . Information about operating system support can be found in the Net Express readme (click on Start | All Programs | Micro Focus Net Express version | Readme, double-click on Installation Notes under Contents, and click on Hardware and Software) Installation instructions are as follows: This only applies to NX development not .NET To be able to install Net Express v4.0 on an x64 or Itanium environment you need to follow the provided set of instructions. 1) Copy the entire Net Express v4.0 CD to a temporary folder on your workstation. For example, NX40 2) Because of the 32-bit compatibility mode, the default installdir location contains "(x86)" which is not allo
Problem: Open i/o on a file getting status 9/57, when animating or running under debug build type. When running under release build type, Do not get the 9/57 error. Resolution: Error was resovled by adding the following to the Select Statement on the file that recieved the 9/57 error. LOCK MODE IS AUTOMATIC SHARING WITH ALL Old KB# 1468#COBOL#ServerExpress#RMCOBOL#netexpress#AcuCobol
Problem: was trying to generate clients and gets compile problems when doing a generte web service client - the generation recompiles the program - Resolution: The problem here was that the project is a mainframe migration project using pcommain that was setting mainframe dialect(entcobol) - It may compile clean when just compiling from the project window - because it does not know you are going to make a web service from it. when generating a client from the Open Services Interface window it recompiles the program this is where it will not accept the mainframe dialects. Web Services cannot use entcobol - 2 options: create a separate project for programs that will be web services and do not use pcommain -or- find the programname.dir and place a &space at the beginning of the line for directves not to be used (making the directive comments) - so it will not be used Old KB# 1441
Problem: The demonstration attached uses the Microsoft APIs to ' I-O' on named pipes Microsoft URL / named pipes: http://msdn2.microsoft.com/en-us/library/Aa365590.aspx Microsoft URL / named pipes->PipeReference->Pipe Functions : http://msdn2.microsoft.com/en-us/library/aa365781.aspx Resolution: A .ZIP is attached. For the simplest, 1) Unzip the attachment on a working directory 2) Open a Net Express command prompt 3) Compile the sources files, just launch DOcl.bat 4) Open another Net Express command prompt session, just type start in the 1st DOS session 5) Launch the PIPE server in DOS session 1 ( run STARTpipeserver ) this 'PIPE' server will create a named pipe and wait for incoming requests from 'PIPE clients' 6) Launch a "PIPE client in DOS session 2. ( run MSG2pipeserver ) Th
Problem: External file mapper (mfextmap) seems not to work in a managed (.NET) application). Resolution: 1. MFEXTMAP is not supported in .NET 2. Use app.config (i.e. set environment variables) instead to avoid having multiple configuration files as in using external file mapping 3. It may be overwhelming to think of setting each one of the dd names as an environment variable in the project settings, but this can be done outside of Visual Studio. You may want to build your own program or script to import your MFEXTMAP.DAT file into the app.config file Here is a content of an app.config file: ----- <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <!--The following code declares a section group for application configuration --> <sectionGroup name="MicroFocus.COBOL.Application"> &nbs
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.