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 DSN in JCL and what are the parameters to declare the DSN?
What is the syntax of JCL statement?
Must tape dataset definitions include vol=ser specifications?
How can an in-stream dataset be terminated?
What are the rules employed while naming the steps in a job?
What are the parameters that are used in creating a gdg?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
What is the use of symbol // in jcl?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
How can the disposition of sysout datasets be set for an entire jobstream?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Are there any set of rules for the names of the steps used in a job? What are they?
How to pass the parameter in parm using linkage section ? (syntax)?
Is condition checking possible in jcl?