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 the significance of addrspc parameter in exec statement?
Differentiate between addressing mode and run mode.
Explain the function of dd name parameter with a 2 part structure; audit.report?
Is acct parameter mandatory?
What happens if both JOBLIB & STEPLIB is specified ?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Suppose I have five jobs to do. But I want to hold one?
what are the types of abends that occur on job failure? And explain the possible causes of these
Why block size is multiple of lrecl in jcl?
Are there any set of rules for the names of the steps used in a job? What are they?
Can I send output of job to my remote device careerride123?
Define concatenating?
How to submit a jcl from cics?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?