Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
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
The source code for the RestBook tutorial application for Visual COBOL 2.2 and later.REST_DEMO_2_2_SRC.zip
Hi, We have a problem associated with multiple ActiveX Word objects. We use MS Word to allow our users to create new letters or display existing ones. We do this by setting up the appropriate document and then passing control to MS Word. In the event paragraph which we use we look for the @ApplicationQuit event and once detected we set a flag. Meanwhile the program is sat in a loop (accept omitted before 100) waiting for the flag to be set so that we know that Word has finished. If the user has two versions of the program running (different threads from the same parent program - a main menu if you will) and each has a version of Word open then when one is closed the other one hangs. I have spent the last few days expermineting and have discovered that the root cause of this problem is the accept in the wait loop. So I changed it to a C$SLEEP. This solved the problem, however, now, sometimes?!?! MS Word doesn't start up correctly and hangs both itself and the AcuCobol application. Does
How do I get a list of checked Items from a checked List Box? I have tried several methods but it won't accept anything. I need help!
When Editing data in a text box, how can the Insert key toggle between Insert and Overwrite. It seems to be stuck in Insert mode. This is during execution not design. I Have a check box on my form. It takes two mouse clicks to change the state of the check box. One to gain focus and the other to change the state. How can I set it up so that it only takes one mouse click?
Hi all I am trying to access a .NET class / Struct. What I allready have verified is that the dotNET object is created successfully, but when I try to access a property or function wrun32 throws an memory access violation exception. The object is created for testing purpose as filled struct. Any access causes a memory violation... The code we are using is in pastebin: COBOL DEFs http://pastebin.com/aP7zifvV http://pastebin.com/M5ys6e54 COBOL Test http://pastebin.com/hZyt1qG4 C# http://pastebin.com/W1BBpiKY http://pastebin.com/55TEkWWG Any hint what is wrong here would be appreciated... Best Regards Martin#Windows#.net
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.