Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

which utility is used to sort a file in jcl?

1173


What are the parameters that are used in creating a gdg?

1149


is there any way to execute more than one proc in the same exec statement at the same time..?

2581


what sort card you will use to copy the data from one dataset to another dataset?

1139


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

1128


a dd statement has 2 types of parameters. Name them?

1088


which parameter is use to declare the name of dataset in dd statement?

1194


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

1235


Explain the purpose of the dd keylen parameter?

1099


what are JCLLIB and STEPLIB in JCL?

1108


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

1319


Explain the job statement in jcl?

1110


how do you code a null statement?

1275


Is it possible to code instream data in a PROC?

1252


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

2407