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


v_setattr

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

Read syntax diagramSkip visual syntax diagram
>>-v_setattr--vntoken--attribute_list--------------------------><

Function

v_setattr invokes the v_setattr callable service to set the attributes associated with the file represented by the vnode token. You can change the mode, owner, access time, modification time, change time, reference time, audit flags, general attribute flags, and file size.

Parameters

vntoken
A variable name that contains the vnode token for the file for which the attributes are to be set.
attribute_list
A list of attributes to be set and their values. The attributes are expressed either as numeric values or as the predefined variables beginning with ST_, followed by arguments for that attribute. For the predefined variables beginning with ST_, see chattr; for the numeric values, see REXX predefined variables.

Usage notes

  • For usage notes, see chattr.
  • The tagging of /dev/null, /dev/zero, /dev/random, and /dev/urandom is ignored.

Example

In the following example, assume that vntok was assigned a value earlier in the exec. This example truncates a file to 0 length and sets the mode to 600:
"v_setattr vntok" st_size 0 st_mode 600

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014