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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a jcl to execute a job by 7:00 am on jan 20,1986?

693


What is the function of the dd dcb keyword?

819


What does a disposition of (MOD,DELETE,DELETE) mean ?

662


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

809


Mention the types of job control statements?

680






Can an individual step be restricted from using all the jobs allowed cpu time?

1005


Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:

3526


What is use of restart and how to use it?

758


What is the motivation behind coding class parameter in job statement?

678


What are steplib and joblib?

716


How can the submitting users racf authority be overridden in a job stream?

741


Can I send output of job to my remote device careerride123?

661


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

854


Suppose I have five jobs to do. But I want to hold one?

652


what are JCLLIB and STEPLIB in JCL?

669