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


Please Help Members By Posting Answers For Below Questions

What dd statement is used to supply the name of a dataset?

793


What is the syntax of JCL statement?

711


In job processing, what happens in execution stage?

714


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

865


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

595






Can I send output of job to my remote device careerride123?

684


Is acct parameter mandatory?

773


What statement can be used to send data to another mvs jes3 node?

851


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

682


Explain how can the attributes of one sms dataset be copied to another dataset?

717


which utility is used to sort a file in jcl?

764


how you can direct the data to spool using SYSOUT option?

939


Explain the purpose of dd dummy statement?

693


What is the purpose of the dd keylen parameter?

732


what is the compile process of cobol program expalin with code

2015