i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??
Answer Posted / lachchu
Can you please write C code for the same ?
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain how can a jobs execution priority be modified?
A dd statement consists of 4 fields. Name them?
In sms datasets, what is the function of the dd mgmtclas keyword?
i want to store 20 digits . how will u do it in cobol ?
What is one line to pass PARM from JCL to COBOL?
What is notcat 2 - gs?
Explain the purpose of dd dummy statement?
What is condition checking in jcl? Is this possible?
Is acct parameter mandatory?
What is the function of //cntl statement?
Can an individual step be restricted from using all the jobs allowed cpu time?
what is the JCL statement consists of?
What happens if both JOBLIB & STEPLIB is specified ?
Name the statement which can be used to send data to another mvs jes3 node?
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