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
Explain how can an in-stream dataset be terminated?
what happens in execution stage in job processing?
Explain the function of //cntl statement?
What are the parameter we cannot use in procedure?
What does a disposition of (MOD,DELETE,DELETE) mean ?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is the use of symbol // in jcl?
Explain the function of job statement in jcl?
Must tape dataset definitions include vol=ser specifications?
which parameter is use to declare the name of dataset in dd statement?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
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 a fb file convert to vb file using sort program?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
When output dataset space is required, what quantity categories are used?