z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


v_open

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-v_open--vntoken--accessintent--denyvalue--opentoken---------><

Function

v_open opens an existing file and optionally establishes share reservations on the file.

Parameters

vntoken
A variable name that contains the vnode token for the directory of the file that is to be opened.
accessintent
A number used to specify the intended access mode, read, write, or both. You can specify one of the predefined variables to set the value:
  • o_rdonly
  • o_wronly
  • o_rdwr
denyvalue
A number used to specify access modes to be denied, read, write, or both. You can specify one of the predefined variables to set the value:
  • o_rdonly
  • o_wronly
  • o_rdwr
opentoken
A variable name that will contain the open token on successful completion of the service. The open token can be used on v_close, v_read, _setattro, and v_write services to perform the operation under context of this open.

Example

Open a file represented by vntok for read and deny opens for write:
""v_open vntok" o_rdonly o_wronly "otok"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014