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

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

1179


Can I send output of job to my remote device careerride123?

1198


In job processing, what happens in conversion stage?

1243


what is use of space parameter in dd statement?

1333


How is the record format of an output dataset specified?

1204


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

2466


which utility is used to sort a file in jcl?

1280


What is the purpose of dd dummy statement?

1525


what is the purpose of coding notify parameter in job statement?

1202


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1474


How to pass the parameter in parm using linkage section ? (syntax)?

1186


Which dd parameters are required?

1247


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1523


Explain how can the submitting users racf authority be overridden in a job stream?

1192


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

1427