Well done, you nailed it!
On 2020-02-26 11:17 PM, Dale R. Smith wrote:
On Wed, 26 Feb 2020 20:01:43 +0800, David Crayford <dcrayf...@gmail.com> wrote:
I've got a REXX parse puzzle to solve and I would like suggestions on
how to solve it.
Syntax:
INDSN(DSNAM(MEMBER))
The code is simple. It uses the parse instruction with a template.
parse var parm . '(' val ')'
*-* parm = 'INDSN(DSNAME(MEMBER))'
>L> "INDSN(DSNAME(MEMBER))"
*-* parse var parm . '(' val ')'
>.> "INDSN"
>>> "DSNAME(MEMBER"
Unfortunately the value is truncated because "parse" has no way to
anchor to the end of the string.
Parse Value parm' ' With . '(' val ') ' .
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN