I have one GDG.
Everyday One new version is being created.Now I want to
split this created version in different files each having
1000 records.
Here Problem is I don't know How many records will be there
in new version of GDG?
that's why I don't know How many Out files we need to use .
Interesting??????????????
Answer Posted / ashl
Write a Clist that will take the input file read the first 1000 records and create
an output file. After 1000 records are created the next record should be
written to a new file. The Clist can allocate files during execution.
The timing of the file allocation will be handled logically by the program.
Keep a counter, once it reaches 1000, initialize the variable and and create a
new file.
The output file names will vary with each file.
Execute the Clist as a step in your job and once the step completes the
output should be different files with 1000 records.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how you can direct the data to spool using SYSOUT option?
What do you understand by the term notcat 2 – gs?
List the various advantages of using jcl language?
Does jcl support automatic restart?
how would you create a temporary dataset? And where will you use them?
How can values be passed from the job stream to an executable program?
What is jcl in mainframe?
What is the use of symbol // in jcl?
What parameter directs the output of the job log dataset?
Is there any command to check wether the ps file is in sorted order?
what are JCLLIB and STEPLIB in JCL?
what is JCL?
Can we call instream to catalog and catalog to instream?
Is it possible to define dd statements as you want?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?