----- Original Message -----
From: "John Mattson" <[email protected]>
Newsgroups: bit.listserv.ibm-main
Sent: Monday, December 27, 2010 2:58 PM
Subject: REXX Interpret and "*"
This little REXX snippet does just fine with most TSO commands including
those with data sets in single quotes.
/* REXX */
arg cmd
ADDRESS "TSO"
pq=pos("'",cmd); do while pq>0
cmd=insert("''",cmd,pq)
pq=pos("'",cmd,pq+3); end
interpret "'"cmd"'"
John,
If you're assuming, and it looks like you are, that cmd is syntactically
correct, then this should work:
/* rexx */
parse arg cmd
address tso '"'cmd'"' /* singlequote, doublequote, singlequote */
Regards,
Tom Conley
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html