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 / mchava
using IDCAMS utitlity
Print infile(file name) count(1)
it will check whether the file is empty or not
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Differentiate between the joblib and the steplib statements?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
What do you understand by the term job time – out and how can you overcome that?
how can the same proc be re-used and called by many jobs?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What are the utility programs in jcl?
Explain about LMFREE�free data set from its association with data ID
how JCL works?
I need exexution process for JCL programs
What is the function of //jcllib statement?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
List the different jcl statements that are not permitted in the procedures?
Why block size is multiple of lrecl in jcl?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?