Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

sdftyp Analyze data type and length of operands

&pagelevel(5)&pagelevel

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

int pos

Position of the operand (as specified in
ADD-OPERAND ..., RESULT-OPERAND-NAME=*POS(...)).

int *typ

Pointer to a value containing the type of the operand (see
"Format of the standardized transfer area").

int *lng

int lst

Pointer to the length of the operand.

Relevant only if the operand is an element in a list and
specifies the position of the operand in the list.

Result

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