Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
Problem: SQL Server 2000 - global tables work, but need to use local temporary table and those are not working. Resolution: You need to use dynamic SQL and the EXECUTE IMMEDIATE statement to create the temporary table. Use something like the following: declared a string- 01 preptmp pic x(100). move create statement into the string string 'Create table #empbas2 (emp_id char(10), ' ' name varchar(30))' INTO preptmp end-string. used dynamic sql to execute the statement
Problem: A Java application is trying to call a COBOL program, which does nothing except throw out some displays. The code in the Java is extracted from the MF examples: private void callInterface() { int retcode; Object[] params = {record}; try { retcode = runtime.cobcall("TESTCALL", params); } catch (Exception e) { e.printStackTrace(); } } "record" implements "DataType" as required. When executing this (as a JUnit test within Eclipse), this gives a CobolException - program not found.&
Problem: 114 error when loading Net Express. Resolution: Please try the following when you get this error: 1) Open a Net Express command prompt: Start, Programs, Micro Focus Net Express 4.0, Net Express Command Prompt 2) At the command line enter: mfnetx /n If this works, then you probably have a corrupt project (.APP) file. You will need to recreate your project file from scratch. If this is not the issue then look at the following: Lets take a step back and see if anything runs. As before, open a Net Express command prompt and enter "COBOL" at the command line followed by pressing RETURN. Does this give the 114 error ? If not (control and C breaks out of the compiler), then go to the following folder: \\net express\\base\\demo\\adsamp and enter: cobol adsamp anim; Does this work? If it does, then the next step is to ensure that your installation o
Problem: Support for CURRENT TIMESTAMP is likely to be required in migrations from Cobol AS/400 with Embedded SQL to Windows platforms using Micro Focus COBOL and OpenESQL. This is an example of a sentence where CURRENT TIMESTAMP is used. In this case, CURRENT TIMESTAMP is substituted by the current date time at execution and used as a value for column TSCOLUMN: EXEC SQL INSERT INTO MYTABLE (COLUMN1, COLUMN2,
Problem: File Type: LINE SEQUENTIAL File Charasteristics: Tab-delimited fields If you view a record via the "Examine" option when animating, or directly via the data file editor in a project, the tab characters are not visible. If, when in the animator, you toggle to view in HEX, it shows spaces where the tab characters are assumed to be. Resolution: To see the tab characters, you need to set the EXPANDTAB runtime configuration switch to OFF. You can do this by setting this in either extfh.cfg (which is the default file-handler configuration file) in the local directory, or by using the EXTFH environment variable to specify a different file-handler configuration file. For example: set EXTFH=C:\\working directory\\my.cfg An example of a config file is as follows (either my.cfg or extfh.cfg): [XFH-DEFAULT] EXPANDTAB=OFF By default EXPANDTAB is ON. This means that if the file is viewed via either the data fi
Problem: Haven't you ever wondered why there is not a simple way of obtaining this, like an intrinsic function, or using INSPECT? Or maybe you have tried something like: working-storage section. 77 ws-name pic x(50). 77 ws-count pic 9(03). procedure division. move "Micro Focus" to ws-name inspect ws-name tallying ws-count for characters
Problem: The toolbar no longer appears when I launch Net Express. Have opened and closed IDE multiple times and it won't be displayed. Doesn't appear to be minized anywhere. Resolution: From the IDE View -> Dockable Windows , check Toolbar and the Toolbar should now be displayed. Old KB# 6899
Problem: Error when registering a COM Server created using Interface Mapping Toolkit. File not found. Resolution: This error can occur as the COM DLL is dependant on the comservices.dll that resides in the base\\bin where you installed Net Express. If you add base\\bin to your path then the DLL will register correctly. Old KB# 6902
Problem: How can I using a filter or mask access each file in a directory. Resolution: The x"91" function 69 call supports this. Old KB# 6910
Problem: How to make the ADO.NET Get Connection Resolution: You can use Sql Assistant to generate the code (Aux tab) - select connected ado radio button and select generic program - insert that code into program and then select GET CONNECTION and insert that code into program as attached example does. Attachments: Program1.cbl Old KB# 6933
Problem: We used to use this program, dfedwg.exe to edit customer datafiles. Is there a NE 4.0 equlivent for this program? Resolution: In Net Express 4.0 the Data Tools are now integrated into the main development environment. Old KB# 6913
Problem: There is no function in Dialog System to load a PDF file. Resolution: A way to do this would be to use the Windows API function ShellExecuteEx to open the PDF file. This obviously requires the Adobe Acrobat Reader to be installed on the machine before it could work. Old KB# 6896
Problem: If you follow the "Working with COBOL Projects with .NET" tutorial and get at the steps for adding a Web reference, you may get prompted to open or save after clicking on the Service1 link from the Add Web Reference wizard. Resolution: This problem may actually occur with any service that is selected from the Add Web Reference wizard. This simply means that the file name extension (.asmx) was not mapped to any program or interpreter that processes that file type. Here are the steps to map that file name extension to the program or interpreter: 1. Find out if there are different versions of the MS .NET Framework installed on the machine 2. Determine which one (if there are more than one version) is the latest version by looking at the directory name (e.g. C:\\[Windows directory]\\Microsoft.NET\\Framework\\v1.1.4322 is more recent than C:\\[Windows directory]\\Microsoft.NET\\Framework\\v1.0.3705) 3. Open a command prompt session 4
Problem: The tutorial gives the following steps to add a web reference: 1. Right-click OurConsApp in Solution Explorer, and click Add Web Reference. The Add Web Reference wizard is displayed. If we knew the URL, we could enter it directly in the URL entry field. 2. Click the link for Web Services On The Local Machine. A list of all web services on your machine appears very quickly, showing the Services name and URL. We only have one, Service1. Resolution: If the user does not see anything after clicking the link for Web Services On The Local Machine, it is possible the user does not have a web server running on his/her machine. (This would be the case for Win9x/ME and WinXP Home users) If user is running Windows 2000 or XP Profesionnal, they can install the IIS as follows: 1. Go to Add/Remove Program from Control Panel 2. Click on Add/Remove Windows Components from the left-hand right of the window 3. Check the option for Internet Information Servic
Problem: Net Express 4.0 is not supported under Windows ME Resolution: The supported Windows operating systems are: 98, NT, 2000, XP, Server 2003 Old KB# 6917
Problem: Can you use free format source code with Oracle's Pro*COBOL? Resolution: We would not recommend the use of free format source with Pro*COBOL. Cobsql does not support use of the SOURCEFORMAT"FREE" compiler directive. If you wish to use free format source code, you must use OpenESQL instead. Old KB# 6891
Problem: Are there any examples of accessing Excel from COBOL via COM? Resolution: There are examples in Net Express which show how to access Excel and Word from COBOL. The demos can be found in: \\Net Express\\Base\\Demo\\OLEDEMOS\\EXCEL \\Net Express\\Base\\Demo\\OLEDEMOS\\WORD \\Net Express\\Base\\Demo\\OLEDEMOS\\REPORT The downside with OLE is that you are reliant on the vendor of the OLE server for details of the methods they make public. In Microsoft's case this is normally in the Visual BASIC for Applications on-line help. Old KB# 6935
Problem: Receiving a -170 syntax error on SELECT statement containing a WHERE clause. The WHERE clause contains a host variable declared as a group item. Resolution: Although you can use groups of data items as a single host variable in embedded SQL, group items are not permitted in the WHERE clause. Old KB# 6898
Problem: How to be able to have upper and lower case in a PROPERTY Statement in a datafield as property of a class. The problem here is that all letters are automatically changed into capital letters. Resolution: This is COBOL syntax and everything is automatically transformed into capital letters. In order to have lower case or a mix of upper- and lower case letters you can do the following: working-storage section. 01 TestValueAdd1 pic s9(9) comp property as "TestValueAdd1". 01 TestValueAdd2 pic s9(9) comp property as "TestValueAdd2". ******** ^^^^^^^^^^^^^ UPPER- and Lowercase method-id. "InstanceMethod" as "MixedCase". local-storage section. linkage section. Old KB# 6928
Problem: If you use charset"ebcdic" in a OpenESQL program that uses SQL Server you will get the following error when linking:- error : unresolved external symbol _OESQLEBC@12 Resolution: You need to link your EXE with OESQLEBC.OBJ that is supplied with Net Express Old KB# 6904
Problem: Pgm using RM syntax: SELECT PRNTFL ASSIGN TO PRINT "PRINTER" ORGANIZATION IS SEQUENTIAL FILE STATUS IS ER-STAT. Resolution: 1) Create file MYCONFIG.CFG containing record: set printer_redirection=TRUE 2) Set environment variables: COBCONFIG_=MYCONFIG.CFG dd_PRINTER=\\\\network drive\\printer name Old KB# 6920
Problem: Windowsa 2000 Terminal server\\clients Resolution: The clients need access to the HKEY_LOCAL_MACHINE\\Software\\Micro Focus\\ASLMF. From the Terminal server administrator signon RUN REGEDT32 Locate the folder HKEY_LOCAL_MACHINE\\Software\\Micro Focus\\ASLMF high light and select the security pull down menu and permissions. For the user group or everyone uncheck any permission and select the Advanced button. Select the ADD button and high light the group; press OK button. Change the apply to "this key only". Allow all options Select OK Select APPLY Exit regedt32 Old KB# 6923
Problem: When using OLE applications such as Word\\Excel, where can you find the corresponding commands in Net Express, e.g. invoke theDocuments "????" etc. Resolution: The Automation Objects and Properties (such as "theDocuments") that can be invoked by Word\\Excel product are documented in the "Microsoft Word\\Excel Visual Basic Reference" which you must ensure is installed. It is an optional component that you select when installing Word\\Excel. Old KB# 6909
Problem: How to get more information if the application gets back a run time error similar: 17, 25, 1? Resolution: You can find additional information within copybooks pan2link.cpy and pan2err.cpy based in the Net Express ...\\base\\source folder. For example: 17, 25, 1 25 -> pan2link.cpy -> 'GetWindowData' and 1 -> pan2err.cpy -> 'Window-Doesnt-Exist' Old KB# 6943
Problem: If a cookie (e.g. mycookie pic x(6)) is placed in a HTML page, Net Express's Form Designer will generate a copybook for the web application as follows: ... 03 gmycookie. 05 pmycookie pic x(5). 05 mycookie pic x(06). 05 smycookie pic xx. 03 hmycookie redefines gmycookie pic x(13). &nb
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.