(go to: table of contents, index, list of vms_sys, prev: BINUTC, next: CANWAK)
The Python interface routine expects a
vmsobj_iosb object. If the programmer specifies
'None' for the iosb argument, then the interface routine automatically
generates a vmsobj_iosb object, passes the OpenVMS IOSB to SYS$BRKTHRUW and
returns the object after the system service has completed!
BRKTHRUW - Breakthrough and Wait
Format:
15-AUG-1999 ZE.
status, iosb = vms_sys.brkthruw ([efn], msgbuf, [sendto], \
[sndtyp], [iosb], [carcon], [flags], [reqid],\
[timout], [astadr], [astprm])
Returns:
Arguments:
The final status code is in the first word of the IOSB - see the
Examples section below.
Examples:
>>> import vms_sys
>>> import vms_brkdef
>>> timeout = 8
>>> status, iosb = vms_sys.brkthruw \
... (None # [efn]
... ,'XX\n**' # msgbuf
... ,'ZESSIN' # [sendto]
... ,vms_brkdef.BRK_C_USERNAME # [sndtyp]
... ,None # [iosb]
... ,None # [carcon]
... ,None # [flags]
... ,vms_brkdef.BRK_C_GENERAL # [reqid]
... ,timeout # [timout]
... )
XX
**
>>> print vms_sys.getmsg (status) [0]
%SYSTEM-S-NORMAL, normal successful completion
>>>
>>> print iosb.w
(1, 5, 0, 5)
>>> status_final, send_ok, send_tmo, send_nobrdcst = iosb.w
or
>>> status_final = iosb.w0
>>> print vms_sys.getmsg (status_final) [0]
%SYSTEM-S-NORMAL, normal successful completion
>>>
@@ more examples for BRKTHRUW
>>>
(go to: table of contents,
index,
list of vms_sys,
prev: BINUTC,
next: CANWAK)