The sdfval function reads the value of an operand at a certain position from the standardized transfer area. The sdfval call must be preceded by an sdftyp or sdfstv call defining the operand type and the operand length.
Since the function has an optional parameter, there are 2 different formats.
Format 1:
int sdfval (char *area, int pos, char *val, int lng);
Format 2:
int sdfvalls (char *area, int pos, char *val, int lng, int lst);
Description of the parameters
char *area | Pointer to the buffer in which the standardized transfer area |
int pos | Position of the operand in the current operand array. |
char *val | Pointer to a string in which the value is to be placed. |
int lng | Length of the val string, must be greater than or equal to the value returned beforehand for the lng parameter by sdfstv or sdftyp. |
int lst | 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").