Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

STRU Analyze data type and length of value introducing structure

&pagelevel(5)&pagelevel

The STRU function analyzes the operand value introducing a structure to determine its data type and length. The STRU call must be preceded by a TYPE call having the operand type structure (X’13’) 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.

Call


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


Description of the parameter list

Parameter

Data type
(length)

Input/
output

Meaning

STRU

char(4)

in

Function name: keyword STRU

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 value introducing the structure

typ

integer

out

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

lng

integer

out

Length of the operand value

lst

integer

in

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