Write a JCL by using the below requirement:
File1 =1, File2 =11 and output needs to come as File3 =111?
Answer Posted / nishant singhal
we can do it by cobol pgm also.
File1=1,file2=11 and
fd file3
01 file3-rec
05 ws1 pic 9(1) value zero.
05 ws2 pic 9(2) value zero.
open file1 in inpute mode and write the record in file3
which is opened in output mode. Now open file2 in input and
file3 in IO mode and update the record.
I think it should work.
Muttiah, would you suggest any better approach by using JCL
thn please share with us. Thanks
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is concatenating?
What do you understand by the terms: joblib and steplib?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
what is the use of JCL?
what is use of dsn parameter in dd statement?
Explain how can an in-stream dataset be terminated?
i want to store 20 digits . how will u do it in cobol ?
Explain in DD statement what is the use of DCB parameter?
What are the 2 types of parameters in dd statement?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
Must tape dataset definitions include vol=ser specifications?
How is a type of file defined in the jcl that executes the cobol program?
what is “Cond= even” and “Cond=only”?
What is NOTCAT ?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?