(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_lib, prev: PARSE_SOGW_PROT, next: PUT_OUTPUT)


PUT_COMMON - Put String to Common


Stores a maximum of 252 characters into the common area. This includes the \0 character. The data can be retrieved with vms_lib.get_common().

Format:

    resultant_length = vms_lib.put_common (source_string)
Returns:
resultant_length
The actual number of characters copied to the common area - maximum = 252.
Arguments:
source_string
Source string to be copied to the common area.
Examples:
>>> import vms_lib

>>> data = '1234ABC'
>>> length_put = vms_lib.put_common (data)
>>> print length_put
7

>>> resultant_string, resultant_length = vms_lib.get_common ()
>>> print resultant_string
1234ABC
>>> print len (resultant_string)
7
>>> print resultant_length
7
>>>

(go to: table of contents, index, list of vms_lib, prev: PARSE_SOGW_PROT, next: PUT_OUTPUT)

30-SEP-1998 ZE.