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 a file in which I have 20 records. I want my first
record to go into file 1 and second record to go in second
file. I want to copy the alternate records like this in the
two output files. How can I do this using JCL?

Answer Posted / satish

//job statement
//step1 exec pgm=sort
//sortin dd dsn=input file that contain 20 records
//file1 dd dsn=output file
//file2 dd dsn=another output file
//sysout dd sysout=*
//sysin dd *
option copy
outfil fnames=(file1,file2),split
/*

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does jcl act on code(if you take a cobol program)?

1295


How to execute 2nd and 4th steps among 5 steps in jcl proc?

1328


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

2458


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

1272


How can the attributes of one sms dataset be copied to another dataset?

1425


What is the significance of addrspc parameter in the exec statement?

1084


What is the purpose of dd dummy statement?

1464


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

1233


Does jcl support automatic restart?

1239


How can an in-stream dataset be terminated?

1342


Explain how can the submitting users racf authority be overridden in a job stream?

1128


How do you access an uncatalogued dataset in a jcl?

1220


What is the significance of addrspc parameter in exec statement?

1214


How to do automated restart when a job abend?

1394


Can we use DISP=SHR in output file in JCL

1422