i'd like to know if a dataset have 8 lines ofr exemple, not less and not more.
I am using this jcl but it's not correct if the Dataset Have more than 8 lines
//VERIFSMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
PRINT IDS('MY.DATASET') COUNT(8)
/*
//
if my dataset have more or less than 8 lines, the return code must be différent than 0.
Thanks for your help.