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
Explain the function of a dd statement?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Matching Logic in Jcl not in cobol.Could any one please answer this question
For what purpose steplib and joblib are used ?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What parameter of the job statement is used to limit the cpu time consumed by the job?
How can values be passed from the job stream to an executable program?
What dd statement is used to supply the name of a dataset?
Explain how can return codes be tested before execution of a job step?
Explain how can the attributes of one sms dataset be copied to another dataset?
Name a few IBM utility programs, and explain its function.
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 does a disposition of (MOD,DELETE,DELETE) mean ?
How to pass data to a program that is coded in an exec statement?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?