LU 6.2 API Application Programmer's Reference Guide (30294-90008)

200 AppendixE
Transact Parameter Masks
The Parameter Mask
Using the Parameter Mask in TPs
To use the parameter mask in the TP you must do the following:
1. Declare both the 16-bit and 32-bit parameter masks at the beginning
of the program.
2. Assign the appropriate number to the parameter mask in a LET
statement before each LU 6.2 API intrinsic call. The number in the
parameter mask must be the decimal representation of the bit mask
described in “Parameter Mask Templates.
3. Include place holders for the hidden parameters in the intrinsic call.
Commas serve as place holders in Transact.
4. List the parameter mask in the intrinsic call as the last parameter
passed. The parameter mask is passed by value.
Examples
Following are examples of LU 6.2 API intrinsic calls in Transact.
Optional parameters are marked, and they must have their mask bits
set to 0 or 1, depending on whether or not they are passed. All commas
shown are required. Parameters common to several intrinsics appear in
the example declarations for every intrinsic that uses them. These
parameters need to be declared only once in a program.
Example E-1 Example Parameter Mask Declaration
< Declarations of bit masks and status parameter >>
DEFINE(ITEM) MASK16 I(4): << 16-bit parameter mask >>
MASK32 I(9): << 32-bit parameter mask >>
STATUS I(9):
INFO I(4) = STATUS(I):
INFO I(4) = STATUS (3);
LIST MASK16: MASK32: STATUS;
----------------------------------------------------------------------------