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
can any one plzzzzzz tell the jcl code for creating ps using idcams
Is it possible to define dd statements as you want?
What dd statement is used to supply the name of a dataset?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What is the significance of addrspc parameter in the exec statement?
What are the 4 fields in dd statement?
what is use of space parameter in dd statement?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
In job processing, what happens in conversion stage?
What is the function of dd disp parameter?
What are the parameter we cannot use in procedure?
what is DSN in JCL and what are the parameters to declare the DSN?
which utility is used a dummy utility?
What does a disposition of (MOD,DELETE,DELETE) mean ?
what is the use of JCL?