can anyone explain me about sort in jcl with inrec and
outrec ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / challa srinivas
In short,INREC i used before SORT and OUTREC is used after SORT.
| Is This Answer Correct ? | 2 Yes | 0 No |
What are the differences between JES2 & JES3 ?
How do you find which GDG is using which dataset?
how many types of sorts are there in jcl?
How jcl work to handle various input output file operations?
what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......
What are the parameter we cannot use in procedure?
If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?
I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ( How do you code instream data in a JCL? )
How do you skip a particular step in a proc/JOB?
what is the function of spool command?
What does IEBGENER do?
How to change default PROCLIB?