XPUTARG Name Reference #2

Language enhancement, compiler edit 828: Expand XPUTARG @argname mechanism (see 1607.0) to work for SBXs. This is similar to the XPUTARG @argname enhancement for functions (edit 825, 6.5.1607). Except that while that enhancement used the function or procedure definition to associate argument names with their ordinal numbers, this one uses the combination of previously seen XGETARGS, XGETARG and XGETARGSBX statements.

To avoid the potential for misunderstandings or ambiguity, the use of the XPUTARG @argname syntax will only be supported if there is a perfect one-to-one relationship between argument names and ordinal numbers, based on the XGETARG* statements seen previously at compile time. In other words, if one argument variable is retrieved from different argument numbers in separate XGETARG* statements, or one argument number is retrieved into multiple variables, the XPUTARG @argname syntax will generate an "undefined or ambiguous argument" error.