1 SETDEF

 SETDEF is a substitutefor the SET DEFAULT command.  It can check  the
 existence  of directory before making it the new default, and can set
 the DCL prompt to include all or part of the default directory name.

 Format:

 SETDEF [newdefault]

 SETDEF is set up to be used as a DCL "foreign" command.  To  use  it,
 you must first define a symbol to invoke it.  For example:

 $ SETDEF :== $SETDEF

 This sets up the symbol SETDEF to invoke the SETDEF program.
2 Parameters

 newdefault

 Any valid  node,  device,  and/or  directory  specification.   SETDEF
 allows  the  same  types  of  node/device/directory specifications as
 allowed by the SET DEFAULT command.  This parameter should be omitted
 if you use the /USER qualifier.
2 Command_Qualifiers
/CHECK

 /CHECK (default)

 /NOCHECK

 The /CHECK qualifier causes SETDEF to check for the existence of  the
 new  default  directory  before  actually  setting  it.   This is the
 default.   Specify  /NOCHECK  (this  can  be  done  in   the   symbol
 definition,   if   desired)   to  disable  existence  checking.   The
 specification is always checked for syntactic accuracy.
/SET_PROMPT

 /SET_PROMPT=prompt-type

 /NOSET_PROMPT (default)

 The /SET_PROMPT qualifier causes SETDEF  to  change  the  DCL  prompt
 string   to  a  string  based  on  the  resulting  default  directory
 specification.  The  "prompt-type"  may  be  either  SHORT  or  LONG.
 Specifying  SHORT causes SETDEF to use only the lowest directory name
 in the directory path to be used in the  prompt  string.   Specifying
 LONG  causes  SETDEF to use as much of the complete directory path as
 possible in the prompt string.  Note that the longest possible prompt
 string is 32 characters.
/USER

 /USER=username

 The  /USERNAME  qualifier  causes  SETDEF  to  change  your   default
 directory  to be the login directory of the specified user.  Requires
 sufficient privileges to look up the target user's login  information
 from the user authorization file.
/VERSION

 /VERSION

 Causes SETDEF to print out its version number and  copyright  notice.
 No other action is performed.
2 Examples

 $ SETDEF :== $SETDEF/SET_PROMPT !  use /SET_PROMPT by default

 $ SETDEF DISK$USER01:[CLASS101]

 [class101]$ SETDEF/SET=LONG [.STUDENT1]

 [class101.student1]$ SETDEF [] !  keeps same directory

 [...student1]$ SETDEF SYS$SYSDEVICE:[NO-SUCH-DIRECTORY]

 %RMS-F-DNS, directory not found

 -SYSTEM-W-NOSUCHFILE, no such file

 [...student1]$ SETDEF/NOCHECK SYS$SYSDEVICE:[NO-SUCH-DIRECTORY]

 [no-such-directory]$ SETDEF/USER=STUDENT1

 [...student1]$
