(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_lib, prev: PUT_COMMON, next: RADIX_POINT)


PUT_OUTPUT - Put Line to SYS$OUTPUT


The Put Line to SYS$OUTPUT routine writes a record to the current controlling output device, specified by SYS$OUTPUT using the RMS $PUT service.

Format:

    vms_lib.put_output (message_string)
Returns:

None

Arguments:

message_string
Message string written to the current controlling output device. RMS handles all formatting, so the message does not need to include such ASCII formatting instructions as carriage return (CR).
Examples:
>>> import vms_lib

>>> message_string = 'data 1234'
>>> print vms_lib.put_output (message_string)
data 1234               <-- output from LIB$PUT_OUTPUT
None                    <-- return-value from put_output()

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

>>> print vms_lib.put_output (1)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: argument 1: expected read-only buffer, int found

>>> print vms_lib.put_output ("1", "2")
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 1 argument; 2 given
>>>

(go to: table of contents, index, list of vms_lib, prev: PUT_COMMON, next: RADIX_POINT)

30-SEP-1998 ZE.