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


Please Help Members By Posting Answers For Below Questions

how you can direct the data to spool using SYSOUT option?

893


What do you understand by the term notcat 2 – gs?

724


List the various advantages of using jcl language?

820


Does jcl support automatic restart?

724


how would you create a temporary dataset? And where will you use them?

730






How can values be passed from the job stream to an executable program?

851


What is jcl in mainframe?

661


What is the use of symbol // in jcl?

901


What parameter directs the output of the job log dataset?

735


Is there any command to check wether the ps file is in sorted order?

2403


what are JCLLIB and STEPLIB in JCL?

644


what is JCL?

671


Can we call instream to catalog and catalog to instream?

650


Is it possible to define dd statements as you want?

623


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?

8592