Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISREDIT LINE_BEFORE data has ' and " 1

Status
Not open for further replies.

jgraff

Programmer
Jan 21, 2003
2
US
In my REXX exec I need to insert a line of data into an ISPF Edit Workarea.
The data in questions contains both single quotes and double quotes that may or may not be matched (as in a comment line).

I have


"ISREDIT LINE_BEFORE 1 = DATALINE" myvar

If myvar has double quotes around it's contents all is fine unless the value contains double quotes. If myvar has single quotes around it's contents all is fine unless the value contains single quotes. In this case the value contains both and I have run out of delimiters for the data.

Is there some way to tell ISPF not to interpret the value of the variable?

These lines could be inserted as DATALINEs or NOTELINEs or INFOLINEs or MSGLINEs so inserting the data and using the Change command to modify it won't work.

Thanks!
 
Try this:

Code:
myvar = "yada yada with appropriate double-quoting..."
"ISREDIT LINE_BEFORE 1 = DATALINE (myvar)"
 
Thanks rexxhead!

That worked wonderfully well and really cleaned up my code.

jgraff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top