HP OpenVMS Systems

ask the wizard
Content starts here

Quoth the DCL, 'Nevermore!'? (Quoting)

» close window

The Question is:

Using DCL, how do I locate a quote in a string?
I've tried the following...
I'm writing a DCL procedure to remove various characters, and I need to remove
Thanks in advance for any help
- Maurice

The Answer is :

  An example follows:
    $ target = "this string "" contains a quote"
    $ prefix = f$element(0,"""",target)
    $ offset = f$locate("""",target)
    $ write sys$output "Prefix: <''prefix'>"
    $ write sys$output "Offset: ''offset'"
  Also see http://www.openvms.digital.com/openvms/books.html,
  and see the DCL information in the OpenVMS User's Guide.

answer written or last revised on ( 31-MAY-2000 )

» close window