HELPLIB.HLB  —  SET  ROOT
    Defines the POSIX root for the system.

    Format

      SET ROOT  device-name:directory-spec

1  –  Parameters

 device-name:directory-spec

    Defines the root pathname.

2  –  Description

    In POSIX pathname processing mode, RMS and the C Run-Time Library
    treat the leading slash (/) of a pathname as referring to the
    defined root. By default, the root is SYS$SYSDEVICE:[PSX$ROOT].
    The root definition does not persist across a reboot. The SET
    ROOT commands requires SYSNAM privilege and has the following
    qualifier:

3  –  Qualifier

3.1    /LOG

       /LOG (default)
       /NOLOG

    Controls whether the SET ROOT command displays a success
    indication after the root definition is set.

4  –  Example

  $  SHOW ROOT
  DISK$ALPHASYS:[000000]
  $  SET ROOT DISK$ALPHASYS:[PSX$ROOT]
  %SET-I_SXROOSET, system POSIX root set to DISK$ALPHASYS:[PSX$ROOT]
  $ SHOW ROOT
  DISK$ALPHASYS:[PSX$ROOT]
  $

      The SHOW ROOT command in this example displays the current root
      path. The SET ROOT command changes these defaults, and the next
      SHOW ROOT command displays the new default root.
Close Help