Page 1 of 1

ISREDIT LINE_AFTER quote problems in REXX

PostPosted: Mon Mar 16, 2009 9:14 pm
by Gilles
Hi all,

I'm trying to display a line to the use that looks like this :

// WORK='500,200',

I read in this line into a variable in my rexx program. Let's call it MSG. So MSG contains that exact string. No problems up to that point.
Now I use LINE_AFTER to display it and I get a code 20.

address 'ISREDIT'
"ISREDIT LINE_AFTER 1= NOTELINE '" MSG "'"

I've tried any combination I could think of with the single and double quotes and it nevers does what I want. Any of you have ever succeeded in displaying a line with quotes in them with that command ? I just need a working example.

Thanks,

Re: ISREDIT LINE_AFTER quote problems in REXX

PostPosted: Mon Mar 16, 2009 9:30 pm
by MrSpock
Flip-flopping the quotes worked for me:

'ISREDIT LINE_AFTER 1 = NOTELINE "'msg'"'

Re: ISREDIT LINE_AFTER quote problems in REXX

PostPosted: Mon Mar 16, 2009 10:54 pm
by Gilles
Well it WORKED! Thanks a lot. I'll be sure to remember that little trick.