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

In one of intervie, my interviwer asked, I have a file
which contains 4 records I would like to split the 4
different outputs for each record how to do?

Answer Posted / kiran

You can use OUTFIL's SPLIT parameter to put the first
record into OUTPUT1, the second record into OUTPUT2, the
third record into OUTPUT1, the fourth record into OUTPUT2,
and so on until you run out of records. SPLIT splits the
records one at a time among the data sets specified by
FNAMES. The following statements split the records between
two OUTFIL data sets:
OPTION COPY
OUTFIL FNAMES=(Op1.op2,op3,op4),SPLIT
Similarly, OUTFIL's SPLITBY=n parameter splits the records
n at a time among the data sets specified by FNAMES. The
following statements split the records four at a time
between three OUTFIL data sets:

OPTION COPY
OUTFIL FNAMES=(OUT1,OUT2,OUT3),SPLITBY=4

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to alter the parameters for the existing gdg?

1204


What is the format of comment statement?

1217


how to run batch program without jcl?

11554


what are the types of abends that occur on job failure? And explain the possible causes of these

1624


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

1225


What are s0c1, s0c4, s0c5, s0c7 and socb?

1176


Differentiate between addressing mode and run mode.

1079


How to submit jcl through a cobol program?

1150


which parameter is used to check the syntax of a jcl without executing it?

1363


What is the use of disp parameter?

1141


Explain the function of the steplib dd statement?

1135


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1300


What is condition checking in jcl? Is this possible?

1116


what is a jcl?

1139


What are the utility programs in jcl?

1161