Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

JCL & VSAM :: RE: how to find if file is empty or not.

$
0
0
Author: Rohit Umarjikar
Posted: Wed May 18, 2016 9:38 pm (GMT 5.5)

Quote:
The above will return an RC '0' if the record count is 1 or less. In case the record count is greater than '1', an RC '12' will be set; which in-turn can be controlled by the RC sub-parameter. The good thing about this is, DFSORT will not try checking the 3rd record, if the criteria of > 1 record is met; i.e. at any point of time a maximum of '2' records will be processed.

Please correct me if I still have it figured wrong icon_redface.gif

Same goes for NOTEQUAL too which calls E35 EXIT and uses STOPAFT .
Quote:
an RC '12' will be set
This is sometimes a risk because you really don't know if that's a syntax error or valid error, so safe to set 4 or 8.
_________________
Regards,
Rohit Umarjikar
"Some things Man was never meant to know. For everything else, there's Google"


Viewing all articles
Browse latest Browse all 9405

Trending Articles