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 |
What does a disposition of (NEW,CATLG,DELETE) mean?
What is the significance of addrspc parameter in exec statement?
Can we create VSAM file by using IEBGENER?
What is the function of dd name parameter with a 2 part structure; audit.report?
Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?
How we can code in a jcl to execute a job in a particular time and date without using any job shudular?. (Eg) i want to execute a particular job at 8 am on 01/01/2010.
What parameters can be used to limit the number of records written to a sysout dataset?
Must tape dataset definitions include vol=ser specifications?
Which dd parameters are required?
i have a ps with two columns eno and ename , i need to copy eno column values in one ps and ename column values in one Ps ? is it possible through iebgener . how ? thx in advance
How to send different PARM values based on the any condition to the program in a JCL? For example :- If the time is before 12:00 pm, I want to send "A" to some program and if it past 12:00 pm , I want to send "B" as a PARM value to that program. How to do it thur JCL only?
in jcl you are having JCLLIB and STEPLIB what happens