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


Please Help Members By Posting Answers For Below Questions

What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

770


Explain how can an in-stream dataset be terminated?

950


how can the same proc be re-used and called by many jobs?

1176


What do you understand by the term notcat 2 – gs?

966


Is it possible to define dd statements as you want?

846


What are the parameter we cannot use in procedure?

819


What is the purpose of dd dummy statement?

1160


What is one line to pass PARM from JCL to COBOL?

4662


which parameter is used to check the syntax of a jcl without executing it?

1030


which utility is used to run a cobol-db2 program?

1026


What is the use of disp parameter?

838


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2185


When space is allocated for an output dataset, what units can be used?

978


how you can access an uncataloged dataset in a JCL?

864


How to execute 2nd and 4th steps among 5 steps in jcl proc?

959