Pregunta de entrevista de Cognizant

How to check the empty dataset in jcl ?

Respuestas de entrevistas

Anónimo

6 may 2016

command 'if empty' should use.

Anónimo

24 jun 2018

We can use print command in sysin dd * to know the file is empty or not. Utility IDCAMS //SYSIN DD * PRINT INFILE(DD NAME) COUNT(1) /* in this case if file is empty RC 04 will come if file having records rc 00 will come