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 / aarti sharma

Sort utility could be used for this with the OUTFIL option.
In your case you will have to mention 4 outfil op
OUTFIL RECORDS=(POS,LENGTH,COND,CONDVALUE) OUTIL=PS1
PS1 would be the outdataset need to define in DD stmt. In
ur case you need to have 4 outfil stmts mentioning 4
outfile record..
Not sure about the syntax..

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How jcl is used for testing batch programs?

1355


What are steplib and joblib? What for they are used?

1304


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

1325


what operation is performed by job statement?

1179


In sms datasets, what is the function of the dd mgmtclas keyword?

1433


in ways data can be passed to a COBOL program from JCL?

1293


when can a job time-out occur? How to overcome that?

1351


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

1349


Explain the function of job statement in jcl?

1266


What is the purpose of dd * statement in jcl?

1335


Is it possible to left uncode disp? If yes, how?

1230


Explain dd statement in jcl?

1185


What parameter of the job statement is used to limit the cpu time consumed by the job?

1336


Explain how can values be passed from the job stream to an executable program?

1316


In job processing, what happens in conversion stage?

1243