The PURGESYS Function
TheFINDSYS Function
When you save a named segment that is later loaded by theLOADSYS function,
you must be sure that the addresses at which segments are saved are correct and
that they do not overlay required areas of storage in the virtual machine. This is
crucial because theLOADSYS function invokes the PURGESYS function before it
builds the new page and swap tables.CP purges all saved systems that are over
layed in anyway by the saved system it is loading.
Condition Codes: A condition code of0 in the PSW indicates that the named seg
ment was loaded successfully; the Rx register contains the load address.
A condition code of 1 in thePSW indicates the named segment was loaded success
fully within the defined storage of the virtual machine. The Rx register contains
the address at which the named segment was loaded. The Ry register contains the
ending address of the storage released before the named segment was loaded.
Note:CMS only allows named segments to be attached beyond the defined size of
the virtual machine. A condition code of 2 in thePSW indicates the LOADSYS function did not execute successfully. Examine the return code in the Ry register
to determine the cause of the error.
Return Code
44
177
Meaning
Named segment does not existPaging 110 errors
When thePURGESYS function is executed; CP releases the storage, and associ
ated page and swap tables, that were acquired when the correspondingLOADSYS function was executed. If the storage occupied by the named segment was beyond
the defined virtual machine storage size, that storage is no longer addressable by
the virtual machine.
When aPURGESYS function is executed for a segment that was loaded in non
shared mode, the storage area is cleared to binary zeros. IfPURGESYS is invoked
for a named segment that was not previously loaded viaLOADSYS, the request is
ignored.
Condition Codes: A condition code of0 in the PSW indicates successful
completion.
A condition code of 1 in thePSW indicates that the named segment was not found
in the virtual machine.
A condition code of 2 in thePSW and a return code of 44 in the Ry register indi
cate that the named segment either does not exist or was not previously loaded via
theLOADSYS function.
When theFINDSYS function is executed, CP checks that the named segment exists
and that it has not been loaded previously.
Condition Codes: A condition code of0 in the PSW indicates that the named seg
ment is already loaded. The address at which it was loaded is returned in the regis
ter specified as Rx and its highest address is returned in the Ry register.DIAGNOSE Instruction in a Virtual Machine 255
The
When you save a named segment that is later loaded by the
you must be sure that the addresses at which segments are saved are correct and
that they do not overlay required areas of storage in the virtual machine. This is
crucial because the
builds the new page and swap tables.
layed in any
Condition Codes: A condition code of
ment was loaded successfully; the Rx register contains the load address.
A condition code of 1 in the
fully within the defined storage of the virtual machine. The Rx register contains
the address at which the named segment was loaded. The Ry register contains the
ending address of the storage released before the named segment was loaded.
Note:
the virtual machine. A condition code of 2 in the
to determine the cause of the error.
Return Code
44
177
Meaning
Named segment does not exist
When the
ated page and swap tables, that were acquired when the corresponding
the defined virtual machine storage size, that storage is no longer addressable by
the virtual machine.
When a
shared mode, the storage area is cleared to binary zeros. If
for a named segment that was not previously loaded via
ignored.
Condition Codes: A condition code of
completion.
A condition code of 1 in the
in the virtual machine.
A condition code of 2 in the
cate that the named segment either does not exist or was not previously loaded via
the
When the
and that it has not been loaded previously.
Condition Codes: A condition code of
ment is already loaded. The address at which it was loaded is returned in the regis
ter specified as Rx and its highest address is returned in the Ry register.