Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

Ask the Wizard
» 

HP OpenVMS Systems

OpenVMS information

» What's new on our site
» Upcoming events
» Configuration and buying assistance
» Send us your comments

HP OpenVMS systems

» OpenVMS software
» Supported Servers
» OpenVMS virtualization
» OpenVMS solutions and partners
» OpenVMS success stories
» OpenVMS service and support
» OpenVMS resources and information
» OpenVMS documentation
» Education and training

Evolving business value

» Business Systems Evolution
» AlphaServer systems transition planning
» Alpha RetainTrust program

Related links

» HP Integrity servers
» HP Alpha systems
» HP storage
» HP software
» HP products and services
» HP solutions
» HP support
disaster proof
HP Integrity server animation
Content starts here

Ask the Wizard Questions

DCL: Symbol substitution

The Question is:

DCL.  I want to prevent DCL from intepreting the single
quote character.  Like this

$ A = "'" + "XYZ" + "'"
$ Show symbol A
  returns 'XYZ'
$ write sys$output 'A'
  winds up prompting for an Expression:...

Creating a temporary file is not a good option...


The Answer is:

      I'm not certain of what you're trying to achieve here. If you intend
    to have your output command write out the symbol XYZ, use the "&"
    symbol substitution operator:

    $ xyz="hello"
    $ a="XYZ"		! Warning - CASE SENSITIVE!
    $ write sys$output &a
    hello

    As your code is written, symbol A is being substituted, leading to
    'XYZ' which is also being substituted (as a blank) hence the prompt for
    an expression to output.

    $ a="'"+"XYZ"+"'"
    $ xyz="hello"
    $ hello="is this a surprise?"
    $ write sys$output 'a'
    is this a surprise?

    If this isn't what you want to do, please explain what you're expecting
    your WRITE command to output.



 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from the Adobe Web site.
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.