Transfers a string of characters into a specified field in the host-connected Presentation Space (PS). This function can be used only in a field-formatted host PS.
This function requires a prerequisite call to the CONNECT PRESENTATION SPACE (1) function.
hllc (func, apistring, len, ret) int *func; char *apistring; int *len; int *ret;
Supply the following parameters to invoke the COPY STRING TO FIELD function:
The COPY STRING TO FIELD function is affected by the STRLEN/STREOT, EAB/NOEAB, and the EOT session options. See session options 1, 2, and 9 of the SET SESSION PARAMETERS (9) function for more information. Keyboard mnemonics cannot be sent with the COPY STRING TO FIELD function. (For information on keyboard mnemonics, see the SEND KEY (3) function.) The first byte of the data to be transferred is always placed at the beginning of the field that contains the specified PS position.
The string to be transferred is specified with the calling data string parameter. The string ends when one of the following conditions occurs:
If the field at the end of the host PS wraps, the COPY STRING TO FIELD function continues at the start of the PS.
The COPY STRING TO FIELD function is affected by the STRLEN/STREOT, EAB/NOEAB, EOT, and the EAD/NOEAD session options.
DBCS characters can be included in the string. SO/SI is added accordingly. When SBCS and DBCS characters are used, the length in EBCDIC can be longer than in ASCII because of addiitional SO/SI . Some data may be truncated. If the last character of the source data string is the first byte of a DBCS character, it is not transferred.
Control characters are transferred to a one-byte character or two-byte character according to the field condition. NULL + control character between SO and SI is handled as a control character.
CONNECT PRESENTATION SPACE (1) function. SEND KEY (3) function and SET SESSION PARAMETERS (9) function.