Bit String Parameters

To define a bit string parameter, specify BIT as the data_type in the template file:
     BIT    data_length     data_direction
A bit string parameter can be the same length for all calls or it can be a different length for each call (see Specifying Parameter Lengths for a discussion on how to do this).

Specify the data length of a bit string parameter in bits.

A bit string must start in the first (high order) bit of the first byte of the passed parameter.

The data direction for a bit string parameter can be INPUT, OUTPUT, or INOUT. INOUT can be used for a bit string parameter in which some of the bits are for input and others are for output. IBM strongly recommends that CSL routines not be designed with bit string parameters that are inputs for some call types and outputs for others or parameters in which the same bit is both an input and an output.

For REXX calls, the parameter is a character string of "0"s and "1"s, which is translated by the REXX CSL interface to or from the bit string, depending on whether it is an input or output type parameter.