option #45

Invalid key checking

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS

System option #45 affects the way the implicit key of reference is determined for indexed READs. If the key argument to the READ statement is not a key within the specified buffer, an “Illegal key was specified” error ($ERR_BADKEY) is generated.

Important

The checking done for system option #45 assumes that when a key field contained within the record buffer passed on the READ (or FIND) statement is used, the key is either nonsegmented or does not exceed the length of the first segment. If system option #45 is set and you change a file to use segmented keys, you must update your application to use a key buffer that is no longer contained within the record.

Option #45 is automatically set if option #35 is set.