The sdftyp function analyzes an operand at a given position to ascertain its data type and its length. The position corresponds to the position defined with the SDF-A statement ADD-OPERAND ..., RESULT-OPERAND-NAME=*POS(...).
Format 1:
int sdftyp (char *area, int pos, int *typ, int *lng);
Format 2:
int sdftypls (char *area, int pos, int *typ, int *lng, int lst);
Description of the parameters
char *area | Pointer to the buffer in which the standardized transfer |
int pos | Position of the operand (as specified in |
int *typ | Pointer to a value containing the type of the operand (see |
int *lng int lst | Pointer to the length of the operand. Relevant only if the operand is an element in a list and |
Result
The function returns an integer as its result (see "Description of the C functions").