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 / shridhar
STEP001 : Selcopy/utility to count no of records in GDG.
Just mention GDG base in input to include all versions.
STEP002 : REXX step. define a stem of 1000. read input
batch of 1000 records or if not 1000 then for actual count.
Alloc a new file dynamically. Write these no of records.
Reduce actual count by no of records written.
Repeat procedure untill no of records <= 0.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is use of restart and how to use it?
What is NOTCAT ?
write a jcl to execute a job by 7:00 am on jan 20,1986?
what is SOC4 error?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
How would you understand error(execution phase)?
Can I send output of job to my remote device careerride123?
which utility is used to run a cobol-db2 program?
What is Cataloged Procedures?
How does the jcl specify the job to os?
What is job control language?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
What is the purpose of disp parameter?
What is condition checking in jcl? Is this possible?
when does a dataset go uncataloged?