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



Say I have a file with 12 records. Each record has the name of the month. I have to append data in..

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

Say I have a file with 12 records. Each record has the name of the month. I have to append data in..

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

Post New Answer

More JCL Interview Questions

In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?

1 Answers  


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

3 Answers   VC, Wipro,


How can u know the current date using jcl?

2 Answers   iNautix, Wipro,


i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?

10 Answers   IBM,


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

0 Answers  






How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

0 Answers  


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

6 Answers   ITC Infotech,


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?

4 Answers   DELL,


if we give TIME=0 how many sec that job/step

13 Answers  


What is NOTCAT 2

2 Answers   IBM,


Name the system library from which modules are retrieved at execution

3 Answers  


Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?

6 Answers   IBM,


Categories