My program is opening an output dataset with DCB in the JCL specified as DCB=(LRECL=80,RECFM=FB,BLKSIZE=0) and DISP=(NEW,PASS,KEEP). Sometime the program logic does not write anything to this file and when this file is empty, the catalog entry of it shows invalid DSORF and thus net step which refer it in SYSUT1 fails to find the file.
However if I specify DSORG=PS then it works fine.