1 LET
!
LET is a shorthand alternate to the DCL commands DEFINE or ASSIGN, in a simil-
iar fashion to the way the SD command is a shorthand version of SET DEFAULT.
LET's syntax is very much like SD's.  LET has the following formats:

        $  LET logical_name = sd_operands
        $  LET logical_name = sd_operands + file_name

The blanks around the equal sign and plus sign are optional.  LET will define
the logical name to point to the directory (and file, if specified) computed
from the operands.  See HELP SD for a description of the SD operands.  The
directory must exist and you must have permission to use it.

If a file name is used, the logical name will point to the file; the file must
exist.  If no file type is given, the logical name will not include a file
type, but some file with this name must exist.

LET will display the actual value it assigns to the logical name.  This dis-
play can be supressed by using a double equal sign instead of a single one.
!
2 Examples
!
Assume the current default directory is USER:[MYDIR.A.B]

Command:                        Resultant logical name:

  $ LET L1 = ^^                   L1 is USER:[MYDIR]

  $ LET L2 = ^ + ZZZ.DAT          L2 is USER:[MYDIR.A]ZZZ.DAT

  $ LET L3 = ^ >C + YYY           L3 is USER:[MYDIR.C]YYY

  $ LET L4 = +XXX.FOR             L4 is USER:[MYDIR.A.B]XXX.FOR

  $ LET L5 == *                   L5 is USER:[MYDIR.A.B]

Note that both '*' and ' ' operands refer to the current default directory.

In the last example, LET would not display the resultant value of logical
name L5, because a double equal sign was used.
!
