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

Chapter 22
SOMPATCH
Operation
179
Operation
The MPE/iX command interpreter includes the implied RUN concept, which allows the user to invoke a
program merely by naming it. For the SOMPATCH utility, type sompatch[.group[.account and then specify a
string of parameters (enclosed in quotes) before typing
Return. The program file is searched according to the
CI variable HPPATH. Currently, the SOMPATCH utility is stored in PUB.SYS.
You may specify the following parameters on the command line:
name of file to be patched
name of script file
name of output list file
The last two files can be specified in one of two ways. To use the C-shell indirection syntax, enter:
sompatch mainfile patchfil> listfile
Or, to specify the files either positionally or by using the key words USE and LIST, respectively, enter:
sompatch "nl.abuild, patchfil, patchlst"
sompatch "nl.abuild,,patchlst"
sompatch "nl.abuild use:patchfil list:patchlst"
If you use a patch file as is shown in the example, SOMPATCH executes all commands in the patch file and
returns you to the MPE prompt.
The following example shows how to patch a file that has been linked with a ypatch file.
Using a text editor, create a patch file that has the following four lines:
log junie moon from august skies, 163, 4700741260
; fixes system crash on listf ,5
modify iobuf+20, 2, 12345678 | 22222222 33333333|FFFFFFFF
exit
In this command:
Junie moon is the integrator,
August skies supplied the patch,
163 is the number of the patch, and
listf ,5 is the system command that needs to be fixed.
; A semicolon signifies that the rest of the line is a comment.
SR 4700741260 is the STARS SR where the breakdown is documented.
iobuf+20 is the location to modify with an offset of 20 bytes.
2 indicates that two 32-bit words need to be changed.
222222222 and FFFFFFFF are the new values.
12345678 and 33333333 are the old values.
The file to be patched is nl.abuild00.official.