(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_lib, prev: GET_COMMAND, next: GET_DATE_FORMAT)


GET_COMMON - Get String from Common


Retrieves a maximum of 252 characters from the common area. This includes the \0 character. The data is stored with vms_lib.put_common() in the common area.

Format:

    resultant_string = vms_lib.get_common ()
Returns:
resultant_string
A copy of the data that was stored by vms_lib.put_common() in the common area.
Arguments:

vms_lib.get_common() does not take any arguments.

Examples:

>>> import vms_lib

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

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

(go to: table of contents, index, list of vms_lib, prev: GET_COMMAND, next: GET_DATE_FORMAT)

11-DEC-1998 ZE.