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
Is it possible to left uncode disp? If yes, how?
What is the function of the dd dcb keyword?
How do you create a temporary dataset?
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
Explain about LMFREE�free data set from its association with data ID
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
is there any way to execute more than one proc in the same exec statement at the same time..?
How can unused space allocation be returned to the system when a dataset is closed?
Is their any limit for data sets?
Explain the jcl exec statement?
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?
How to pass data to a program that is coded in an exec statement?
How to do automated restart when a job abend?
How can a stopped job be started again?