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
How can the attributes of one sms dataset be copied to another dataset?
Explain dd statement in jcl?
which parameter is used to check the syntax of a jcl without executing it?
what is use of dsn parameter in dd statement?
how to run batch program without jcl?
How to do automated restart when a job abend?
Is their any limit for data sets?
How can a stopped job be started again?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
what is DD statement is used in JCL?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
What is the significance of addrspc parameter in the exec statement?
Brief description of inline procedure of jcl.
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
Explain the purpose of dd dummy statement?