ISREDIT LINE_AFTER quote problems in REXX



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

ISREDIT LINE_AFTER quote problems in REXX

Postby Gilles » Mon Mar 16, 2009 9:14 pm

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,
Gilles
 
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ISREDIT LINE_AFTER quote problems in REXX

Postby MrSpock » Mon Mar 16, 2009 9:30 pm

Flip-flopping the quotes worked for me:

'ISREDIT LINE_AFTER 1 = NOTELINE "'msg'"'
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: ISREDIT LINE_AFTER quote problems in REXX

Postby Gilles » Mon Mar 16, 2009 10:54 pm

Well it WORKED! Thanks a lot. I'll be sure to remember that little trick.
Gilles
 
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post