&VARTABLE ADD

Allows an NCL procedure to add a vartable entry to an existing vartable.

&VARTABLE ADD ID=tablename KEY=fieldname
            [ SCOPE={ PROCESS | REGION | SYSTEM | AOM} ] 
            [ ADJUST=n | COUNTER=n ] 
            [ FIELDS=fieldlist { VARS=(var1, var2, ...  varn) |
                                 VARS=prefix* [ RANGE=( start, end ) ] |
                                 ARGS [ RANGE=( start, end ) ] | MDO=mdoname } ]

Operands:

Examples: &VARTABLE

&K = KEY001 
&D = DATA001 
&VARTABLE ADD ID=MYTABLE KEY=K FIELDS=DATA1 VARS=D

This example will add an entry to the private (SCOPE=PROCESS) vartable called MYTABLE. The entry will have a key value of KEY001, and a data1 content of DATA001.

Return Codes:

System variable &ZFDBK is set after an &VARTABLE ADD statement to indicate the result of the operation:

&ZFDBK values 28, 32, 100, and 101 to 130 are possible only with AOM tables. &ZFDBK value 1 cannot occur with AOM.

Syntax errors in a &VARTABLE ADD statement will terminate the NCL procedure. You must always specify SCOPE=REGION or SCOPE=SYSTEM to refer to a table of that scope.


Copyright © 2009 CA. All rights reserved.