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 anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
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 purpose of coding class parameter in job statement?
How to alter the parameters for the existing gdg?
Explain the job statement in jcl?
Where & How Do You Code Identifier In Jcl?
When output dataset space is required, what quantity categories are used?
Name what parameter directs the output of the job log dataset?
Can I share my data with other jobs? How?
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is a jcl?
Mention the types of job control statements?
can any one plzzzzzz tell the jcl code for creating ps using idcams
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?