The OPER function reads the value of an operand at a certain position from the standardized transfer area. The OPER call must be preceded by a TYPE or STRU call defining the operand type and operand length.
Call
CALL SDF('OPER',area,error,pos,val,lng[,lst])
Description of the parameter list
Parameter | Data type | Input/ | Meaning |
OPER | char(4) | in | Function name: keyword OPER |
area | char() | in | Buffer in which the standardized transfer area was stored (see INIT) |
error | integer | out | Return code |
pos | integer | in | Position of the operand |
val | char(lng) | inout | Address of a string in which the value is to be stored |
lng | integer | in | Length of the val string must be greater than or equal to the value returned by TYPE or STRU for the lng parameter |
lst | integer | in | Relevant only if the operand is an element in a list: position of the operand in the list |
the value of the operand introducing the structure, whose length and type were analyzed beforehand by the STRU function.