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 |
Describe the various parameters utilized in the creation of a gdg?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can u do this.
How to pass the parameter in parm using linkage section ? (syntax)?
if time parameter is not coded on the job card and job step then what is the default time assigned to the entire job and for each step in the job by the systyem ?
What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?
Explain dfsort utility?
When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?
is there any possibilities for sumbitting more than one job in single jcl? if yes...based on which thing they will execute..(priority,class,time,written order..?)
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above
i have a jcl calling proc which has 10 steps, i want to execute from step5 to step10, where can i code RESTART and COND parameter?
How can we execute only one step in a job
22 Answers MAHINDRA, Mind Tree, Tech Mahindra,