MPE/iX System Utilities Reference Manual (32650-90882)
200 Chapter22
SOMPATCH
Operation
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.
PATCHFILE
This command causes the SOMPATCH utility to generate a patch file from the patches in the
main input file. It generates a patch file from the patch information in the ypatch areas in
the SOM(s) in the main input file. If there are no patches, a file containing a few lines of
header is generated.
If there are no ypatch areas, an error message is generated.
Syntax
PA[TCHFILE]
filename
Parameters
filename Filename
is the file to be generated.
QUIT
This command quits the program without changing the input file.
If no modifications were made to the primary input file, the program exits and returns the
user to the colon prompt.
If you have made modifications, you will see following prompt:
Do you really what to throw away your patches?
If the user returns an uppercase or lowercase "y"or"yes," there is an immediate exit to the
MPE colon prompt, with no changes made to the file to be patched; otherwise, the sp>
prompt is displayed, and the SOMPATCH utility continues to operate.
In either case, if there is a list file open, it is closed and saved.
Syntax
qu[it]
Parameters
None