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 / raghu
This can be done using ICETOOL.
//STEP1 EXEC PGM=ICETOOL
//IN DD DSN=……input file1
//TOOLMSGDD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLIN DD*
COUNT FROM(IN) EMPTY
/*
In the above JCL, Input file1 is empty. If we run this JCL
it will retrun NON-ZERO retrun code.
adv: It will be very helpful when we want to run some steps
after checking a particular file is empty or not.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
in ways data can be passed to a COBOL program from JCL?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
Name a few IBM utility programs, and explain its function.
how can the same proc be re-used and called by many jobs?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
What is the function of //cntl statement?
Explain the function of the dd dcb keyword?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
what operation is performed by job statement?
Explain the purpose of dd * statement in jcl?
what happens in conversion stage in job processing?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How do you access an uncatalogued dataset in a jcl?
How do you create a temporary dataset?