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

What is the significance of addrspc parameter in exec statement?

1261


Differentiate between addressing mode and run mode.

1134


Explain the function of dd name parameter with a 2 part structure; audit.report?

1519


Is acct parameter mandatory?

1274


What happens if both JOBLIB & STEPLIB is specified ?

1204


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1609


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2517


Suppose I have five jobs to do. But I want to hold one?

1177


what are the types of abends that occur on job failure? And explain the possible causes of these

1685


Why block size is multiple of lrecl in jcl?

1473


Are there any set of rules for the names of the steps used in a job? What are they?

1117


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

1197


Define concatenating?

1149


How to submit a jcl from cics?

1203


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

2294