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 happens in conversion stage in job processing?
01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
How to pass data to a program that is coded in an exec statement?
How Can we see all generations of a GDG ?
what are the ways of passing data to a cobol program from jcl?
How to get cursor position from system in CICS environment ?
Which COND paramter will u use to execute the step only if the previous step does not execute
What is the function of the dd mgmtclas keyword in sms datasets?
What is 'S0C7' abend?
What is the error in the following JCL statements : I) //step#three exec pgm=hkbc762 ii) //step#3 exec pgm = hkbc762 iii) //step#3 exec pgr = hkbc672
What is DYNAMBR in jcl?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?