Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: How do I create a Static Constructor for a COBOL class under .NET? You should NOT use the "new" method in the static paragraph as a static constructor. The "new" method would act as a type of instance constructor and is better used in the object paragraph. Instead, you can code a procedure division directly in the STATIC area (following the declaration of any static data), and you should find the code will get excecuted as a class constructor. Very simple example: class-id. MyClass as "MyClass". environment division. configuration section. repository. static. working-storage section. procedure division. &nb
Error Executing AcuXUI 8.1 with Java 1.5 This article describes what to do when you receive an error while attempting to execute AcuXUI Version 8.1 with Java Version 1.5. Problem: When executing AcuXUI Version 8.1 with Java Version 1.5, you will encounter the following errors:C:\\test>"c:\\Program Files\\Acucorp\\Acucbl810"\\acugt\\bin\\acuxuiPlease enter the runtime command-line options that you want to use (e.g., -d -c cblconfig -l -e errorfile):Please enter the object file and path (e.g., V:\\Dev\\Source\\program1.acu):test.acu java com.acucorp.acuxui.AcuXUI --acucobolgt "C:\\Program Files\\Acucorp\\Acucbl810\\AcuGT\\wrun32.exe" test.acujava.io.IOException: CreateProcess: wrun32.exe --java-host:52742 test.acu error=2 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) at java.lang.ProcessBuilder.start(Unknown Source)
Problem: Calling sub programs, total size limitation. Queston is about the "1020 limit" noted in the documentation. "The total size of all the parameters passed must not exceed 1020 bytes, where each BY REFERENCE and BY CONTENT parameter occupies 4 bytes." This limit would permit the passing of 255 "by reference" parameters in a single call statement. This limitation is documented in Net Express Help under: Programming ......Calling Programs ..........Passing parameters to a called program Resolution: The complete article from Net Express Help Passing Parameters to a Called Program Parameters are passed to a program by specifying them in the USING phrase of the CALL statement. For example: CALL "program-name" USING parameter-1, ..., parameter-n Similarly the called program specifies the parameters in the USING phrase of its Procedure Division header or its ENTRY statement. The parameters need not have the
Problem: Net Express Release 4.0: A runtime error 114 occurs when running a program compiled with the directive DIALECT"BS2000" after the all04n40 WrapPack has been installed. Resolution: There is a bug in utils.lbr which will be fixed in the next official WrapPack and this error should not occur after applying all05n40 or later versions. Meanwhile, the all04n40 Wrappack can be uninstalled and the all03n40 WrapPack can be used. Old KB# 5185
Problem: How do I resolve "Error invoking unauthorized copy..." on Windows 2003? (Loc 508) Resolution: If the administrator account can run, the most likely cause of this error is insufficient privileges to create the needed key in the registry entry: [HKLM\\SOFTWARE\\Liant Software Corporation\\Common The runtime requires a user ID with appropriate permissions to access HKLM, or at the very least, that allow the user access to that registry entry. A Power User normally has sufficient permissions to write to HKLM, so an Administrator user ID is not required. The HKLM\\SOFTWARE\\Liant Software Corporation\\Common portion of the registry is used to make the runtime start faster, so it is advantageous to allow this access. Another possible cause that affects Citrix and Terminal Services users of RM/COBOL is the "Create Global Object" privilege implemented in Service Pack 4 for Windows 2000. This privilege also affects all subsequent Win
Problem: Set the focus on an item of a Selection-Box | set an item of a Selection-Box as Selected The Dialog System function SET-LIST-ITEM-STATE is not available for a SELECTION-BOX. To set the focus on an item of a SELECTION-BOX, the Net Express Class Library must be used, ........11) creating an instance of the class selectionbox [selectionbox is class "selnbox" ], using the ..............class method fromHandle herited from the class Guibase; ..............The class method fromHandle uses a parameter which is the OBJECT's handle, in this case ...............the SELECTION-BOX's handle, retrieved with the DS function MOVE-OBJECT-HANDLE . ........12) use the instance method SetSelected of the class selectionbox ............... This method uses one parameter which is the item number to be selected ............... ( method SetSelected: Set the listbox item determined by the index to be selected ) NOTE the Netx CLASS LIBRARY can be invoked i
Problem: A web application is failing with RTS 114 on ACCCGI.INT, and this is occuring with Application Server for Net Express 4.0. Resolution: This has been fixed since Service Pack for Application Server version 4.0.006 (APS06A40.EXE). Old KB# 5004
Problem: Exception 65538 not trapped by the class javaexceptionmanager. Description: "Java runtime exception" Unable to load class: (his calls name) Resolution: Check that CLASSPATH is set to the mfcobol.jar;. in the Net Express Application Server directory CLASSPATH=c:\\program Files\\Micro Focus\\Application server\\mfcobol.jar;. Old KB# 5008
Problem: It is possible to use one single program for validation of multiple input fields. Resolution: The key is that each user defined validation must be an entry point within the same program. This program then must be loaded in memory to allow all these entry points to be available upon validation. The program can be called before calling Dialog System for the first time, and it is important that the main entry point (PROCEDURE DIVISION, a dummy entry point) should have nothing but GOBACK. Old KB# 5020
Problem: Why do parent objects shine through clipped child windows? Resolution: This is a known issue with Windows -- it actually dates back to the days of 16 bit Windows! Unfortunately, Microsoft has never fixed the issue in any versions of Windows and there is nothing we can do to "work around" it. This is why the majority of GUI Windows applications do not have objects on the parent window when using clipped children. Your options are: 1) Remove the objects from the parent window. 2) Do not use a clipped child window. Old KB# 5018
Problem: Is it possible to restrict the number of rows displayed in a Dialog System ListBox? For example, the CUSTOMER demo supplied with Net Express shows order lines with no data i.e. all zeros. Resolution: This issue is easily resolved with the SET-DATA-GROUP-SIZE function. You simply pass the name of the group associated with the ListBox and a variable containing the number of rows. This functions needs to be actioned before the refresh and displaying of the listbox. Old KB# 5017
Problem: Is there a possibility to assign keyboard events, i.e. CURU (cursor up) and CURD (cursor down) if the focus is set on a push button? Resolution: Unfortunately, the answer is: no. According to the Keyboard Events documentation: "You cannot assign the left, up, right or down keys on buttons. Also, you can trap Tab or cursor key events only when focus is on entry fields and selection boxes. Note that the CURU/CURD, TAB/BTAB, and F4 keys can be trapped by dialog only on objects. This also applies to ANY-OTHER-EVENT if it is connected to any of the above keys." You can find this topic by opening the Net Express help and using the contents to navigate to: Programming-> User Interface Programming -> Dialog System -> Dialog Statements: Events -> Keyboard Events. Old KB# 5015
Problem: There is no option to print data validation rules from Dialog System. Resolution: Instead you can export the data block as a text file and print it from a text editor (Notepad). To export data block to a file: 1. load screenset into Dialog System 2. click on File > Export 3. uncheck all options under "Sections to export" except "Data Block" 4. rename the file extension to TXT, so it can be opened automatically with a text editor 5. click on the Export button Old KB# 5019
Problem: An application with a splash screen will need to pause to allow the users to see the splash screen. Resolution: In the splash screen's WINDOW-CREATED event, a TIMEOUT function can be used to pause for certain time. The syntas is as follows: TIMEOUT time procedure-name where time is in 1/100th of a second where procedure-name will be executed after reaching the amount of time Example: WINDOW-CREATED TIMEOUT 1000 TERMINATE-WIN TERMINATE-WIN TERMINATE *This procedure times out for 10 seconds and terminates the window Old KB# 5010
Problem: This error is reported when installing Net Express Application Server. Resolution: Before installing the Net Express .NET Application Server, you need to have the Microsoft .NET Framework installed on the machine. The Net Express Application Server installation procedure calls the GACUTIL command that is part of the .NET framework to enable the roll out of the .NET runtime files. The error message equates to the Application Server setup not finding the .NET Framework, and therefore unable to use the GACUTIL utility. Installing the Microsoft .NET Framework before installing the Net Express Application Server should clear these errors. Old KB# 5003
Problem: Problems still exist with running the service packs for the silent install of application server for Net Express 4.0 with .NET Resolution: Steps to do Silent Install of Application Server for Net Express 4.0 with .NET including the service packs. Step 1. On the machine you plan to do the Silent Install of Application Server, run the MFSUPPORTINFO utility and check to see if any Net Express development products are installed. Note: the MFSUPPORTINFO utility is located at www.microfocus.com at the top , click on Support login to Supportline on the left under Self-Service , click on Net Express Examples and Utilities click on Samples click on Utilities scroll down until you see MFSupporInfo.zip Step 2. From the Application Server for Net Express with .NET cd, copy the Application Server folder down to a temporary folder on your machine ( c:\\apsne40 ) The installation for application server will then
Problem: window move - ok what is the event for window size change? Resolution: WINDOW-SIZED Occurs when a window is sized. Remarks: The event can also be generated as a result of WINDOW-MAXIMIZED, WINDOW-MINIMIZED, or WINDOW-RESTORED events. Example: WINDOW-SIZED RETC See also: WINDOW-MAXIMIZED WINDOW-MINIMIZED WINDOW-RESTORED Old KB# 5013
Problem: The silent install of Application Server does not work from CD product. New SETUP.INS file required, see instructions below and use attached file. Resolution: 1. Copy the Application Server directory from the CD to a directory on your machine. 2. Replace the setup.ins with the one contained in the attached apssilentins.zip file. 3. Record a sample install to setup a valid install script using the following command. setup -r -f1c:\\directoryname\\your_silent_name.ISS NOTE to make it easy make the C:\\directoryname\\ be the directory you copied Application Server. 4. For silent install run the following command from the copied application server directory. setup -s -f1c:\\directoryname\\name.iss. Attachments: apssetupins.zip Old KB# 4998
Problem: In many cases, either due to a high number of runtime installations or logistical problems, it is not practical to install Application Server directly on to every client machine. Instead, the runtime can be installed just the once on the server machine and then on each client machine carry out the following steps. Resolution: 1) Install the Application Server on to the server machine. 2) As long as the client machine can be mapped to the server machine on a network, set the client COBDIR and PATH so that it points to the correct path of where the application program is installed on the server machine. 3) On the client machine then set ASLMFNET to the path on the server machine where the license database is installed with the license already set up with a valid key. Old KB# 5005
Problem: How to disable the ListView column headers to sort when the user clicks on them? By default, ListView sorts the rows when its column headers are clicked on. Resolution: You can simply invoke the NoSortHeader method before the List View control gets created. In case you are not sure where to insert this, just follow the steps below: 1. Edit the List View control program 2. Look for "Create-Entry-Point Section" (you will note a comment few lines below, which says "Create the control, nothing will be painted until the class library system event loop is resumed" 3. Insert INVOKE aControl "NoSortHeader" before INVOKE aControl "create" Old KB# 5021
Problem: A nesting underflow error occurs when attempting to save the Dialog System screenset. If you try to export the .GS you get a 153 error. Resolution: This error can be cleared by: IMPORTANT: Take a backup copy of the original .GS file before trying the following: 1) Load the screenset in to DSWIN e.g. dswin example.gs. 2) Open the Data Block editor and close it again without making any changes. 3) You should be able to save the screenset (Save As) to a new file e.g. TEST.GS. 4) Load TEST.GS in to Dialog System and undertake a full export. 5) Create a new screenset and import TEST.IMP in to it. You should now be able to save the screenset to its original name. If the problem persists, then please contact your local Micro Focus support office. Old KB# 5022
Problem: What is the maximum size of master field for Dialog System's Multiple Line Entry (MLE) field? Resolution: The maximum size for a master field is 65535 bytes (64K - 1 byte). In other words, PIC X(65535) is the maximum size. Therefore, that is the same maximum size for a master field to be associated with MLE. It is worth to note that the 64K limit that is specified in the documentation is for the size of the Data Block in 16-bit environment only. There is no limit for the Data Block size in 32-bit environment. Old KB# 5014
Problem: The message "Variable Syntax", and not the usual AppTrack options, may be returned when running apptrack in Application Server. Resolution: If you are running apptrack from csh try instead from sh and this should solve the problem. Old KB# 5006
Problem: When I use the same selection box multiple times the value in the masterfield automatically gets added. How can I stop this happening? Resolution: This is quite a common (and frustrating) problem which a number of users have hit over the years. To correctly populate the selection box with the master field preset you need to do: move "Preset" master-field delete-list-item sb1 1 item-count insert-many-list-items sb1 group-item item-count refresh-object sb1 where: master-field is the Dialog data item containing the selected choice. sb1 is the object name of the selection box. group-item is the Dialog data array containing the items to populate the selection box with. item-count is the number of entries in our selection box. This ensures that the selection box is cleared out prior to population. Old KB# 5012
Problem: A screenset is created in Dialog System on a monitor set at a resolution of 1024 x 768. However, when the programs are run on a monitor set at 800 x 600 the fonts and bitmaps present in the screenset change size etc. There is, however, a way to prevent this from happening. Resolution: Multiple Resolution and Dynamic Window Sizing Both the multiple resolution and dynamic window sizing features are enabled by a CALLOUT to "dsrtcfg" with a flag of 9 and an identifier that tells Dialog System what resolution the screenset was defined in. Dialog System uses Panels V2 generic coordinates, which provides a basis for cross-resolution support and compatibility with differing graphics adapters. This results in differing coordinate values for what otherwise appear to be the same resolution value. To check the value you need for your definition platform, a verification program is supplied with Dialog Sy
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.