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 statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Explain the purpose of dd dummy statement?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
what happens in execution stage in job processing?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
For what purpose steplib and joblib are used ?
Explain the jcl exec statement?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
What is the maximum length of a single line of jcl?
Are there any set of rules for the names of the steps used in a job? What are they?
Is it possible to left uncode disp? If yes, how?
Is their any limit for data sets?
What is use of restart and how to use it?
How jcl work to handle various input output file operations?
What are the 4 fields in dd statement?