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 parameter of the job statement is used to limit the cpu time consumed by the job?
What do you understand by the term job time – out and how can you overcome that?
when does a dataset go uncataloged?
What is the function of //jcllib statement?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
what is a jcl?
what is DD statement is used in JCL?
What is the purpose of dd dummy statement?
what happens in conversion stage in job processing?
Is it possible to left uncode disp?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
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 are the rules employed while naming the steps in a job?
A dd statement consists of 4 fields. Name them?
what are the types of abends that occur on job failure? And explain the possible causes of these