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
which utility is used to run a cobol-db2 program?
When space is allocated for an output dataset, what units can be used?
A dd statement consists of 4 fields. Name them?
what is the use of IEBGENER utility?
Can an individual step be restricted from using all the jobs allowed cpu time?
what are JCLLIB and STEPLIB in JCL?
Is it possible to left uncode disp?
What are the parameter we cannot use in procedure?
What is the syntax of JCL statement?
Can we call instream to catalog and catalog to instream?
is there any way to execute more than one proc in the same exec statement at the same time..?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
which utility is used to sort a file in jcl?
List the different jcl statements that are not permitted in the procedures?
define cond parameter in jcl?