How to test thru JCL if any file(PS or VSAM) is empty or
not. I do not want to use any COBOL prog or Ezytrieve and
want to do using utility.
Answer Posted / naren
IFEMPTY utility is used to check the file is empty or not,
if the return code of this step is 4 then the file is empty.
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
How would you understand error(execution phase)?
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 are the types of abends that occur on job failure? And explain the possible causes of these
Explain the jcl exec statement?
write a jcl to execute a job by 7:00 am on jan 20,1986?
Is it possible to code instream data in a PROC?
How to run cobol program using jcl?
What is the difference between the positional and keyword parameters? Give examples.
What are the utility programs in jcl?
what is DD statement is used in JCL?
What is the function of the dd dcb keyword?
Is it possible to define dd statements as you want?
Explain in DD statement what is the use of DCB parameter?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
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