Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

TYPE Analyze data type and length of operand

&pagelevel(5)&pagelevel

The TYPE 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(...).

Call


CALL SDF('TYPE',area,error,pos,typ,lng[,lst])


Description of the parameter list

Parameter

Data type
(length)

Input/
output

Meaning

TYPE

char(4)

in

Function name: keyword TYPE

area

char()

in

Buffer in which the standardized transfer area was stored (see INIT)

error

integer

out

Return code

pos

integer

in

Operand position (as defined by ADD-OPERAND ...,
RESULT-OPERAND-NAME=*POS(...))

typ

integer

out

Operand data type
(for a description of the data types, see "Format of the standardized transfer area")

lng

integer

out

Length of the operand

lst

integer

in

Relevant only if the operand is an element in a list: position of the operand in the list