(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_sys, prev: SNDJBCW, next: SUSPND)


SUBSYSTEM - Subsystem


Format:
    oldflg = vms_sys.subsystem ([enbflg])
Returns:
oldflg
This is the 'condition value returned' from the system service. The values of 'SS$_WASSET' or 'SS$_WASCLR' are returned as numbers 0 or 1 - other conditions result in a Python exception.
Arguments:
enbflg
Value specifying whether the protected subsystem identifiers are to be saved (=0) or restored (=1).
Examples:
>>> import vms_sys

>>> vms_sys.subsystem (1)
0
>>> vms_sys.subsystem (0)
1
>>> vms_sys.subsystem (None)

>>> vms_sys.subsystem ()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 1 argument; 0 given

>>> vms_sys.subsystem ('X')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: argument 1: enbflg - must be integer or None
>>>

(go to: table of contents, index, list of vms_sys, prev: SNDJBCW, next: SUSPND)

28-SEP-1998 ZE.