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


Please Help Members By Posting Answers For Below Questions

What is use of restart and how to use it?

774


What is NOTCAT ?

745


write a jcl to execute a job by 7:00 am on jan 20,1986?

703


what is SOC4 error?

740


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?

824






How would you understand error(execution phase)?

635


Can I send output of job to my remote device careerride123?

671


which utility is used to run a cobol-db2 program?

810


What is Cataloged Procedures?

715


How does the jcl specify the job to os?

698


What is job control language?

613


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

651


What is the purpose of disp parameter?

647


What is condition checking in jcl? Is this possible?

628


when does a dataset go uncataloged?

841