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


Please Help Members By Posting Answers For Below Questions

can any one plzzzzzz tell the jcl code for creating ps using idcams

10497


Is it possible to define dd statements as you want?

644


What dd statement is used to supply the name of a dataset?

769


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) ?

1746


What is the significance of addrspc parameter in the exec statement?

616






What are the 4 fields in dd statement?

737


what is use of space parameter in dd statement?

748


Name the parameters which can be used to limit the number of records written to a sysout dataset?

648


In job processing, what happens in conversion stage?

732


What is the function of dd disp parameter?

651


What are the parameter we cannot use in procedure?

632


what is DSN in JCL and what are the parameters to declare the DSN?

713


which utility is used a dummy utility?

784


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

660


what is the use of JCL?

658