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

Does jcl support automatic restart?

773


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

626


What are some jcl statements that are not allowed in procedures?

740


when does a dataset go uncataloged?

845


What is multithreading in jcl?

952






which utility is used a dummy utility?

817


Is it possible to left uncode disp?

727


Which dd parameters are required?

713


What happens if both JOBLIB & STEPLIB is specified ?

630


List the various advantages of using jcl language?

863


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1640


Is there any command to check wether the ps file is in sorted order?

2443


What is Cataloged Procedures?

725


List the different jcl statements that are not permitted in the procedures?

650


what operation is performed by job statement?

669