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
What is one line to pass PARM from JCL to COBOL?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
List in order the hierarchical levels of jcl?
How jcl is used for testing batch programs?
What is the difference between run mode and addressing mode?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What do you understand by the terms: joblib and steplib?
Why block size is multiple of lrecl in jcl?
Where & How Do You Code Identifier In Jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Explain the hierarchy levels in jcl?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
how JCL works?