HP OpenVMS Systems

ask the wizard
Content starts here

DCL Programming, Symbols and Logicals?

» close window

The Question is:

 
How do you get the contents of a symbol into a logical on the DCL command line?
 
eg:
$ my_symbol :== "some text"
{magic command goes here}
$ sho log my_logical
   "my_logical" = "some text" (LNM$GROUP_000131)
 
 
 
 


The Answer is :

 
  It is clear you are unfamilar with DCL symbol substition and
  with DCL syntax, and the OpenVMS Wizard would strongly encourage
  a review of the OpenVMS User's Guide or one of the available
  books on DCL Programming.
 
  Your use of :== and a double-quoted string, for instance, may
  not produce the expected results.
 
  At its simplest, the following will achieve your requested
  results:
 
    $ foo == "symbol"
    $ define bar 'foo'
 
  Again, please review the OpenVMS User's Guide and/or the available
  DCL Programming materials -- a review of these documents will save
  you time and will help avoid much confusion.
 

answer written or last revised on ( 22-MAY-2003 )

» close window