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

I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,


what is a null indicator in db2?

5 Answers   Fiserv, IBM,


Can we use two or more SYSPUNCH DD statements in a JCL for multiple unload (SYSREC00 & SYSREC01)..?

1 Answers  


List the different components of jcl statement?

0 Answers  


//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES

5 Answers   IBM,


how to solve u4038 abbend?........

3 Answers   Atos Origin, TCS,


How do you handle empty files in a JCL ?

3 Answers   Wipro, Xansa,


Can a job have only steplib and no joblib ?

6 Answers  


can we bowse or edit the GDG dataset if it is a tape entry?

4 Answers  


what will be the error code if duplicate key of VSAM file is found?

1 Answers   HSBC, Kings,


Suppose there r 10 steps . Out fo which i want to execute 10th, 9th and 8th in reverse order without using IEBEDIT. How can i do that..???

5 Answers   IBM, UST,


What will happen if two JOB statements are mentioned in an JCL continuously.

2 Answers   IBM,


Categories