set command

The set BASIC program modifies the value of a D3 user shell variable.


set {{={"|’}variable.value{"|’}}}
When setting a variable, it is important never to use the @ or @$ prefix as would be required if one were using that variable.

If set is executed with no arguments, then it functions identically to the penv command. This displays a list of the currently set user variables and their values.

If set is executed with a variable name, but with no variable value, then the variable is assigned a null value. To completely remove a variable, use the unset command.

It is possible to create variable values which contain other variable names for later expansion. To do this, enclose the entire variable value within single quotation marks. The quotation marks prevent the variable names from being translated immediately by the set command.


display @$mycv