Starting with release 8.7.0, the files specified by the DATA-FILE=, SORT-FILE= and TEXT-FILE= options when opening a link can be validated via the CHECK option. If a specified file's parameters do not match the specifications of the link, an ERR=17 results.
EXAMPLES
OPEN(1,OPT="DLINK|DATA-FILE=UTCUST|SORT-FILE=UTCUSTsk|CHECK") "UTCUST"
opens the UTCUST link with UTCUST for the data file and UTCUSTsk for the sort file on channel 1.
OPEN(1,OPT="DLINK|DATA-FILE=UTCUSTsk|SORT-FILE=UTCUST|CHECK") "UTCUST"
results in an ERR=17.