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
Explain the function of the dd dcb keyword?
What do you understand by the term notcat 2 – gs?
What is the purpose of dd?
What is use of restart and how to use it?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
What is concatenating?
I need exexution process for JCL programs
can any one plzzzzzz tell the jcl code for creating ps using idcams
Describe the various parameters utilized in the creation of a gdg?
what is JCL?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
in ways data can be passed to a COBOL program from JCL?
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 can the attributes of one sms dataset be copied to another dataset?
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