C argument values
In C, you can replace the argument values of the CICSPlex® SM API with different data types. You can use any data reference of the correct data type for a data-value, data-ref, or data-area provided the reference is to contiguous storage.
- data-value
- Can be replaced by any C expression that can be converted to the
correct data type for the argument. The table that follows indicates
how to define the correct data type:data-value includes data-ref as a subset.
Data type C definition Halfword binary short int Fullword binary long int Doubleword binary long long int Character array char[n] where n is the number of bytes in the field (the field must be padded with blank spaces) UTF-8 character string char[n] where n is the number of bytes in the field (the field is padded with ASCII blanks) - data-ref
- Can be replaced by any C data reference that has the correct data
type for the argument. The table that follows indicates how to define
the correct data type: If the data type is unspecified, data-ref can refer to a scalar data type, array, or structure. The reference must be to contiguous storage.
Data type C definition Halfword binary short int Fullword binary long int Doubleword binary long long int Character array char[n] where n is the number of bytes in the field (the field must be padded with blank spaces) UTF-8 character string char[n] where n is the number of bytes in the field (the field is padded with ASCII blanks) - data-area
- Can be replaced by any named variable with a data type of halfword binary (short int), fullword binary (long int), or character array (char[n]).
- ptr-ref
- Can be replaced by any C pointer type reference.
- cpsm-token
- Can be replaced by any named variable with a data type of fullword binary (long int).