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
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Mention the types of job control statements?
Explain the hierarchy levels in jcl?
how JCL works?
Differentiate between the joblib and the steplib statements?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How do you create a temporary dataset?
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?
What does a disposition of (MOD,DELETE,DELETE) mean ?
How does the jcl specify the job to os?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
what is the difference between JES3 and JES2?
What do you know about jcl?
Explain about LMQUERY�give a dialog information about a data set
Explain how can return codes be tested before execution of a job step?