ICL 1900 Series George 3 Operating System Commands

MACDEF (MD)

Function

Inputs a macro definition to the filestore.

Format

MACDEF file name,terminator

The file name should consist of a local name without internal spaces and should not coincide with the full or abbreviated form of a built in command. The terminator parameter is optional. If it is omitted, the terminating characters are assumed to be ENDMAC or ENDM and the line is not stored; that is, the assumed terminator is TENDM.

Forbidden contexts

NO USER, CORE IMAGE

Execution

The macro definition is stored as a file consisting of a series of commands, some parts of which are to be replaced at the time the macro command is used. These parts are written as parameter identifiers. Where a parameter identifier such as %A occurs more than once, it will be replaced by the same value in each instance. The name of the macro definition file is used as the macro command.

If no terminator is found, GEORGE takes the same action as for INPUT.

Example

MACDEF MACROFILE,T####
MACDEF MF

Note

Macro definition files are identical in form to job description files and may be editted by the standard GEORGE editor, provided that they are in command format.

Error Messages

FILE NAME PARAMETER MISSING
TERMINATOR MISSING (the terminator, not the terminator parameter)
z IS NOT A VALID TERMINATOR