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 / 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 |
Post New Answer View All Answers
Explain the hierarchy levels in jcl?
What are the utility programs in jcl?
What is the purpose of the dd keylen parameter?
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 I have five jobs to do. But I want to hold one?
what is the compile process of cobol program expalin with code
What are some jcl statements that are not allowed in procedures?
what is DD statement is used in JCL?
when can a job time-out occur? How to overcome that?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
Why block size is multiple of lrecl in jcl?
Are there any set of rules for the names of the steps used in a job?
What do you know about jcl?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?