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 to alter the parameters for the existing gdg?
What do you understand by jcl?
Is acct parameter mandatory?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What is the difference between run mode and addressing mode?
What is the purpose of dd * statement in jcl?
how you can direct the data to spool using SYSOUT option?
What is the function of //cntl statement?
Why include statement is used in a jcl?
What is concatenating?
What are some jcl statements that are not allowed in procedures?
How do you create a temporary dataset?
Name the statement which can be used to send data to another mvs jes3 node?
Differentiate between the joblib and the steplib statements?
List in order the hierarchical levels of jcl?