can anyone explain me about sort in jcl with inrec and
outrec ?
Answer Posted / madhu s reddy
.
.
//SYSIN DD *
INREC FIELDS=(5,10,15,2,23,4)
SORT FIELDS=(11,3,ZD,A)
OUTREC FIELDS=(1,10)
/*
.
.
INREC option is used to select the part(s) of record from
input file for sorting(ie, vertical split of records).
OUTREC option is used to select the part(s) of record from
sort file and is copied into output file.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What is the function of the steplib dd statement?
What is the significance of addrspc parameter in the exec statement?
Is their any set of rules for dd? Explain.
Name the parameters which can be used to limit the number of records written to a sysout dataset?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
what is “Cond= even” and “Cond=only”?
which utility is used to sort a file in jcl?
What is the purpose of dd * statement in jcl?
when can a job time-out occur? How to overcome that?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What dd statement is used to supply the name of a dataset?
which utility is used to run a cobol-db2 program?
A dd statement consists of 4 fields. Name them?
List in order the hierarchical levels of jcl?
How does jcl act on code(if you take a cobol program)?