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
Is their any limit for data sets?
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?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How does the jcl specify the job to os?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Where can program checkpoints be stored for use in a restart?
what is use of dcb parameter in dd statement?
Is it possible to left uncode disp? If yes, how?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What is the syntax of JCL statement?
What are the rules employed while naming the steps in a job?
Is there any command to check wether the ps file is in sorted order?
how to run batch program without jcl?
How to do automated restart when a job abend?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?