We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?
Answer Posted / mchava
using IDCAMS utitlity
Print infile(file name) count(1)
it will check whether the file is empty or not
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
What is job control language?
Name the statement which can be used to send data to another mvs jes3 node?
Explain how can the attributes of one sms dataset be copied to another dataset?
How do you submit a job for execution?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
how you will the direct the data to spool using sysout option?
whats the diff bw the evaluate also and and?
Can we use DISP=SHR in output file in JCL
how JCL works?
Explain how can return codes be tested before execution of a job step?
What dd statement is used to supply the name of a dataset?
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
What is the function of //jcllib statement?
List the various advantages of using jcl language?