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 many extents are possible for a sequential file ? For a VSAM file ?

3 Answers  


We have two PS files,want to compare those files and put the duplicate records in one file. Input file 1 contains(1,2,4,9,10) Input file 2 contains (1,4,5,11,12,14,16). Help me with jcl.

6 Answers  


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

0 Answers   IBM,


Explain how can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


What is the purpose of the PARM keyword in the EXEC statement?

3 Answers  






ihave ten flatfile in that iwant to concatinate all the files except file 5,6 into output file by uing jcl? how to do this? give me detail yntax for tis?

4 Answers   IBM,


What is the significance of addrspc parameter in exec statement?

0 Answers  


Describe the DD statement, its meaning, syntax and keywords?

2 Answers  


describe the exec statement,its meaning ,syntax and keywords?

3 Answers  


SORT card to eliminate duplicity.

1 Answers   Syntel,


what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file

3 Answers   Virtusa,


How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?

2 Answers  


Categories