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


v_rmdir

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

Read syntax diagramSkip visual syntax diagram
>>-v_rmdir--vntoken--dirname-----------------------------------><

Function

v_rmdir invokes the v_rmdir callable service to remove an empty directory.

Parameters

vntoken
A variable name that contains the vnode token for the directory from which dirname is to be removed.
dirname
The name of the empty directory to be removed.

Usage notes

  1. The directory specified by dirname must be empty.
  2. If the directory is successfully removed, the change and modification times for the parent directory are updated.
  3. If any process has the directory open when it is removed, the directory itself is not removed until the last process closes the directory. New files cannot be created under a directory that is removed, even if the directory is still open.

Example

In the following example, assume that dirtok and dirname were assigned values earlier in the exec:
"v_rmdir dirtok (dirname)"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014