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 do you restart a step in JCL?
Explain about User Information
In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??
i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?
How is a new GDG coded?
how do you code a null statement?
What are steplib and joblib?
what is d/f b/w sysout & sysprint
i have a string of 80 chars i want to replace 4th char with "a"?
How do you find which GDG is using which dataset?
Explain COND used in JCL?
Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?