Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: Installing Application Server with .net 4.0, getting internal error 2908 when trying to apply SRN90N40.exe Net Express with .net fixpack. Resolution: install .net sdk framework 1.1, then apply the SRN90N40.exe Old KB# 4104
Problem: Example of how to use the PC_PRINT_FILE Net Express call-by-name routine Resolution: INTRODUCTION ========== This example program demonstrates the use of the Net Express call-by-name library routine PC_PRINT_FILE. This routine will print a file allowing the user to optionally select a printer and font that will be used for printing the document. PC_PRINT_FILE uses the same parameters as PC_PRINTER_OPEN so we use the same copybook definitions. SOURCE FILES: ========= Program Files Description ------------------- ----------------------------------------------------------- PRNTFILE.CBL Source program that makes a call to PC_PRINT_FILE. It will display a printer &nbs
Problem: This example program demonstrates how to use the Windows SDK Printing and Spooling functions to print a document which contains embedded printer ESC sequence codes. These codes can control various formatting features of the printer. Resolution: INTRODUCTION ========== This example program demonstrates how to use the Windows SDK Printing and Spooling functions to print a document which contains embedded printer ESC sequence codes. These codes can control various formatting features of the printer. This example demonstrates how this can be accomplished by setting up the printer as a Raw device so as to bypass the print driver and write directly to the printer itself. Printer ESC codes differ between different manufacturers and models so this method is definately not portable. This program was written for an HP LaserJet 5L printer and uses the ESC codes supported by this model and other HP LaserJet printers. You can modify this program for your o
Problem: PuTTy is Freeware terminal emulation software for SSH and Telnet. Using it on Linux, with sde, lines are drawn with lqkxmj characters Resolution: Micro Focus do not recommend settings for third-party terminal emulators. However, we (Support) will take a look at specific customer issues on an informal basis to see if we can help. PuTTy announces itself as an xterm emulator although it seems limited in it's configurables and doesn't draw as well as other emulators using this terminal type in the COBOL environment. The FAQ on PuTTy's web site recommends trying vt220 to resolve some issues. export TERM=vt220 export TERMINFO$COBDIR/terminfo This works well although I haven't found how to return ansi colors. If you're happy with monochrome, I would recommend you try this setting; if not, use PowerTerm which is part of the NetExpress UNIX add-on. Use this in ansi emulatio
Problem: Using the Print feature (File > Print) for some Dialog System screensets fail with error 114. Resolution: The problem is caused by a control that is somehow positioned off the window. To determine the problem, an export file must be produced from the screenset. Below is an example: From the export file Object {NoName} Type TEXT Parent WIN1 Start (2080,65472) Display "PROC" Stylename {Default-Font} End Object #{NoName} This object is attached to WIN1 but the position places it off the window. When print runs, it tries to place this in the screenset image, but because it is off the window, it tries to place it in a location outside the image causing the 114.
Problem: This example program demonstrates the use of the Net Express call-by-name library routine PC_PRINTER_WRITE. It will read the line sequential file PRNTRECS.DAT and output the records one at a time to the default system printer. This program also demonstrates the use of variable length line sequential files defined with the RECORD IS VARYING IN SIZE clause. Resolution: INTRODUCTION =========== This example program demonstrates the use of the Net Express call-by-name library routine PC_PRINTER_WRITE. It will read the line sequential file PRNTRECS.DAT and output the records one at a time to the default system printer. This program also demonstrates the use of variable length line sequential files defined with the RECORD IS VARYING IN SIZE clause. SOURCE FILES: ========== Program Files Description -------------------- -----------------------------------
Problem: This program demonstrates how to allow a user to select a font and style for printing using the Windows SDK function ChooseFont in conjunction with the Net Express PC_PRINTER routines. Resolution: INTRODUCTION ========== This program will demonstrate how to allow a user to select a font and style for printing using the Windows SDK function ChooseFont in conjunction with the Net Express PC_PRINTER routines. This function allows you to present a list of available fonts to the user for selection. This can also be done by setting the appropriate printer-flag when using the PC_PRINTER_OPEN call but the ChooseFont function is more powerful. It allows you to present a list of fonts based on certain criteria such as only Truetype, only fixed fonts etc. The criteria flags can be found in the CFDEFINE.CPY copy file. This example will use the selected font to output various text lines to the printer. The lines will be printed in differing point sizes and
Problem: If a calling program calls a program without passing all parameters defined in Linkage section (of called program), then the runtime system may fail with runtime error 114. This will happen when the called program references any LINKAGE SECTION field that has not received a parameter. For example, the following is code in the calling program: CALL "SUBPROG" USING WS-AREA  
Problem: You might want to hide or make invisible a control (e.g. input field) in a HTML form based on some values or events. Resolution: The best way to do this is to use JavaScript, a programming language that is common on Web pages. You can have JavaScript to determine when to hide a field. Although you can do many things with JavaScript, it would require you to know about HTML codes as well. The following JavaScript makes input2 invisible when the onclick_func function is executed and the value of input1 is "fano": function onclick_func() { if (document.form1.input1.value == "fano") document.form1.input2.style.display = 'none' } There are so many references of JavaScript on the Internet, and you will be able to find ways to enhance interaction with your web pages. Old KB# 4053
Problem: How to find out the software version of the UNIX product? Resolution: To locate the software version of the cobol unix products installed cat $COBDIR/etc/cobver This will show the software version (see below example: v4.0 SP1) and build version (see below example: 40.03) of the product, as well as any latest fixpack installed (see below example: PTI=Fixpack40.03_10) and if the Enterprise Server Development component is installed (see below example: PTI=ES). For example: cobol v4.0.00-e PRN=RXCTZ/AAA:9h.N3.40.03 PTI=SP1 PTI=ES PTI=Fixpack40.03_10 If you have more than one version of any of the Micro Focus Unix products, then you'll need to know the exact location of where these products are installed to determine the version of these products. Old KB# 4087
Problem: This program demonstrates how to use the Windows 32-bit API function EnumPrinters to obtain a list of available printers and their associated parameters. This demo works on Windows 95, 98 NT, 2000 and XP Resolution: INTRODUCTION ========== This program demonstrates how to use the Windows 32-bit API function EnumPrinters to obtain a list of available printers and their associated parameters. SOURCE FILES: ============= Program Files Description ------------------------- ----------------------------------------------------------- ENUMPRNT.CBL Main program for this demo EnumprintLocal.CBL Program that calls the WINAPI function EnumPrinters to list &nbs
Problem: Does EnterpriseLink support Sun Solaris 10.0? Resolution: Yes. Solaris 10 is supported. Old KB# 4132#Rumba#EnterpriseLink
Problem: This is an extraction from an EL5.05 log file: 2005/05/16 09:19:06 [0x04cc] Process Session(3579): Session Qj0ZUdbFAzpuCpAF processing request http://localhost:80/stscripts/run.stn/onlineIMSA/ 2005/05/16 09:19:06 [0x04cc] SSSession::reload(6996): Reload current URL 2005/05/16 09:19:14 [0x04cc] Process Session(3579): Session w8I21E67VKFieeiq processing request http://localhost:80/stscripts/run.stn/onlineIMSA/ 2005/05/16 09:19:14 [0x04cc] SSSession::reload(6996): Reload current URL What does the message ""SSSession::reload(6996): Reload current URL" mean? Resolution: The "SSSession::reload(6996): Reload current URL" message is indicating that the URL has been reloaded by clicking on the refresh button or pressing F5, etc. Old KB# 4131#Rumba#EnterpriseLink
Problem: While loading screen using either EL Loader or loader lite ther is noway to specify which protocol to use TN3270 or TN3270E but there is a option after the project is created. Resolution: At the start of loader in the information page under the category "Display Attributes" there is a checkbox "Extended mode". TN3270E is extended mode. And is this also true for LoaderLite, the "Extended Attributes" check box turns on TN3270E? Old KB# 4134#Rumba#EnterpriseLink
Problem: How to find out which version of Enterprise Link is installed? Resolution: To check which version of ELink you have installed, go to the Web Authors site and look towards the bottom of the screen. You should see something like: Micro Focus EnterpriseLink 5.0.6 Build Number 6481 on 04/06/06 19:23:36 for Microsoft Windows Old KB# 4133#EnterpriseLink#Rumba
Problem: Is there a compiler directive that will display information regarding data-items? Resolution: The DATAMAP directive causes the Compiler to output information on the data items; both those that you have specified, and those automatically generated by the Compiler, such as the data area for the RETURN-CODE special register. The information is output at the end of the list file. The information on the data items is output in the same order as they are encountered in your program by the Compiler. The first line is the program-id of the program to which the data items belong. This enables you to see the relevant data items for nested programs, or for the various areas of OO class programs (classes, object methods, and so on). For each data item, the following information is listed: The line number The data name The address of the data item, that is the offset from the beginning of the program's data area The size of the data item in bytes The
Problem: Release 4.0 With SP2 for Server Express the treatment of VALUE clauses in the FILE SECTION has changed. Before it was used during program start up to initialize the data items with the desired values (line in WORKING-STORAGE), now it is ignored. Because this behaviour is documented, it cannot considered to be a bug. Questions: Is it possible to get the old behaviour back (maybe by a compiler option)? Or what else solution can you provide to make our old programs run as before? Example: 000100 IDENTIFICATION DIVISION. 000200 PROGRAM-ID. A. 000300 ENVIRONMENT DIVISION. 000400 INPUT-OUTPUT SECTION. 000500 FILE-CONTROL. 000600 SELECT FQS001 ASSIGN TO XX 000700 ORGANIZATION IS LINE SEQUENTIAL. 000800 DATA DIVISION. 000900 FILE SECTION. 001000 FD FQS001. 001100 01 RQS001 PIC X(80)&nb
Problem: CBL_YIELD_RUN_UNIT was present in Object COBOL Developer Suite, but did not appear to work. Has the situation changed in Server Express? Resolution: CBL_YIELD_RUN_UNIT is now functional in Server Express. It yields the remainder of a run-unit's time-slice to unspecified run-units. On some environments this can result in a one-second pause. Old KB# 4078
Problem: This particular may be encountered when running programs after having migrated from OCDS 4.1.30 to OCDS 4.1.40 or 4.2 or to any version of Server Express. Resolution: The error "libfhutil.so.2.0: open failed" is normally due to the fact that this library file, used in the old file handling utility (fhutils) was dropped in OCDS 4.1.40 and support for it was removed in all successive versions of the product and all versions of Server Express. It was replaced by the Rebuild utility which carries out the same functions (and more) with better performances and the ability to handle larger files. Having being replace with the Rebuild utility, it will therefore be necessary to recompile / relink all the object and executable files. Further information pertaining to the old file handling utility and the necessary steps to migrate to the new Rebuild utility can be found In the online manuals "Programmer's Guide to File Handling" and "Migrati
Problem: The example program illustrates how to use the CBL_LOCATE_FILE call-by-name routine. Resolution: ============== INTRODUCTION ========== The example program illustrates how to use the CBL_LOCATE_FILE call-by-name routine. SOURCE FILES: ============= Program Files Description ---------------- ----------------------------------------------------------- CblMain.cbl Example program that uses CBL_LOCATE_FILE to locate Mfnetx.exe REQUIREMENTS: ========== This example was created and Animated using NetExpress 3.1, Service Pack 1. OPERATION: ======= Check and Animate the example. Examine the variables returned by the call to the routine. NOTES: ==== "status-code" provides an overall indication of the success or failure of the routine. "exist-flag" indicates whether the file was or was not found. "path-f
Problem: Example of the COBOL sort using two ways: a sort with Using and Giving and a sort with an Input Procedure and an Output Procedure Resolution: INTRODUCTION ========== This program shows an example of SORTing a file using two methodolgies, a SORT with USING & GIVING and a SORT with an INPUT PROCEDURE & OUTPUT PROCEDURE. SORT examples making use of combinations of these methodologies (i.e.SORT with INPUT PROCEDURE & GIVING) are not shown, but can be easily created using the examples given in this program.*
Problem: Release 4.0: How to get rid off the message after every compilation of any program: The Micro Focus COBOL RTS has detected an RTS error number 173, and has coredumped the process into E:\\NETEXPRESS\\DUMP\\cblcore Resolution: Go to Options -> Animate -> and under Error Handling: Error handling when running programs outside of the IDE change the Core Dump in the drop down menu to Default. Old KB# 4041
Problem: Shows the use of CBL_ALLOC_MEM, CBL_GET_SHMEM_PTR, CBL_PUT_SHMEM_PTR, CBL_EXEC_RUN_UNIT and CBL_FREE_MEM Resolution: INTRODUCTION ========== The Multiple Run Unit (Mru) demo illustrates how you can start multiple, concurrent run units, each with a separate, window display. SOURCE FILES: ========= Program Files Description ---------------- ----------------------------------------------------------- Ru0.cbl Main program that starts and stops the other run units. Ru1.cbl (Subordinate run units that function (once Ru2.cbl -(started) independent of one another and Ru3.cbl &
Problem: How do you create a MFDEBUG log file? Resolution: The MFDEBUG.LOG is really designed for MF use rather than Customers. It is a dump which shows the state of the machine when a COBOL program crashes. Development can decode this and sometimes use it to help pinpoint problems in the runtime. The log file is created automatically and is copied to the working directory. Old KB# 4020
Problem: This demo demonstrates how you can create a zip file or add to an existing zip file from a COBOL program. Resolution: INTRODUCTION ========== This demo demonstrate how you can create a zip file or add to an existing zip file from a Cobol program. SOURCE FILES: ========= Program Files Description ---------------- ----------------------------------------------------------- zip.cbl Copy Files ---------------- ----------------------------------------------------------- minwin.cpy wintypes.cpy winbase.cpy REQUIREMENTS: ========== This demo uses the Big Speed Zip DLL shareware from BigSpeedSoft. OPERATION: ======== Simply rebuild the application and run or animate NOTE: ==== This demo was originally developped by one of our customers, Mr. Gary Holness. Thanks Gary. ========================================================== Keywords: demo
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.