VMS Help  —  CREATE  /NAME_TABLE, Examples
    1.$ CREATE/NAME_TABLE TEST_TAB
      $ SHOW LOGICAL TEST_TAB
      %SHOW-S-NOTRAN, no translation for logical name TEST_TAB
      $ SHOW LOGICAL/TABLE=LNM$PROCESS_DIRECTORY TEST_TAB

      In this example, the CREATE/NAME_TABLE command creates a new
      table called TEST_TAB. By default, the name of the table
      is entered in the process directory. The first SHOW LOGICAL
      command does not find the name TEST_TAB because it does not,
      by default, search the process directory table. You must use
      the /TABLE qualifier to request that the process directory be
      searched.

    2.$ CREATE/NAME_TABLE/ATTRIBUTES=CONFINE EXTRA
      $ DEFINE/TABLE=EXTRA MYDISK DISK4:
      $ DEFINE/TABLE=LNM$PROCESS_DIRECTORY LNM$FILE_DEV -
      _$ EXTRA, LNM$PROCESS, LNM$JOB, LNM$GROUP, LNM$SYSTEM
      $ TYPE MYDISK:[COHEN]EXAMPLE1.LIS

      This example creates a new logical name table called EXTRA
      that is created with the CONFINE attribute. Therefore, the
      EXTRA table and the names it contains will not be copied to
      subprocesses.

      Next, the logical name MYDISK is placed into the table EXTRA.
      To use the name MYDISK in file specifications, you must make
      sure that the table EXTRA is searched when RMS parses file
      specifications. To do this, you can define a process-private
      version of the logical name LNM$FILE_DEV to include the name
      EXTRA as one of its equivalence strings. (The system uses
      LNM$FILE_DEV to determine the tables to search during logical
      name translation for device or file specifications, and will
      use the process-private version of the logical name before
      using the default system version.) After you define LNM$FILE_
      DEV, the system searches the following tables during logical
      name translation: EXTRA, your process table, your job table,
      your group table, and the system table. Now, you can use the
      name MYDISK in a file specification and the equivalence string
      DISK4 will be substituted.
Close Help