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
Is condition checking possible in jcl? If yes, how?
What dd statement is used to supply the name of a dataset?
Mention the types of job control statements?
Which dd parameters are required?
What is the function of a dd statement?
Define concatenating?
How to submit a jcl from cics?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
if the submitter of a job wants to inform another user about the job completion, how can it be done?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
Can I send output of job to my remote device careerride123?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What statement can be used to send data to another mvs jes3 node?
Is it possible to code instream data in a PROC?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?