The sdfstv function analyzes the operand value introducing a structure to determine its data type and length. The sdfstv function must be preceded by a sdftyp call returning the operand type structure (19) as its result. An operand value does not introduce a structure unless it was defined with STRUCTURE=*YES(FORM=*NORMAL) in the SDF-A statement ADD-VALUE.
Since the function has an optional parameter, there are 2 different formats.
Format 1:
int sdfstv (char *area, int pos, int *typ, int *lng);
Format 2:
int sdfstvls (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 area was |
int pos int *typ | Position of the value of the operand introducing the structure. Pointer to a value containing the type of the operand value (for |
int *lng int lst | Pointer to the length of the operand value. Relevant only if the operand value is an element in a list and |
Result
The function returns an integer as its result (see "Description of the C functions").