1) SORT FIELDS=(20,4,CH,D,10,3,CH,D)
OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7,
24,57,TRAN=LTOU,6X'FF')
This example illustrates how a fixed-length input data set
can be sorted and reformatted for output. The SORTIN LRECL
is 80 bytes.
The reformatted output records are fixed length with a
record size of 103 bytes. SOLRF (the IBM-supplied default)
is in effect, so unless the SORTOUT LRECL is specified or
available, it will automatically be set to the reformatted
record length of 103.
in the above example i have some doubts that
a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does
and this fields related to output record fields or input
record fields
b)outrec used to refprmat the records after sorting that
means
could please reply me as soon as possible
Thanks.
Venkat
Answer / kiran
As per the sort card,
1. Sort statements get executed on input file - System
sorts all the records on 20,4 in decending order and then
10,3 in decending order.
2. Sorted records write to the o/p based on the out rec
formatting.
3. As mentioned in the question, the LRECL mentioned in the
sortout will not efect the output file record length.
Is This Answer Correct ? | 0 Yes | 0 No |
We are aware of eliminating the duplicate records from outyput fiel using sort utility. Can we get the duplicate records in to another file in the Same sort utility?
How to ALTER the name of a GDG ?
Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which of the other steps get executed)? 1) //s3 exec pgm=abc,cond=(0,le) 2) //s3 exec pgm=abc,cond=(0,le,step2) 3) In the jobcord RESTART=step3,cond=(0,le) 4) can i code COND=TRUE in jobcard, if yes what will happen?
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
How does jcl act on code(if you take a cobol program)?
what is the JCL statement consists of?
Where & How Do You Code Identifier In Jcl?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
Differentiate between addressing mode and run mode.
A job has 150 steps i want to execute only 57th step
How to empty the records in jcl
Explain the function of job statement in jcl?