MPE/iX System Utilities Reference Manual (32650-90908)

Chapter 22
SOMPATCH
Operation
187
sp>modify iobuf+10 2154#### FFFFFFFF
Return
{only check upper 16 bits}
Also refer to the "Operation" section for an example of this command.
Error Messages
Symbol symbolname not found.
CAUSE PATCHJCW is set to the FATAL condition.
ACTION Change the PATCHJCW setting.
Old value is not as specified.
CAUSE The old value is displayed, and PATCHJCW is set to the FATAL condition.
ACTION Specify the old value.
Illegal syntax--use help.
CAUSE PATCHJCW is set to the FATAL condition.
ACTION Use the help facility, and supply the legal syntax.
OFFSET
This command searches for a set of numbers in a range around a specified symbol.
Syntax
OFFSET symbolname number0 [number1 number 2 ... numbern]
Parameters
symbolname Symbolname is an entry from the library symbol table or current SOM dictionary.
numbern Number0..numbern is a sequence of numbers that the user is looking for. The maximum is 10
numbers.
This command is used mainly in relocating a patch. When an NL is relinked, all those patches that were not
bound to their own entry-level procedure (refer to the SYMBOL command) move around. The OFFSET command
can be used to find their new location.
OPEN
This command causes a patch to open a new file for patching or query. It specifies the input file to be patched.
If a file is already open and patches have been made to it, the SOMPATCH utility reminds the user that a SAVE
command is necessary to save changes before opening the new file.
If the file you specified cannot be opened for read/write, an error message is generated, and the JCWs are set
to their respective FATAL conditions.
Syntax
OP[EN] filename
Parameters
filename The name of the file to be opened.