Does anybody know whether it is possible to overrride LRECL for a variable input file, dynamically allocated in COBOL via "setenv" or not? Here is why: I have been reading an old thread in Tek Tips from 2004(thread209-691941: How to Input Variable Length Record File)which illustrated how to...
We have several VSAM files within a CICS online system that need to be closed so that a batch job can run against the files and update some of them. Right now we issue the cemt commands in batch but the files aren't actually closed at the time the COBOL program runs against them and an abend...
I am printing documents that I have designed in DOC1. The data comes from COBOL programs that I have written that gather information from DB2. The pages are not printing in the center of the page, so it is cutting off some information at the bottom and the right. I got a lead that this is due to...
I am working on a COBOL XML Application where the XML message needs to have an attribute on the Group Level, with subordinate items generated as Child elements. According to the Enterprise COBOL manuals, it appears that I can choose EITHER format by specifing WITH ATTRIBUTES on the XML GENERATE...
I am getting a date from DB2 and I need to reformat it in COBOL. It will eventually be used in DOC1 so I need it to look like a date (i.e. with slashes or dashes). DOC1 was not recognizing the date I am passing in because right now it is just a numerical string, so I could not cast it as a date in...
A Search400.com reader has asked this question: I am facing a problem regarding a COBOL/400 program object without source. Is there any utility like RTVCLSRC to retrieve the source code?
I am using Load All Subfile. I used Page Down key and went to 2nd page then on 2nd Page I pressed ENTER Key, then it went back to the first page of subfile. I am using COBOL program to write the subfile. Can anybody tell me how to remain on the same page after pressing ENTER key on Load All...
From a java program, I have to call a set of COBOL programs. All the COBOL programs have the commitment control option as “slave”. These COBOL programs update a number of files. The web page should list the updated information from these files. After the user’s review, if the user selects the...
I am looking to see if anyone has any performance metrics for the COBOL INPSECT statement. The specifics I am looking for is changing the statement from and INSPECT REPLACING to and INSPECT CONVERTING. Any help would be greatly appreciated.
We would like to able to identify procedural code which, at runtime , has the potential to result in overflow ie the resultant field is not large enough the derived value. Hopefully manually inspecting the code can be avoided (given that we have in excess of 30,000 programs!). Is there a...
As part of application migration we are looking into exposing our COBOL programs as web services and using them in the Java technology. We explored this option and see that a COBOL program can be exposed as a web service using Axis or a WDSC for System i tools. Can anyone provide feedback on the...
We have a COBOL program which can select up to 42 lines. The parameter structure is: 01 PARM PIC X(1024). 03 ID PIC X(4). 03 SELECTED OCCURS 42. 05 ITEM PIC X(4). 05 DESCRPT PIC x(20). I need to call this pgm in RPG. How do I best define the...
Hello All I am currently on version V5R2 and I am trying to make a COBOL program produce some parsed fields from one large field. I have trying to use host variables for al three arguments in the SUBSTR function. The SQL compiler will take a host variable as argument number one but not for...
I have a mainframe batch COBOL program that reads DB2 data. One of the tables is accessed via a singleton SELECT. The table is being moved to an Oracle database on a Unix server. How do I change the program to be able to access the data in Oracle? Are there different ways to it? I'm assuming there...
How to use 'LIKE' in Cobol similar to query/400(example Field_A LIKE '%777%')
I want to know is ther any COBOL Certification by IBM? (for Example we have IBL ILE RPG Certification)
I am a COBOL developer, and I've got a new terminal (Lenovo) yesterday. I have a problem: I cannot highlight a COBOL program or JCL in the TSO. I type command "HI" in the command line, but instead of getting the next screen with highlight options, I am getting the error message "Invalid terminal"...


