On Thu, 27 Feb 2020 10:29:08 -0600, Dale R. Smith <dale-sm...@columbus.rr.com> 
wrote:

>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
>

There was not supposed to be a space between Translate and the left paren:

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

(I typed the original on my Tablet and the reply screen on the browser is 
harder to read.)

-- 
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