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 / sachin

above answer is partially correct
use below syntax i have already performed this code
in our application.

//S1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT FILE,DISP=SHR
//DD01 DD DSN =O/P1
//DD02 DD DSN =O/P2
//DD03 DD DSN =O/P3
//DD04 DD DSN =O/P4
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=(DD01,DD02,DD03,DD04),SPLIT

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which utility is used to run a cobol-db2 program?

1401


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

1266


A dd statement consists of 4 fields. Name them?

1420


what is the use of IEBGENER utility?

1170


Can an individual step be restricted from using all the jobs allowed cpu time?

1554


what are JCLLIB and STEPLIB in JCL?

1174


Is it possible to left uncode disp?

1205


What are the parameter we cannot use in procedure?

1130


What is the syntax of JCL statement?

1234


Can we call instream to catalog and catalog to instream?

1144


is there any way to execute more than one proc in the same exec statement at the same time..?

2632


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?

1160


which utility is used to sort a file in jcl?

1220


List the different jcl statements that are not permitted in the procedures?

1085


define cond parameter in jcl?

1272