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 / 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 |
Post New Answer View All Answers
Explain the function of a dd statement?
Are there any set of rules for the names of the steps used in a job? What are they?
Where & How Do You Code Identifier In Jcl?
what is use of disp parameter in dd statement?
Is condition checking possible in jcl? If yes, how?
what is the purpose of coding class parameter in job statement?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Suppose I have five jobs to do. But I want to hold one?
what operation is performed by job statement?
what are the statements that are not valid to be included in an include statement?
write a jcl to execute a job by 7:00 am on jan 20,1986?
How can the disposition of sysout datasets be set for an entire jobstream?
Is condition checking possible in jcl?
Explain the purpose of the dd keylen parameter?
Explain how can a jobs execution priority be modified?