Agree with Alan.  Any unspecified argument is "OMITTED".  Note that z/VM
Rexx, OpenObject Rexx and Regina Rexx all specify Arg() as returning the
number of the last EXPLICIT argument.  That doesn't mean your
subroutine/function can't look for more as long as it can handle their
being null.  Or in your example you could have kept going beyond the 4th
argument but what's the point, you know they aren't specified.

--
Mike Harding
z/VM System Support
/sp


CMSTSO Pipelines Discussion List <CMS-PIPELINES@VM.MARIST.EDU> wrote on
05/03/2017 01:25:01 PM:

> From: Alan Altmark/Endicott/IBM@IBMUS
> To: CMS-PIPELINES@VM.MARIST.EDU
> Date: 05/03/2017 01:25 PM
> Subject: Re: Variable field selection
> Sent by: CMSTSO Pipelines Discussion List <CMS-PIPELINES@VM.MARIST.EDU>
>
> > But, I can't provide an "OMITTED" final argument, no matter how
> > many commas or blank lines I supply.
>
> If you mean that REXX doesn't distinguish between a null string and an
> omitted string, that's true.  My programs all use the null string in an
> argument to indicate omission, since that what you get with the ", ,"
> idiom.  So my program can decide it wants the "default" behavior at
> runtime without having to have two different CALLs or function
> invocations.
>
> I like it that way.  :-)
>
> Alan Altmark
>
> Senior Managing z/VM and Linux Consultant
> Lab Services System z Delivery Practice
> IBM Systems & Technology Group
> ibm.com/systems/services/labservices
> office: 607.429.3323
> mobile; 607.321.7556
> alan_altm...@us.ibm.com
> IBM Endicott
>

Reply via email to