Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: If a COBOL Application is called from a C DLL in a multithreaded environment then the C needs to call cobthreadtidy() when it will no longer call any COBOL from that thread. This will allow the COBOL runtime to free any Thread Local Storage that has been allocation and hence stop any memory leaks from occuring. In some applications it is difficult to determine when to call cobthreadtidy. Resolution: In the C DLL that called COBOL you could call cobthreadtidy() from DLLMAIN on DLL_THREAD_DETACH. This would alleviate the need for any logic to determine when that last COBOL Call had taken place. DLL_THREAD_DETACH in DLLMAIN will be called then the thread is exiting cleanly and it is called on the thread that is terminating. Please see the Microsoft Platform SDK for more information on DLLMAIN. Old KB# 1363
Problem: This error may be encountered when trying to use Dialog System within Net Express and is usually due to incorrect path settings during installation. Resolution: The simplest and fastest way to overcome this problem is to uninstall the NetExpress product via the Control Panel (including fixpacks) and then reinstall cleanly from scratch. Old KB# 1338
Problem: As our products still includes .hlp files and WinHlp32 is not installed by default on Vista, you may want to pick it up from Microsoft. This includes; - Net Express - Mainframe Express - Revolve Resolution: Download the following from Microsoft http://www.microsoft.com/downloads/details.aspx?familyid=6ebcfad9-d3f5-4365-8070-334cd175d4bb&displaylang=en Old KB# 1287
Problem: When opening a Dialog System ScreenSet a message box reported a warning: IE: Font not found Resolution: The ScreenSet might be corrupted. 1. Please export the ScreenSet to an IMP file. 2.1. Open the IMP file with notepad or a similar editor and search for: font 2.2. If an illegal font name can be found, please correct it. 2.3. If nothing obviously false can be detected, import the IMP file into an empty GS file The syntax check might find something which can be corrected. Go back to the IMP file and try to correct what was detected as being wrong 3. Import the IMP file into an empty GS file ---------- For getting an empty GS file, please open a new ScreenSet. As a new ScreenSet is not empty, please delete - the global dialog - the data block - the existing window to get a really empty ScreenSet before importing an IMP file. Ol
Problem: Net Express 4.0 Dialog System Is there a way of making it obvious to a user that a tick box or radio button has the input focus? Most fields change in some way but these object types don't seem to. Resolution: This is a known issue on XP and 2000 operating systems. Pressing the 'Alt' button when the project is running turns on the highlighting. You can change this setting from 'Control Panel > Display > Appearance > Effects...'. By unchecking the last option 'Hide underlined letters for keyboard navigation until I press the Alt key', the highlighting of the controls becomes visible. It is not likely that there will be an enhancement to Dialog System for this. Old KB# 1261
Problem: .NET Winform Application doesn't have the Windows XP Style when run Resolution: Just apply the method EnableVisualStyles to the Application's class instance $set preservecase class-id. Main as "WinBook.Main". environment division. configuration section. repository. class class-main-form as "WinBook.Form1" class class-application as "System.Windows.Forms.Application" class class-STA-Thread as "System.STAThreadAttribute" &nb
Problem: Microsoft SQL Server Insert statement with quote within value Resolution: To specify a value that contains a quote, i.e. Del'Oro, the following can be done: 1. Move the value to a host variable previously: 01 MYLNAME PIC X(20). ... MOVE "Del'Oro" TO MYLNAME ... EXEC SQL INSERT INTO SQLTEST (ID_KEY, LAST_NAME) VALUES ('123456', :MYLNAME) &n
Problem: Ist ein paralleler Einsatz des Net Express Application Servers der Versionen 3.1 und 4.0 moeglich? Resolution: Ja, es kann ein paralleler Betrieb der Net Express Application Server Versionen 3.1 und 4.0 auf einem Rechner ausfuehrt werden, wenn folgende technische Anforderungen erfuellt sind: a) Zunaechst werden die Installationen der Application Server 3.1 und 4.0 vorgenommen und damit in der Windows Registry die passenden Eintraege hinterlegt (zu finden unter HKEY_LOCAL_MACHINE/Software/Micro Focus) b) Die auszufuehrende COBOL .exe (bzw. die erste COBOL .dll Datei) sollte 'shared dynamic'' gelinkt sein, damit beim Start der Applikation die dynamisch gebundene .exe (die erste .dll Datei) ueber die Windows Registry exakt das passende Runtime des Application Servers benutzt. Gelingt das nicht, dann wird ueber die PATH Umgebungsvariable ein dort gefundener Verweis auf ein Runtime benutzt und dieses gefunde
Problem: How can I detect if a folder/directory is present? Resolution: The attached demo uses the CBL_DIR_SCAN Call-by-Name routines to check if a directory exists on disk. The code is self explanatory but if you have any difficulties then please contact your local Micro Focus Support centre. Attachments: 2150094.zip Old KB# 1275
Problem: You can use Snippits to help you complete repository entries in .Net COBOL. Resolution: In the repository section if you type "class" then TAB it will run a Visual Studio "Snippit" to help you complete your repository entry for the class. Old KB# 1379
Problem: Programs compiled in NT, are going to Windows 2003 and having a problem. error is cannot find entrypoint 'cbl_get_file_info ' in cblrtss Resolution: recompile and link with the dynamically bound runtime on cbllink -Rs would be required Old KB# 1323
Problem: When CBL_DEBUGBREAK is included in code containing threads running at the same time, the first thread that hits it causes Animator to start, but the other threads execute through with no animation. Resolution: CBL_DEBUGBREAK tries to start a copy of the debugger, but as only one debugger is allowed per process (Microsoft limitation), the call to CBL_DEBUGBREAK made by the second, third and fourth thread, etc.. fails. Displaying the return-code straight after the CBL_DEBUGBREAK call, and seeing that is 0 the first time but it isn't on subsequent calls. A solution would be to lock the call to CBL_DEBUGBREAK, so the first thread that gets there it, and all the others wait until the first one unlocks it. That would give you the chance to start Animator and once Animator is up to swap from one thread to the other using "Animate / Threads...". You can Freeze threads, Thaw them, set one as active, and so on...
Problem: This document describes how to open files or create new files that are not included in a Project. It is not necessary to have a project open in order to use the Data Tools. You can open or create new files using the File menu from the Main tool bar in NetExpress. For more help using the Data Tools to convert, browse, edit and create data files, refer to the Getting Start Online Book chapter called Maintaining and Creating Data Files. It contains an excellent sample on performing these tasks. Resolution: Creating New Files using the Data File Editor 1. From the File menu, select New. 2. From the New dialog box, select Data File. 3. Enter the appropriate characteristics for your data file, and select the Create button. Opening Files using the Data File Editor 1. From the File menu, select Open. 2. At the "Files of Type" option, select Data files (*.dat) or All files (*.*) 3. At the "Open As" option, select Dat
Problem: In Visual Studio 2005 you can now comment out blocks of COBOL Code using a menu option. Resolution: If you have a block of code highlighted you can comment out the code by using the Edit / Advanced / Comment Selection menu option. There is a corresponding "Uncomment" option. This option will comment out code using the "*>" comment syntax. Control-C and then Control-K is the keyboard shortcut for this. Old KB# 1378
Problem: Release 4.0 / 5.0: Is there a tool available to get back version numbers from Net Express Applications installed on both development also Application Server environment? Resolution: Yes, this tool named MFSupportInfo is available as a .zip file for downloading here: http://supportline.microfocus.com/examplesandutilities/nesamp.asp#Utilities Up to Net Express V5.0 MFSupportInfo is part of the Micro Focus product delivery, to find under: (1) ..\\base\\bin installation directory for Net Express development environment (2) ..\\Server 5.0\\bin installation directory for Net Express Application Server Be aware, running this MFSupportInfo utility needs Administrator rights for the underlying Operating System because of reading the Windows registry. Old KB# 1357
Problem: FD VAR-LENGTH-REC-FILE LABEL RECORDS ARE STANDARD. 01 REC1 PIC X(10). 01 REC2 PIC X(20). 01 REC3 PIC X(30). but when it gets written all records are 30 bytes long. Resolution: Adding RECORDING MODE V corrected the problem. Old KB# 1328
Problem: OS: Windows By default Dialog truncates text on a Button when it is larger than the button size. Resolution: There's a demo called buttontext.zip, which demonstrates how to use Windows API calls in order to make the test go over multiple lines. To locate the demo, go to the Micro Focus Supportline website. Click on the 'Self-Service' link, then click on the 'Examples & Utilities' link and is located under the 'Dialog System' category. (http://supportline.microfocus.com/examplesandutilities/nesamp.asp) Old KB# 1337
Problem: Wie loesche ich die Markierungen der Elemente, die bei der Textsuche gefunden wurden? Resolution: ueber den Menueeintrag View->Clear->Text Finds. Old KB# 1367
Problem: Have a machine that still uses Microsoft DOS V 6.2 and using IBM's bi-synchroneous communications app that is on the old machine. How to get this running? Resolution: This is not possible because Net Express character-based applications are not DOS programs. They are actually 32-bit Windows console programs that require Windows 98 or higher to run. Only our very old 16-bit Workbench products would create applications that could run under DOS. Old KB# 1329
Problem: Net Express 4.0 Recompilation/rebuild of an existing project fails with error: Rebuilding F:\\.......\\FILENAME.CBL Error during generation of INT-code Rebuild complete with errors. A new .int file is not created. COBOL programs that are modified may recompile cleanly. Resolution: Close the project and the Net Express IDE. Delete the debug directory for the project. Restart Net Express, open the project and rebuild. Old KB# 1265
Problem: Using an XP machine with the Regional Language settings set to Japanese. receiving the following syntax error .... * 230-S************************************************ ** PICTURE string has illegal precedence or illegal character 1875 15 WPRTL-PRINT-AMOUNT2 PIC $$$$9.99. * 230-S************************************************ This line of code, compiles fine on an XP machine with the regional language settings set to English. Resolution: Setting the compiler directive to CURRENCY-SIGN"36" corrects the problem. Old KB# 1370
Problem: How can I check to see if the Escape key was pressed in my graphical application ? Resolution: In Dialog System the escape key can be trapped with "ESC" Event. If you are using the GUI Class library for controls or windows then you can trap the ESCAPE key with the p2ce-functionkey event. Attach is some example code to illustrate how you can acheive this. Attachments: escape.zip Old KB# 1361
Problem: When a deadlock between 2 processes occured it was found that a SQLCODE was being returned with 100 (row not found) rather than a -1205 SQLCODE. Resolution: This issue has been fixed. Please download and apply the latest Net Express 4 patch to resolve the problem. Old KB# 1358
Problem: In graphical Dialog System how to specify what window will get focus when deleting a window. Resolution: The second parameter to the DELETE-WINDOW function allows to specify what window will get focus when the specified window is deleted. For example:- DELETE-WINDOW WIN1 WINDOWFORFOCUS Old KB# 1280
Problem: Die Umlaute werden nicht korrekt in der Eingabeaufforderung angezeigt. Resolution: Die Einstellungen fuer die Eingabeaufforderung ("DOS-Prompt") muessen geaendert werden: Unter Eigenschaften, Schriftart muss TT Lucida Console oder andere True Type Schriftart ausgewaehlt werden. Darueber hinaus muss die aktive Codepage fuer die Konsole gewechselt werden. Dazu wird folgendes in der Eingabeaufforderung eingegeben: chcp 1250. Anschliessend werden die Umlaute korrekt angezeigt. Old KB# 1364
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.