Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
I create an excel file with many workbooks (worksheets) inside but after 281th workbook i create the program returns me an error. The line i am facing the error is the following: CREATE Application OF Excel HANDLE IN olExcel MODIFY olExcel @SheetsInNewWorkbook= W-B9-SHEETS-COUNTERS MODIFY olExcel Workbooks::Add() GIVING olWrkBk variables: 77 olExcel HANDLE OF APPLICATION. 77 olWrkBk HANDLE OF WORKBOOK. 77 olWrkSh HANDLE OF WORKSHEET.77 OLRANGE HANDLE OF RANGE. 01 W-B9-SHEETS-COUNTERS PIC 9(9). Does anyone know why is that? Giorgos#Excel
Hi! As there is more and more different screen resolutions out there, we are experiencing that grid size is getting an increasing problem. Maybe we have a wrong, or slightly wrong, approach to calculating the size of the grid. We use today textsize-data from the font used (very often default font), but in same resolutions this is not correct. I would be very grateful if anyone could give some information on how they calculate the size of the grid, and maybe a short code sample. Regards Dagl
The following program doesn't seem to do anything. It compiles and runs, and in the debugger the IF conditions indicating an error are never TRUE. It just runs to completion, displays blanks, and writes no file. What am I missing? (ACUCOBOL version is 32-bit ACU 9.2.1 for Windows.) IDENTIFICATION DIVISION. PROGRAM-ID. IOTEST. DATA DIVISION. WORKING-STORAGE SECTION. 01 FILE-STATUS-GROUP. 03 FILE-STATUS PIC XX COMP-X. 03 REDEFINES FILE-STATUS. 05 FS-BYTE-1 PIC X. 05 FS-BYTE-2 PIC X COMP-X. 01 FILENAME PIC X(32) VALUE "test.txt". 01 ACCESS-MODE PIC X COMP-X VALUE 3. 01 DENY-MODE PIC X COMP-X VALUE 0. 01 FILE-HANDLE PIC X(4) COMP-X VALUE 0. 01 OFFSET PIC X(8) COMP-X VALUE 0. 01 WRITE-COUNT PIC X(4) COMP-X VALUE 32. 01 READ-COUNT PIC X(4) COMP-X VALUE 32. 01 GREETING PIC X(32)
At workspace level there is an option "Enable indexer" When this option is on. When you add many programs to a Cobol (local or remote) project, the indexation starts in background. You can't compile a program during the indexation. The indexation may take hours (depending number of programs and number of copys used), so before to compile you have time to drink a pint of single malt ! What is the real usage of the index ? What is the impact if the indexer is off : When I compile a single program is a local project ? When I compile a single program in a remote project ? When I start a project build ? What is the impact if the indexer is off For the local debug ? For the remote debug ? TIA#indexer
Im trying to convert a textbox information to decimal like the following: 01 FIELD PIC 9(10) ... SET FIELD TO TYPE System.Convert::ToDecimal(self::textbox1::Text) The problem is that the textbox contains a mask, and the function tries to convert "(XX)XXXX-XXXX" to numeric, and fails. Is there a way to make the textbox recieve only the typed information?
Hi :)IT's possible to read and write a sequential file in Visual Cobol .net ? Like in that sample ? ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT StudentFile ASSIGN TO "STUDENTS.DAT" ORGANIZATION IS LINE SEQUENTIAL. DATA DIVISION. FILE SECTION. FD StudentFile. 01 StudentDetails. 02 StudentId PIC 9(7). 02 StudentName. 03 Surname PIC X(8). 03 Initials PIC XX. 02 DateOfBirth. 03 YOBirth PIC 9(4). 03 MOBirth PIC 9(2). 03 DOBirth PIC 9(2). 02 CourseCode PIC X(4). 02 Gender PIC XI get that sample in that link:http://www.csis.ul.ie/cobol/examples/SeqWrite/SEQWRITE.htm http://www.csis.ul.ie/cobol/examples/SeqRead/SEQREADno88.htm
I have several methods that I use in all of my forms and projects. I would like to place them in a library and access them from wherever I need them. Can you help me with the setup and syntax? I have done this in other languages I hope I can do it here as well.
Introduction Now that we have a SOAP Web service containing our Legacy COBOL application, the next question is, how can we access it from a client? This tutorial gives a possible client-side scenario of how to use JSP to present the server information. The tutorial uses client-side Web services code to connect to the Web service. The JSP side of the application is based on Visual COBOL 2.2 - JSP Web Services Tutorial and explains the JSP and servlet areas in depth. So this tutorial focuses mainly on the client Web services code and the layer which joins the two sides together. The different parts of the client are: 1. A servlet which is used to receive the user requests using a Web browser. This uses JSP to present the HTML. 2. Bridge code which takes the servlet request and transforms it into an object for the client-side SOAP request, receives the server response and passes it back to the servlet. 3.  
Hi! I have a Problem to Access / Read the Regestry via Windows API under Windows 7 64 Bit Under Windows 7 32 Bit there is no Problem... Here is the code that works under 32 Bit without Problems: MOVE SPACES TO REG-KEY-ERGEBNIS. MOVE SPACES TO KEY-AUFRUF. STRING REG-KEY-HAUPTKEY DELIMITED BY " " X"00"  
TestClient1.zip
Hopefully I'll phrase these in an understandable way. As generated code is non-sharable does this mean each thread in a multi threaded program will load its own copy of a .gnt? If a .gnt is regenerated whilst a program is running is there a recommended way for the program to pick this up and use the new version without stopping it. Can this be triggered from a thread which isn't using the .gnt? Thanks, Gary.
Problem: Using the AcuCOBOL debugger, the following popup message may appear when the debugged programs use threads:"Traced thread waiting for message - switching threads".Click here to see the preview of this popup. Resolution: To avoid this popup message to appear again, select the voice "Run all Threads" from the "Run" menu in the debugger window.Click here to see the preview of this voice of menu.
I need to trap the Event, when a Textfield is left. I.e. when I push a defined (e.g. List-) button, the field that had Focus causes a "Leave" Event occuring before the button pressed Event is detected. I need to suppress any Action on Leave, when not caused by Key Input (Tab or Return). Thanks in advance for any help. Regards Rainer
Problem: The following error occurs after supplying a valid Serial Number and License Key in Apptrack: You cannot have standard & transaction licenses installed together Resolution: You need to review the licenses that are already installed by pressing 1 from the main menu of Apptrack. This error usually occurs when you have previously installed a Developer License that is usually identified with a serial number, such as NXDEVAS5, WINDEVSERV50, etc. If this is the case, you will need to uninstall it, and then you will be able to install your permanent licenses. If the other serial number is not a Developer License, then you will need to contact your sales rep to determine, which serial number and license type you should use to run your applications.
In converting a system from DB2 to ODBC I have discovered (I think) that the previous SQL codes that were returned by DB2 are now different when using ODBC. For example I have just had a -19519 error. When I looked at it it was a 'cursor not open' error. The code currently looks for a -501 error. This may or may not be a major issue. The codes are all stored in a copy library so it may be easy(ish) to change: 78 WS-FILE-DBMWRONGCOLS VALUE -117. 78 WS-FILE-DBMINDNOTFOUND VALUE -204. 78 WS-FILE-DBMNAMENOTFOUND VALUE -204. 78 WS-FILE-OUTOFRANGE
I am working with winforms and in the file section I have a file that needs to be accessed from a static method. I get the following error message on fields that are associated with that file...error code COBCH0969, Cannot access object data from a static method or field. In order to fix these compile errors I put the keyword static on the FD of the file. When I run the program in this way I get a runtime error of NullRefernceException -- object reference not set to an instance of an object. Now I realize that I could make the method as public and my problems would go away, but I really don't want to have to do this. How can I resolve this issue? Thanks#VisualCOBOL
Problem: Eclipse crashes when editing remote cobol source files outside of the IDE Resolution: Starting eclipse.exe with the -clean option will resolve this issue. Certain cache/settings can cause this problem. For example, files may not be cached correctly if a remote connection failed. Clearing and resetting the cache resolves this problem.
I am attempting to convert a system from using DB2 to allow ODBC access so that a customer can have an alternative to DB2. So far I have discovered that I need to remove 'IN SHARE MODE' from the CONNECT statements. Not sure what, if any effect this may have just yet. My next problem is that Some items seem to be held in the database as a char(x) character field but they are read into a smaller PIC X(y) where y is less than x. Under DB2 this appears to be acceptable and no error is returned. Under ODBC (linking to the same DB2 database) I am receiving a Sql Error of 1. This is a warning and using Netexpress I have stepped into the code and found the issue. Unfortunately, the many different programs have the following line following a SQL statement: IF SQLCODE = 0 PERFORM success-oper So, my question is, am I going to have to amend all of the programs (no big deal to be honest as we have utilities to do this) or is there some kind of option to ignore the
Hello all, I know its a simple quesiton, but I couldn't find any solution on the WEB. I have an indexed file that i can entirely read with the code below: ********************************************* program-id. Program1 as "apagar.Program1". ENVIRONMENT DIVISION. CONFIGURATION SECTION. SPECIAL-NAMES. DECIMAL-POINT IS COMMA CONSOLE IS CRT. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT CADBCO ASSIGN TO DISK ORGANIZATION IS INDEXED ACCESS MODE IS DYNAMIC RECORD KEY IS CHAVE-BCO ALTERNATE RECORD KEY IS CHAVE-BCO-1 WITH DUPLICATES. DATA DIVISION. FILE SECTION. FD CADBCO BLOCK CONTAINS 32 RECORDS RECORD CONTAINS 32 CHARACTERS VALUE OF FILE-ID IS "C:/TMP/visual_files/cadbco" DATA RECORD IS REG-BCO. 01 REG-BCO. 05 CHAVE-BCO PIC X(02). 05 FILLER REDEFINES CHAVE-BCO. 10 CODBCO-BCO PIC 9(03) COMP-3. 05 CHAVE-BCO-1 PIC X(30). 05 FILLER REDEFINES CHAVE-BCO-1. 10 ENDERE-BCO PIC X(30). working-storage section. ********************************************* procedure
Problem: List boxes appear as blank or empty using AcuRuntime 9.2.1.At the same time, the monitor sub-window of a debugger window is shown blank, even if a new record is added when a variable is set for monitoring. Resolution: This is a bug in runtime 9.2.1 when the objects are compiled for previous runtimes, using previous compiler versions or -zNN compilation options. To resolve this problem, compile with 9.2.1 and no retro compatibility option. The issue will be completely fixed in upcoming release 9.2.2.The reference to this fix is ECN-4245.
Hi, i have textbox in Window Form. Can i move textbox to cobol pic 9 field? textbox have max "999" ou " 9".... But my field in cobol is pic 9.#textboxtopic9cobol
I have an Extend 9.1.1 program (PDFSTATEMENT) which produces an XML file, using XML extensions (XML EXPORT FILE). This program is called from a calling program (DOPDF2) that passes just 3 arguments to it. It works correctly, producing an XML file (and then a PDF as a second step) When I call the same program to produce an XML file, from a program that is invoked by a call to an XBIS web service, with the same 3 arguments as in the first case, the XML EXPORT FILE statement fails with status code 13 - which means the creation of the XML file failed. If the specified XML file already exists (even if it is a 1-byte file with a space in it), then the XML EXPORT FILE command executes successfully and creates the XML file! However, if the XML file does not already exist, the create fails. I have changed permissions on the bin folder containing the ACU programs, and on the BIN\\XML subfolder where the XML file is created, to have full access for "Everyone" - same re
Problem Where do I find the DOS window embedded in the Net Express IDE? Resolution What you are referring to is called DOS application Output and it displays when you are running INT or GNT that does DISPLAY. If you are running the .exe that does DISPLAY then you will get a separate window that looks like a DOS box. Because this separate window is running as a separate process, it cannot be clipped within the Net Express IDE from the .exe. Also, if you are linking an EXE as a graphic, the DOS window will not populate.#netexpress
Problem: Does the main program lose the file pointer of the record it is positioned at on sequential reads if the called program reads the same file? How about when the main program writes a record to a file and then calls a program that reads and writes to the same file? Solution: When you are using an “external” only one file pointer exists. So, if the main program opens record-file and reads records 1, 2, and then the pointer stops at record 3, then calling subprogram will start at the next record, record 4. From there you return to the main program, doing a read on that file your pointer will be a record 5.
This document describes the steps needed to configure Visual COBOL for Eclipse to work with the JVM servlet APIs and common Java Enterprise Edition (JEE) application servers. It will include the steps needed to configure both the IDE and the server. It will include the steps needed to make the Micro Focus JVM COBOL runtime environment available to deployed web applications. Finally it will include appropriate setup steps for various third party APIs and frameworks that can be used with JVM COBOL. Contents 1 Setting up the Servlet Container 1.1 Setting up Tomcat 1.2 Setting up JBoss 2 Setup of the Server Runtime for Eclipse Web Projects 2.1 Setting up the Tomcat Runtime 2.2 Setting up the JBoss Runtime 3 Installing Eclipse Web Tools Platform Adapters 3.1 Installing the WASDev adapter for WebSphere 3.2 Installing the Oracle Enterprise Pack for Eclipse 4 Additional Configuration Details 4.1 Installing the Eclipse Marketplace Setting up the Servlet Container The servlet c
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.