On Mar 16, 8:36am, David Woodroffe wrote:
> Can someone advise me on how to use HP functions such as LEN, RTRIM and EDIT
> when the input string contains a mix of single and double quotes. Input
> strings are being read from a file.
psuedo code:
while not eof do
input _var
# _var contain both quote characters (' and ")
calc len(_var)
echo LEN of _var = ![len(_var)]
setvar foo rtrim(_var)
setvar quote '"'
setvar quote2 '""'
run pgm;info="!_var" # doesn't work!!!!!!!!!
run pgm;info="![repl(_var,quote,quote2)]"
endwhile
Jeff Vance, CSY
--