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

is there any way to execute more than one proc in the same exec statement at the same time..?

2111


How does jcl specify the job to the operating system?

753


Name what parameter directs the output of the job log dataset?

563


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

977


Why include statement is used in a jcl?

691






Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

720


what is the difference between JES3 and JES2?

683


what is JCL?

698


Explain the function of dd name parameter with a 2 part structure; audit.report?

899


Explain the function of a dd statement?

659


What is the function of //jcllib statement?

810


how to run batch program without jcl?

10085


What is the purpose of dd dummy statement?

944


Explain the hierarchy levels in jcl?

1120


What is the use of disp parameter?

653