AMODE and RMODE validation

The binder validates the AMODE and RMODE combination according to the following table:

  RMODE=24 RMODE=ANY
AMODE=24 valid invalid
AMODE=31 valid valid
AMODE=ANY valid invalid
AMODE=64 valid valid

A combination of AMODE=ANY and RMODE=ANY is changed to AMODE=31 and RMODE=ANY unless AMODE=ANY has been directly specified on a control statement or batch parameter. In this case, an error message is issued.

If AMODE is equal to 24 or ANY and RMODE=ANY has been directly specified as a PARM field option or on a control statement, an error message is issued and processing continues.