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

The following will also work ..

//SYSIN DD *
SORT FIELDS=COPY,
OUTFILE FNAMES=(OUTFILE1,OUTFILE2,OUTFILE3,OUTFILE4),SPLIT
/*

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

707


What is the function of the dd dcb keyword?

824


How do you create a temporary dataset?

663


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

1969


Explain about LMFREE�free data set from its association with data ID

1006






in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2062


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2107


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

2109


How can unused space allocation be returned to the system when a dataset is closed?

812


Is their any limit for data sets?

704


Explain the jcl exec statement?

649


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1616


How to pass data to a program that is coded in an exec statement?

827


How to do automated restart when a job abend?

791


How can a stopped job be started again?

709