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 |
In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?
Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA
How can u know the current date using jcl?
i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file
i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?
if we give TIME=0 how many sec that job/step
What is NOTCAT 2
Name the system library from which modules are retrieved at execution
Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?