SET


NCHAR

 

The SET instruction assigns a variable or list of variables to a value of one (1). The instruction uses the following format:

 

 

[label]

SET

{dest}

 

Where:

label

Optional. A Program Execution Label.

dest

Required. A previously defined Character String Variable, National Character String Variable, a Numeric Variable, a list of string and/or numeric variables, or a VARLIST of string and/or numeric variables processed.

Flags Affected: NONE

Note the following:

  1. Both the Form Pointer and Length Pointer of destination character variables are set to one. The content is also set to "1".

  2. The value of a numeric variable is set to one (1).

  3. Enhanced ARRAY processing is supported for the SET instruction, in that each element would be updated as described above.

 

 

See Also: Example Code, CLEAR, TEST, Character String Instructions

 



PL/B Language Reference SEARCH SETLPTR