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?
Answers were Sorted based on User's Feedback
Answer / priya
Read the file. Save the 1st record into output record after
calc its length. Say move in(1:len) to out(1:len), move
in(1:len) to out(len:len2) and so on. Write the out record
into output file.Correct me if am wrong.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / 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 |
How to see the COMP3 value(packd decimal)
what is DD statement is used in JCL?
how are instream data terminated?
How can an in-stream dataset be terminated?
Matching Logic in Jcl not in cobol.Could any one please answer this question
what is inrec fields and outrec fields in sorting
what is the difference between perform varying and perform
How do you skip a particular step in a proc/JOB?
What is DISP= (NEW,PASS,DELETE)?
What are steplib and joblib? What for they are used?
Max generations in GDG??
What is dummy parameter in JCL??