Browse all forums dedicated to the Rocket® COBOL product family.
Recently active
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
The following information pertains to UNIX/Linux platforms, for commands entered on the command line (i.e. at a shell prompt), or commands within makefiles or build scripts. If you are already familiar with the "cob" command and its flags (including the "-x" flag), you might briefly review the following introduction, then skip to the section below named "Problem". Introduction To create a system executable, use the "cob" command with the "-x" flag. For example: cob -x myprog.cbl ./myprog In this example, "cob -x" invokes the COBOL compiler to compile "myprog.cbl" to object code (creating "myprog.o"), then automatically invokes the system linker "ld" behind the scenes to link "myprog.o" with COBOL runtime libraries to produce a system executable named "myprog". The executable can then be invoked by its name at the command line. If an a
On the bottom of my screen, when I'm editing a COBOL program in Visual Studio, I can see the status of my insert key (OVR/INS), but I can't see whether I've got CAPS LOCK on. Is there something I can poke to show me the status of my CAPS LOCK key?
Hi! I must set a Image like this in C#: imageArtikel.Source = new BitmapImage(new Uri(Bild)); Have anyone done it before? #SetIMAGESourcemanuelinWPF
In some terminal emulators, certain byte values may not be printable in the current character set used. For example, in the terminal emulator Putty, the character set may be set to ISO 8859-1 West Europe, or similar. Changing the character set to UTF-8 will correct this problem, and allow Data File Editor to correctly display records containing this kind of binary data. In Putty, this setting is found under Window->Translation.#ServerExpress
I've compiled up a lot of .obj files from with VisualCobol 2.1 using Visual Studio. I need to get these running on a linux server using cobrun. I tried grabbing the obj files and using "cobrun programname.obj" and get an error "217 Incompatible host for native code file" Now I know I'm missing something fundamental, but cant seem to find it in the help. Any pointers would be greatly appreciated. Steve
I'm using a Visual COBOL trial licence to migrate one program developed using a very old COBOL version to a newer one, and im facing a problem related to file handling. The program needs to open a physical file twice at the same time, using INPUT and I-O modes. Below is one part of the code: (...)FILE SECTION.FD ARQDK7 RECORD CONTAINS 1461 CHARACTERS VALUE OF FILE-ID IS NOMSOR-DK7 DATA RECORD IS REG-DK7. 01 REG-DK7. 05 CHAVE-DK7 PIC X(16). (...) FD ARQDK7-CP RECORD CONTAINS 1461 CHARACTERS VALUE OF FILE-ID IS NOMSOR-DK7-CP DATA RECORD IS REG-DK7-CP. 01 REG-DK7-CP. 05 CHAVE-DK7-CP PIC X(16). (...) PROCEDURE DIVISION MOVE "name_of_file" TO NOMSOR-DK7.MOVE "name_of_file" TO NOMSOR-DK7-CP. OPEN I-O ARQDK7.OPEN INPUT ARQDK7-CP.(...) The I-O mode handles all the data process.The INPUT mode is used only for verification while the program runs. Thanks in advance.#COBOLFILE#COBOL
Starting with the availability of file version 3 for release version 6.6, RM/COBOL has supported the creation of index files greater than 2 GB. With the release of version 7.5 and file version 4, the default file index file version supports these large files.There are several steps to adding support for large files for existing index files: 1. The first step is to make sure that the Operating System supports the creation of files greater than 2 GB. This may involve changing the file system, a kernel setting, or even the ulimit associated with a user account shell. Your systems support person will need to accomplish this, as each Operating System may do it differently.2. Next, edit/create the default configuration file (runcobol.cfg) located in the RM/COBOL installation directory. Add the following two records to that file: ----------------------RUN-FILES-ATTR LARGE-FILE-LOCK-LIMIT=512RUN-INDEX-FILES USE-LARGE-FILE-LOCK-LIMIT=YES ----------------------**The default LARGE-FILE-LOCK-LIMIT
In order to get the InfoExpress server to create files with the correct permissions, you will need to execute the InfoExpress server from a shell script that sets the correct umask. This should allow you to control the shell that the InfoExpress server is created in. This will give you control over the permissions of files created using InfoExpress.UNIX-like operating system, have the function, "umask", which can be used to change the default permissions for newly created files for any user.For more information regarding umask, please consult the man pages for your operating system.
The online Designer help discusses this topic in detail. However, the following is a simple guide to setting it up. This guide assumes that you have created a new catalog and have imported the FDs of all the files you wish to use. All files MUST have the same structure and data definition. If you wish to 'merge' data from files that have dissimilar structures, then create a table per file and merge the data in your ODBC enabled application using SQL JOIN.1. Open each FD, right click, and select Add File Label. Ensure the name is unique for each FD. It helps to give the File Label the same name as the FD. 2. Create a table and drag all the fields (including the File Label field) from the first FD.3. Click the table connection toolbar button. You should see the table connection for the first FD. For each FD (data file), highlight the element Table Name and click the add table connection toolbar button. For the Path Name enter the name of the data file to access and for the File L
This applies to programs using file names that do not specify a path. To create new files via the InfoExpress server rather than in the current working directory, use the following configuration record:DISABLE-LOCAL-ACCESS-METHOD=UNQUALIFIED-NAMESHowever, this option affects only where new files are created; it does not affect finding existing files in the current working directory.If you have files in the current working directory with names that match what the program is looking for, but want the request to go through InfoExpress, there are some undocumented DISABLE-LOCAL-ACCESS-METHOD options that should work for you. These are: ALWAYS, INX-ORG, REL-ORG, and SEQ-ORG. ALWAYS means that the local access method is disabled for *every* file, including program and temporary files. (You probably don't want to use this one.)The three xxx-ORG options mean that the local access method is disabled for all files of that organization (Index, Relative, and Sequential files, respectively). If
[Migrated content. Thread originally posted on 17 February 2011]Hello,is there a way to add libraries to the classpath in Eclipse.I have a class in a .jar file (code below) :package com.easypaygroup.javacobol;public class Content { private String content = "Initial value"; public void showContent(){ System.out.println(content); } public static void main(String[] args) { Content content = new Content(); content.showContent(); }}And i have a COBOL JVM project with the following source : program-id. testjava as "testjava". environment division. configuration section. data division. working-storage section. procedure division. invoke type java.lang.System::out::println("help") invoke type com.easypaygroup.javacobol.Content::showContent(). goback. end program testjava.I do not get it compiled in Eclipse. Adding the jar library to the classpath in Eclipse doesn
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.