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...

how to split a file

Answer Posted / himanshu

Using SORT utility we can split the file. Sort card will be
as:

//SYSIN DD *
SORT FIELDS=COPY
OUTFILE FNAMES=(SORTOUT1,SORTOUT2,SORTOUT3),SPLIT
/*

If there are 10 records in input and these have to be split
across three files SORTOUT1, SORTOUT2 and SORTOUT3
respectively. After running the Job using this sort card,
record1 would be stored in SORTOUT1, record2 in SORTOUT2,
record3 in SORTOUT3, record4 in SORTOUT1 and so on.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is acct parameter mandatory?

1277


which utility is used to sort a file in jcl?

1279


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

1179


List the different jcl statements that are not permitted in the procedures?

1128


Is condition checking possible in jcl? If yes, how?

1343


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2732


I need exexution process for JCL programs

2319


Is there any command to check wether the ps file is in sorted order?

2957


What is condition checking in jcl? Is this possible?

1160


How can a fb file convert to vb file using sort program?

1397


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1262


Explain about ISPF/TSO Commands

2018


What statement can be used to send data to another mvs jes3 node?

1688


Is their any set of rules for dd? Explain.

1270


What are the jcl procedures?

1171