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
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What is the use of disp parameter?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What is the function of the dd dcb keyword?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How does the jcl specify the job to os?
What are s0c1, s0c4, s0c5, s0c7 and socb?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What is condition checking in jcl? Is this possible?
Explain about LMQUERY�give a dialog information about a data set
What is notcat 2 - gs?
Explain the function of //jcllib statement?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How can the submitting users racf authority be overridden in a job stream?
Explain about ISPF/TSO Commands