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

Quick Links

» Non-javascript page
» Ask the Wizard

Test Drive OpenVMS

» OpenVMS I64 test drive
» Java test drive

Other information resources available to you include:

» OpenVMS freeware
» ECO kits, software and hardware support, prior version support
» Alpha SRM, ARC, and AlphaBIOS firmware updates
» ENCOMPASS - HP user group
» OpenVMS software downloads, OpenVMS freeware CD-ROM
» OpenVMS firmware locations
» DECconnect passive adaptor charts
» Cables reference guide
» MicroVAX console commands
» OpenVMS student research

Select a topic below to see Questions Frequently Asked by partners

» Using the online documentation library(installing BNU from the asap SDK)
» Global sections(how to create and use.)
» xx$CREATE_BUFOBJ system service(usage)
» Ethernet address(methods of determination)
» Shareable images(cookbook approach to creating one)
» Sharing data/code at absolute addresses(a guide with examples)
» Determining the Alpha microprocessor
» Using GETSYI to get hardware status

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
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

    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.