COBOL Questions and Answers

Recent IT Questions

61 - 80 of 154

Does anybody know whether it is possible to overrride LRECL for a variable input file, dynamically allocated in COBOL via "setenv" or not?

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...

Answer Question   |  Aug 15 2008  4:51 PM GMT
COBOL, LRECL
asked by Hullu

  5 pts.

Ensuring VSAM files are closed before COBOL program updates

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...

View Answer   |  Aug 7 2008  2:47 PM GMT
COBOL, Mainframe computers, CICS
asked by Data Center - Ask the Expert

  235 pts.

Printing Documents

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...

View Answer   |  Aug 6 2008  5:00 PM GMT
COBOL, JCL, DOC1
asked by Skmcm

  40 pts.

COBOL Debug

Can d COBOL program be debugged like RPG and if so how do I do it. Thanks

View Answer   |  Jul 31 2008  7:49 PM GMT
COBOL, Debugging, COBOL debugging
asked by Shazam

  5 pts.

Timestamp InCOBOL/400

Can we use Timestamp in COBOL/400. If we can, how?

View Answer   |  Jul 31 2008  11:03 AM GMT
COBOL, Timestamp
asked by BIBINAS400

  95 pts.

Enterprise COBOL XML Attributes

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...

View Answer   |  Jul 30 2008  3:10 PM GMT
COBOL, XML, z/OS
asked by MMAYS

  15 pts.

COBOL date reformatting

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...

View Answer   |  Jul 17 2008  7:08 PM GMT
COBOL, DB2, DOC1
asked by Skmcm

  40 pts.

COBOL/400 program object source

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?

View Answer   |  Jul 17 2008  4:06 PM GMT
COBOL, RTVCLSRC
asked by AS400 - Ask the Expert

  395 pts.

Subfile

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...

View Answer   |  Jul 5 2008  3:41 PM GMT
AS/400, COBOL, Subfile
asked by Vids

  285 pts.

How to call a COBOL program from Java

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...

View Answer   |  Jul 3 2008  7:41 PM GMT
COBOL, Java, Web services
asked by Srini2

  5 pts.

Enterprise COBOL INSPECT Performance

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.

Answer Question   |  Jul 1 2008  2:35 PM GMT
COBOL, COBOL statements, COBOL INSPECT
asked by Stu223

  5 pts.

Mainframe COBOL - The OVERFLOW Condition.

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...

View Answer   |  Jul 1 2008  8:49 AM GMT
Programming Languages, COBOL, z/OS
asked by Edinburgh

  70 pts.

COBOL web services

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...

Answer Question   |  Jun 25 2008  6:45 PM GMT
COBOL, Java
asked by Uiiuo

  50 pts.

Parameter structure COBOL vs RPG

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...

View Answer   |  Jun 24 2008  1:52 PM GMT
COBOL, RPGLE, Parameters
asked by R.otto

  435 pts.

Arrays in COBOL/400

In COBOL/400 what all types of arrays is possible?

View Answer   |  Jun 18 2008  5:48 PM GMT
AS/400, COBOL, Arrays
asked by BIBINAS400

  95 pts.

Seeking Help with SQL SUBSTR Function using Host Variables in COBOL

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...

View Answer   |  Jun 17 2008  8:52 PM GMT
AS/400, SQL, COBOL
asked by FCARPENTER

  200 pts.

Is it possible convert a mainframe COBOL program to read DB2 data on the mainframe and Oracle data on a server?

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...

View Answer   |  Jun 10 2008  6:37 PM GMT
Oracle, SQL, COBOL
asked by Srichfdic

  20 pts.

Using LIKE in AS/400 Cobol

How to use 'LIKE' in Cobol similar to query/400(example Field_A LIKE '%777%')

View Answer   |  Jun 9 2008  3:20 PM GMT
AS/400, COBOL, AS/400 Query
asked by 11171955

  5 pts.

COBOL Certification

I want to know is ther any COBOL Certification by IBM? (for Example we have IBL ILE RPG Certification)

View Answer   |  May 20 2008  8:52 AM GMT
AS/400, COBOL, Certifications
asked by Vids

  285 pts.

Problem with highlighting a program or JCL

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"...

Answer Question   |  May 16 2008  8:24 PM GMT
COBOL, JCL, Lenovo terminal
asked by Yuefmu

  5 pts.

61 - 80 of 154