VMS Help  —  SET  SYMBOL  Examples
    1.$ SET SYMBOL/SCOPE=NOLOCAL

      In this example, all local symbols defined in outer procedure
      levels are now undefined for the current procedure level and
      all inner procedure levels.

    2.$ SET SYMBOL/SCOPE=NOGLOBAL

      In this example, all global symbols are now inaccessible to the
      current procedure level and all inner procedure levels unless
      otherwise changed.

    3.$ NOW :== SHOW TIME
      $ !
      $ NOW
         3-NOV-2001 11:48:58
      $ !
      $ SET SYMBOL /VERB /SCOPE=NOGLOBAL
      $ NOW
      %DCL-W-IVVERB, unrecognized command verb-check validity and spelling
       \NOW\
      $ !
      $ SHOW SYMBOL NOW
        NOW == "SHOW TIME"

      This example demonstrates the use of the /VERB qualifier.

      The symbol NOW is assigned to the SHOW TIME command. The
      next line shows the default behavior, where DCL attempts to
      translate the first string on the command line (NOW). Because
      NOW translates to the SHOW TIME command, this is used instead
      of NOW.

      The SET SYMBOL command on the next line changes the behavior
      so that DCL does not attempt a translation. When NOW is
      subsequently entered, DCL uses the string NOW as the command
      verb and cannot find it in the command table. This results in
      the error message.

      Notice that the scoping of the verb translation has no effect
      on general symbol translations, as demonstrated by the SHOW
      SYMBOL command in the example.
Close Help