KEEP.SELECT

KEEP.SELECT

Top  Previous  Next

 

The KEEP.SELECT statement indicates that the default select list should be retained on return to the command processor.

 

 

Format

 

KEEP.SELECT

 

 

The default behaviour of QM is that the default select list (list 0) is not cleared on return to the command processor, allowing a program to create a list that will be used by a subsequent command. As a side-effect of this behaviour, a program that creates a select list and only partially processes it before terminating will leave the remainder of the list active, potentially affecting later actions.

 

The CLEAR.SELECT mode of the OPTION command causes QM to clear the default select list on return to the command processor. Any program that intentionally leaves an active list on termination must use the KEEP.SELECT statement to prevent the command processor clearing the list. This statement has no effect if the CLEAR.SELECT option is not active.

 

 

See also:

Select lists