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

Explain the jcl exec statement?

637


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1799


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

680


how to run batch program without jcl?

10038


what JCL Procedures?

689






Explain the function of dd disp parameter?

586


Name the parameters which can be used to limit the number of records written to a sysout dataset?

643


how you will the direct the data to spool using sysout option?

1747


When output dataset space is required, what quantity categories are used?

808


In sms datasets, what is the function of the dd mgmtclas keyword?

849


Explain the job statement in jcl?

633


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

765


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1336


What are the rules employed while naming the steps in a job?

644


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2252