SET and RESET Statements

Naming a control option in a SET statement causes the system to assign the value TRUE to that option. Naming a control option in a RESET statement causes the system to assign the value FALSE to that option.

Syntax

<control option>

      ┌◄──────────────────────────────────────────┐
── $ ─┴─┬─────────┬─┬─<error control option>───┬──┴─────────────────────────────────┤
        ├─ SET ───┤ ├─<input control option>───┤
        └─ RESET ─┘ ├─<output control option>──┤
                    └─<control option inquiry>─┘

<error control option>

──┬─ IGNORE ─┬─────────────────────────────────────────────────────────┤
  └─ SYNTAX ─┘

<input control option>

──┬─ ADD ─────────────────┬────────────────────────────────────────────┤
  ├─ CASESENSITIVEPW ─────┤
  ├─ INPUT ──<file title>─┤
  └─ OLDRU ───────────────┘

<output control option>

──┬─ DEBUG ───────────────────┬────────────────────────────────────────┤
  ├─ ERRDUMP ─────────────────┤
  ├─ HARDCOPY ────────────────┤
  ├─ LIST ────────────────────┤
  ├─ LISTI ───────────────────┤
  ├─ PAGE ────────────────────┤
  ├─ SAVE ──<file title>──────┤
  └─ SAVEINPUT ──<file title>─┘

<control option inquiry>

── ? ────────────────────────────────────────────────────────────┤

Explanation

A SET statement assigns a value of TRUE (enabled) to the Boolean options that follow it; a RESET statement assigns a value of FALSE (disabled) to the Boolean options that follow it.

If neither SET nor RESET appears directly following the dollar sign ($), SET is assumed.

Both SET and RESET can appear in the input same record. In this case, one (SET or RESET) affects the options following it until the other (RESET or SET) is encountered.

Examples

  • The following control option assigns the value TRUE to the LISTI option and the LIST option, and assigns the value FALSE to the SYNTAX option:

    $ SET LISTI LIST RESET SYNTAX
  • The following control option assigns the value TRUE to the LISTI option and the LIST option, assigns the value FALSE to the SYNTAX option and the DEBUG option, and assigns the value TRUE to the ADD option:

    $ LISTI LIST RESET SYNTAX DEBUG SET ADD