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 write a jcl prog to copy alternate recs from ps1 to
another ps2,suppose ps1 having 10 recs?

Answer Posted / vaneesh khurana

To do so we require OUTFIL and SPLIT option of DFSORT.

//STEPNAME EXEC PGM=SORT
//SORTIN DD DSN=SORTIN.INPUT.FILE.TO.SPLIT,DISP=SHR
//PS1 DD DSN=PS1.FILE,DISP=SHR
//PS2 DD DSN=PS2.FILE,DISP=SHR
//SYSIN DD *
OUTFIL FNAMES=(PS1,PS2),SPLIT
/*

This will write 1st, 3rd,5th ....record in the PS1 and
2nd,4th,6th ....record in ps2 file.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does jcl support automatic restart?

1211


how you can access an uncataloged dataset in a JCL?

1112


whats the diff bw the evaluate also and and?

2323


What are the difference between jcl and jes?

1583


What is NOTCAT ?

1299


Can we use DISP=SHR in output file in JCL

1400


How do you access an uncatalogued dataset in a jcl?

1203


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

1113


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1229


Explain about LMQUERY�give a dialog information about a data set

1428


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

1055


What are the 4 fields in dd statement?

1233


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

1288


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

1137


what is use of dcb parameter in dd statement?

1286