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

What is catelog procedure and how many catelog procedure to use in one job?

8679


When space is allocated for an output dataset, what units can be used?

1259


define cond parameter in jcl?

1266


How does jcl act on a cobol code?

1177


What is the function of the dd dcb keyword?

1331


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

1244


How do you create a temporary dataset?

1175


What is the purpose of the dd keylen parameter?

1212


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

1078


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

1217


What do you understand by the terms: joblib and steplib?

1165


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

1273


What is the function of dd name parameter with a 2 part structure; audit.report?

1232


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

1328


Explain the function of dd name parameter with a 2 part structure; audit.report?

1452