Say I have a file with 12 records. Each record has the name
of the month. I have to append data in these 12 records
into 1 record. How is it possible?
Answer Posted / wing
Create an array then redefine it as a field that is long
enough to accommodate them all, then write the long field.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the difference between jcl and jes?
How do you access an uncatalogued dataset in a jcl?
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
What is timing concept in mainframe?
What is the use of disp parameter?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
how you can direct the data to spool using SYSOUT option?
Is automatic restart possible in jcl? If yes, how?
How can an in-stream dataset be terminated?
What are the 4 fields in dd statement?
which utility is used a dummy utility?
how JCL works?
What is the function of //jcllib statement?
Brief description of inline procedure of jcl.
Explain the function of a dd statement?