Dynamic call in COBOL

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: Dynamic call in COBOL

Postby dick scherrer » Tue Mar 02, 2010 12:37 am


I'm not sure that concatenation will work for files with different lrecls. . . As the in-put has multiple lrecls defined as FB, i suspect there would be an abend when the run did not contain all files with the same lrecl.

Later, the Ist o/p file is used in some processing.

Even if concatenation would work, i still am confused about how the different-format data would be used in a common file :?

Now, there is a new bit to the requirement to determine if a particular file was copied successfully (not something typically done by cobol code). . . .
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Dynamic call in COBOL

Postby Priyadharshini » Wed Apr 07, 2010 4:20 pm

Hi Dick,

Sorry. The files are of same length. I achieved by internal reader concept through JCL itself.
COBOL is not necessary. By dynamically concatenating the files and merging them will give the required result.

Thanks for your replies.
Posts: 6
Joined: Wed Feb 24, 2010 10:36 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol


  • Related topics
    Last post