ICL 1900 Series George 3 Operating System Commands

OBEY (OB)

Function

Issues a file description as a macro.

Format

OBEY file description,PARAM(a1,a2.... an)

There are no restrictions on the form of the file description. The a1,a2....an parameters will be used as the parameters of the issued macro.

Forbidden contexts

NO USER

Execution

The command causes the file description, given as the first parameter, to be issued as a macro with the parameters seperated by commas after PARAM as its parameters. The file specified by the file description my be a work file, or under any directory or distinguished by generation number or language.

Examples

OBEY :SYSTEM.FRED(3/PROG),PARAM-
(20,DUMPFILE)
This causes the file :SYSTEM.FRED(3/PROG) to be issued as a macro. In the expansion of the macro, %A will be replaced by 20 and %B by DUMPFILE
OBEY FRED1(2),PARAM(20,DUMPFILE) This causes the file FRED1, with a generation number 2, of the current user to be issued as a macro. In its expansion, %A will be replaced by 20 and %B by DUMPFILE

Error Messages

z IS NOT A CORRECT ENTRANT DESCRIPTION FORMAT
FILE DESCRIPTION MISSING
FILE HAS BEEN MISLAID
ENTRANT DOES NOT EXIST