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

how can you check if a file is empty using jcl?

0 Answers   IBM,


How do you create a temporary dataset?

0 Answers  


Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?

6 Answers  


What is the difference between the JOBLIB and the STEPLIB statements?

3 Answers  


What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?

2 Answers  






Is stepname is a MUST and should be unique also for each JOBSTEP ? or system can supply the stepname for a step which is not given a name by the programmer ?

6 Answers   IBM,


How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.

10 Answers   Lehman Brothers,


What statement can be used to send data to another mvs jes3 node?

0 Answers  


how are instream data terminated?

3 Answers   Tech Mahindra,


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

0 Answers  


which parameter is used to check the syntax of a jcl without executing it?

0 Answers   IBM,


What are the differences between JES2 & JES3 ?

4 Answers  


Categories