Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

sdfstv Analyze data type and length of value introducing structure

&pagelevel(5)&pagelevel

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
created (see sdfinit).

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
description of types, see "Format of the standardized transfer area").

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
specifies the position of the structure in the list.

Result

The function returns an integer as its result (see "Description of the C functions").