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 / ashl

Write a Clist that will take the input file read the first 1000 records and create
an output file. After 1000 records are created the next record should be
written to a new file. The Clist can allocate files during execution.

The timing of the file allocation will be handled logically by the program.
Keep a counter, once it reaches 1000, initialize the variable and and create a
new file.

The output file names will vary with each file.

Execute the Clist as a step in your job and once the step completes the
output should be different files with 1000 records.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to alter the parameters for the existing gdg?

1136


What do you understand by jcl?

993


Is acct parameter mandatory?

1145


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1389


What is the difference between run mode and addressing mode?

1158


What is the purpose of dd * statement in jcl?

1224


how you can direct the data to spool using SYSOUT option?

1408


What is the function of //cntl statement?

1269


Why include statement is used in a jcl?

1119


What is concatenating?

1030


What are some jcl statements that are not allowed in procedures?

1174


How do you create a temporary dataset?

1114


Name the statement which can be used to send data to another mvs jes3 node?

1110


Differentiate between the joblib and the steplib statements?

1336


List in order the hierarchical levels of jcl?

1063