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 | Input/ | 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 ..., |
typ | integer | out | Operand data type |
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 |