Rename Directory (QHFRNMDR) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Rename Directory (QHFRNMDR) API renames a single directory. You cannot rename the directory if another job has already opened it. (When a job opens a directory with the Open Directory (QHFOPNDR) API, it specifies a lock mode. The lock mode specifies what other jobs are allowed to do to the directory while the first job has it open.)


Authorities and Locks

None.


Required Parameter Group

Path name
INPUT; CHAR(*)

The path name of the directory being renamed. The last element of the path name must be a directory name. You cannot use a one-element path name specifying only the file system.

Path name length
INPUT; BINARY(4)

The length of the path name, in bytes.

New directory name
INPUT; CHAR(*)

The new name for the directory. Specify only the directory name. Do not specify the path name.

New directory name length
INPUT; BINARY(4)

The length of the new directory name, in bytes.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V2R1

[ Back to top | Hierarchical File System APIs | APIs by category ]