Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

DELVAR

&pagelevel(4)&pagelevel

The DELVAR macro deletes a variable. DELVAR can be used with simple variables or complex variables, but not with elements of complex variables. I.e. structure or list elements cannot be deleted.

Operation

Operands

DELVAR



MF = E

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

MF = D

,PREFIX = D / prefix

MF = C

,PREFIX = D / prefix

,MACID = ELV / macid

MF = L

,NAMLEN = <integer 1..255>

,NAMADR = <name 1..8>

,SCOPE = *VISIBLE / *TASKONLY

,CALLER = USER / SYSTEM

Operands

MF = E
Execute format of the macro call; generates an SVC.

PARAM
Designates the address of the operand list that is evaluated for the macro call (address of macro call with MF = L)

= <name 1..8>
Designates the symbolic address of the operand list.          

= (<integer 1..15>)
Designates the register that contains the address of the operand list.

MF = D
DSECT format of the macro call; generates a DSECT for the operand list. The names generated begin with the letter D; they can be modified with PREFIX.

PREFIX = D / prefix
Defines the first character of the generated names.
Default: the generated names begin with the letter D.

MF = C
C format of the macro call; generates an operand list whose symbolic names begin with the string DELV. They can be changed with PREFIX and MACID.

PREFIX = D / prefix
Defines the first character of the generated names.
Default: the generated names begin with the letter D.

MACID = ELV / macid
A string of up to three characters that replaces characters 2 to 4 of the generated names. Default: ELV

MF = L
LIST format of the macro call; generates the operand list for the macro call with MF = E (Execute format); the macro call must be addressable by means of a symbolic address.

NAMLEN = <integer 1..255>
Designates the length of the variable name.

NAMADR = <name 1..8>
Symbolic address of a field containing the variable name.

SCOPE
Defines the scope of the variable.

= *VISIBLE
The variable is created as a procedure-local variable.

= *TASKONLY
The variable is created as a task-global variable.

Return codes (hexadecimal)

Subcode2

Subcode1

Maincode

Meaning

00000000Macro call was successful; no error
01000000Variable not declared
00010001Parameter error
00010002Syntax error in variable name
00400019no delete possible
0040001Adelete failed
0001FFFFUnknown unit or function number
0002FFFFFunction not available
0003FFFFWrong version of operand list