Pergunta de entrevista da empresa Cognizant

How to check the empty dataset in jcl ?

Respostas da entrevista

Sigiloso

6 de mai. de 2016

command 'if empty' should use.

Sigiloso

24 de jun. de 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