Is there a way to check for an empty file in JCL other than
using IEBCOMPR and the command PRINT COUNT(1)?
Answer Posted / nbohr02
By adding an ICETOOL (DFSORT) step you can force a return
code on empty with the COUNT (dd) EMPTY this will set RC to
12 so your Batch scheduler may not like it.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How jcl work to handle various input output file operations?
Give the syntax of job specifying jcl statement.
What are hierarchy levels in jcl?
what is DSN parameter and DISP parameter is used for?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
Explain how can the attributes of one sms dataset be copied to another dataset?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Explain the hierarchy levels in jcl?
what operation is performed by job statement?
Can I share my data with other jobs? How?
Why block size is multiple of lrecl in jcl?
a dd statement has 2 types of parameters. Name them?