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
what is the resolution for sb37 error
What is Cataloged Procedures?
what is SOC4 error?
what is a jcl?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
what is the use of JCL?
What is the motivation behind coding class parameter in job statement?
How can a jobs execution priority be modified?
Explain how can a stopped job be started again?
How can the attributes of one sms dataset be copied to another dataset?
How would you understand error(execution phase)?
what is the compile process of cobol program expalin with code
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What do you understand by jcl?
Explain the function of //cntl statement?