HP OpenVMS Systems

ask the wizard
Content starts here

Handling double quotes in DCL?

» close window

The Question is:

 
How can you use F$LOCATE to find a double quote
within a record?
 


The Answer is :

 
 
    Check out $HELP SYMBOL STRING PARAMETER
 
    To use quotation marks in a string, enclose the entire string in
    quotation marks and use a double set of quotation marks within the string.
 
$ create tmp.tmp
aap "noot" mies.
$ open file tmp.tmp
$ read file record
$ write sys$output f$locate ("""", record)
 
$ close file
 
 
 

answer written or last revised on ( 21-SEP-2000 )

» close window