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
which utility is used to sort a file in jcl?
What are the parameters that are used in creating a gdg?
is there any way to execute more than one proc in the same exec statement at the same time..?
what sort card you will use to copy the data from one dataset to another dataset?
Explain how can values be passed from the job stream to an executable program?
a dd statement has 2 types of parameters. Name them?
which parameter is use to declare the name of dataset in dd statement?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Explain the purpose of the dd keylen parameter?
what are JCLLIB and STEPLIB in JCL?
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
Explain the job statement in jcl?
how do you code a null statement?
Is it possible to code instream data in a PROC?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE