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 / deepak dada, jaipur
the handling would happen
if the file is empty then pass the zero to return code in
cobol program
then go to jcl step and check for the conditiom code( 0,
eq) where the program is getting called and do whatever you
want to do
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Are there any set of rules for the names of the steps used in a job?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
Which dd parameters are required?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
what is use of space parameter in dd statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
what are the various stages of job processing?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Explain the hierarchy levels in jcl?
What is the maximum length of a single line of jcl?
Matching Logic in Jcl not in cobol.Could any one please answer this question
what is DSN in JCL and what are the parameters to declare the DSN?