Passing values to COBOL which uses OCCURS clause



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

Re: Passing values to COBOL which uses OCCURS clause

Postby dick scherrer » Mon Feb 01, 2010 9:34 am

Hello,

If there was a business requirement to list this information,the data would be in a file. The informaton for a person would be in a record. The file would be opened and read in the code and the output written as needed.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Passing values to COBOL which uses OCCURS clause

Postby kranthi.kumarmca22 » Mon Feb 01, 2010 3:15 pm

Ok thats using file handling concepts
open the file
read the file
write or rewrite the file

In batch processing these are the two methods used
1.Passing through jcl
2.using file handling concepts

thanks for that
kranthi.kumarmca22
 
Posts: 14
Joined: Thu Jan 07, 2010 9:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Passing values to COBOL which uses OCCURS clause

Postby dick scherrer » Tue Feb 02, 2010 12:43 am

Hello,

In batch processing these are the two methods used
1.Passing through jcl
2.using file handling concepts
Sorry, but no. . .

Input data is typically not embedded in the jcl. It is in a file.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post