Library /sys$common/syshlp/helplib.hlb  —  ALLOCATE  Examples
    1.$ ALLOCATE  DMB2:
      %DCL-I-ALLOC, _DMB2: allocated

      The ALLOCATE command in this example requests the allocation of
      a specific RK06/RK07 disk drive, that is, unit 2 on controller
      B. The system response indicates that the device was allocated
      successfully.

    2.$ ALLOCATE  MT,MF:   TAPE:
      %DCL-I-ALLOC, _MTB2: allocated
      .
      .
      .
      $ SHOW LOGICAL TAPE:
      TAPE: = _MTB2:    (process)
      $ DEALLOCATE TAPE:
      $ DEASSIGN TAPE:

      The ALLOCATE command in this example requests the allocation
      of a tape device whose name begins with MT or MF and assigns
      it the logical name TAPE. The ALLOCATE command locates an
      available tape device whose name begins with MT, and responds
      with the name of the device allocated. (If no tape device
      beginning with MT had been found, the ALLOCATE command would
      have searched for a device beginning with MF.) Subsequent
      references to the device TAPE in user programs or command
      strings are translated to the device name MTB2.

      When the tape device is no longer needed, the DEALLOCATE
      command deallocates it and the DEASSIGN command deletes the
      logical name. Note that the logical name TAPE was specified
      with a colon on the ALLOCATE command, but that the logical name
      table entry does not have a colon.

    3.$ ALLOCATE/GENERIC RL02 WORK
      %DCL-I-ALLOC, _DLA1: allocated
      %DCL-I-SUPERSEDE, previous value of WORK has been superseded

      The ALLOCATE command in this example requests the allocation
      of any RL02 disk device and assigns the logical name WORK to
      the device. The completion message identifies the allocated
      device and indicates that the assignment of the logical name
      WORK supersedes a previous assignment of that name.

    4.$ ALLOCATE $TAPE1
      %DCL-I-ALLOC, _MUA0: allocated

      The ALLOCATE command in this example allocates the tape device
      MUA0, which is associated with the logical name $TAPE1.

    5.$ ALLOCATE /GENERIC RX50 ACCOUNTS

      The ALLOCATE command in this example allocates the first free
      diskette drive and makes its name equivalent to the process
      logical name ACCOUNTS.
Close Help