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

What does a disposition of (MOD,DELETE,DELETE) mean ?

1136


What is multithreading in jcl?

1477


How to submit jcl through a cobol program?

1155


What is job control language?

1098


what is use of dcb parameter in dd statement?

1307


What is one line to pass PARM from JCL to COBOL?

4960


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

2437


Explain the hierarchy levels in jcl?

1686


How does the jcl specify the job to os?

1160


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

1130


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

1225


what is the difference between JES3 and JES2?

1138


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

1116


What are the 2 types of parameters in dd statement?

1160


Explain the jcl exec statement?

1153