On Wed, 26 Feb 2020 20:01:43 +0800, David Crayford <[email protected]> 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 ') ' .
--
Dale R. Smith
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN