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 / sivakumar

Use comparex/ISRSUPC utility and compare ur file with an
empty file of the same DCB parameter. Retrun code of 28
means the file is empty. return code of 1 means the file is
not empty.

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can return codes be tested before execution of a job step?

929


What is the function of the dd dcb keyword?

832


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

623


What do you understand by the term notcat 2 – gs?

759


How to pass the parameter in parm using linkage section ? (syntax)?

655






What is the motivation behind coding class parameter in job statement?

693


Is it possible to define dd statements as you want?

646


How jcl work to handle various input output file operations?

660


what is DSN in JCL and what are the parameters to declare the DSN?

726


What is the function of dd disp parameter?

660


What do you understand by the terms: joblib and steplib?

626


What is the use of symbol // in jcl?

931


what is a jcl?

693


State the uses of syspring, sysin, sort fields, sum fields and dummy.

656


Explain the purpose of dd * statement in jcl?

643