Sets the compiler mode for the current code module. This changes the types, names and locations of the items generated by the BASIC command.
$OPTIONS option
option One of the following keywords, specifying the required compiler option:
EXEC.OBJ BASIC generates an executable (platform-specific) item with the same name as the source item in the dictionary of the file. No deliverable (platform-independent) item is generated unless the DEL.OBJ option is also selected (in a separate $OPTIONS statement), or the (R option is used when running the BASIC command.
If you specify this option, you only need to catalog your program once. When you recompile, the executable item referenced by the command definition item is overwritten.
DEL.OBJ BASIC generates a deliverable (platform-independent) item in the data section containing the source code in addition to the executable item (if any). This item has the same name as the source item, but with a $ (or £) prefix.
This option has no effect unless either the EXEC.OBJ option or the EXEC.BASIC.OBJ environment option is also selected.
If neither of these options are set, BASIC generates just a deliverable object (with a $ or £ prefix) in the data section.
A separate $OPTIONS statement is required for each compiler option that you wish to set.
The $OPTIONS statement also allows you to set the compatibility mode for the current code module. Refer to MultiValue Compatibility for details.
Unless used in an automatically included module, the effect of a $OPTIONS statement is local to the module in which it appears. If used in a subroutine, any previous $OPTIONS settings are restored on on return to the calling module.
BASIC command, EXEC.BASIC.OBJ environment option.