On Thu, 27 Feb 2020 19:07:37 +0800, David Crayford <dcrayf...@gmail.com> wrote:

>OK. Let me change the requirements again ;) How about also handling
>single quotes for a fully qualified data set.
>
>Simple to do with a regex. Not so simple using REXX.
>
>Syntax:
>
>      INDSN(DSNAME(MEMBER))
>      INDSN(DSNAME)
>      INDSN('HLQ.DSNAME(MEMBER)')
>      INDSN('HLQ.DSNAME')

Here is your one line REXX solution:

Parse Value Translate (parm,"","'")' ' With . '(' val ') ' .

Hopefully the single and double quotes come thru correctly.

-- 
Dale R. Smith

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to