Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?

Answer Posted / saikat

By using a simple selcopy we can determine whether the file
is empty or not. IF file is empty then we can set the
return code of the step in the selcopy code.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which utility is used to run a cobol-db2 program?

775


what is the compile process of cobol program expalin with code

1953


what is the use of IEBGENER utility?

632


What are the 2 types of parameters in dd statement?

619


How to execute 2nd and 4th steps among 5 steps in jcl proc?

723






whats the diff bw the evaluate also and and?

1828


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1319


Explain dfsort utility?

641


which parameter is used to check the syntax of a jcl without executing it?

772


what is the purpose of coding class parameter in job statement?

697


Name the parameters which can be used to limit the number of records written to a sysout dataset?

627


what sort card you will use to copy the data from one dataset to another dataset?

696


Where can program checkpoints be stored for use in a restart?

819


When space is allocated for an output dataset, what units can be used?

719


Are there any set of rules for the names of the steps used in a job?

605