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



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,..

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

Post New Answer

More JCL Interview Questions

how to do automated restart when a job abends?

0 Answers   IBM,


which utility is used to sort a file in jcl?

0 Answers   IBM,


How can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


Can a temporary dataset be converted to permanent dataset and vice-versa in the middle of a job ?

4 Answers   IBM,


How to check empty file in jcl?

4 Answers   Infosys,






We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other file is empty?

9 Answers   CSC, IBM,


whats the difference between empty and noempty of GDG?

4 Answers   Patni,


If Region=0k means What Happen?

2 Answers   IBM,


what is symbolic parameters in jcl, what is a temparary data set ? where do u use ?

2 Answers   Verizon,


why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two

1 Answers   IBM, Perot Systems,


What is a MODEL Paramater in GDG ?

2 Answers   Xansa,


Suppose we have 5 steps in a job.No step should be executed After submitting every step in a job

2 Answers   AVB, IBM,


Categories