Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

PUTVAR

The PUTVAR macro assigns a value to a variable. The variable may be a simple variable or an element of a complex variable.
If the assignment refers to a simple variable which does not yet exist, it is created either if IMPLICIT-DECLARATION=YES and IMPDEC = *STD apply, or if the macro call specifies IMPDEC=*YES.

Operation

Operands

PUTVAR

MF = E

,PARAM = <name 1..8> / (<integer 1..15> )

MF = D

,PREFIX = P / prefix

MF = C

,PREFIX = P / prefix

,MACID = UTV / macid

MF = L

,NAMLEN = <integer 1..255>

,NAMADR = <name 1..8>

,SCOPE = *VISIBLE / *TASKONLY

,IMPDEC = *YES / *NO / *STD

,VALLEN = <integer 0..4096>

,VALADR = <name 1..8>

,VALTYPE = *INTEGER / *BOOLEAN / *STRING

Return codes (hexadecimal)

Subcode2

Subcode1

Maincode

Meaning

00000000Macro call was successful; no errors
00010001Parameter error
00010002Syntax error in variable name
00400004Variable not declared
00400005Variable container not available
00400006Data type and variable value do not match
0001FFFFUnknown unit or function number
0002FFFFFunction not available
0003FFFFWrong version of operand list