This ain't good:
   pick 2.2 >>= /0/
the >>= means you don't use numerical comparison, but strings are
compared.  Should be
   pick 2.2 >>= /00/
As mentions in other appends, use VERIFY /0123456789/ before teh PICK to
avoid non numeric values, after whick you can simply use >>= /00/ or >= /0/



Kris Buelens,
     --- freelance z/VM consultant, Belgium ---
-----------------------------------------------------------------------


2013/10/30 Paul Gilmartin <[email protected]>

> On 2013-10-30 14:35, Gentry, Steve wrote:
> > Yes. Here's the method I ended up using. Provide by a member on another
> list.
> >
> > ...
> > '|pick 2.2 >= /0/ & 2.2 <=/24/',
> > ...
> >
> I'll give that one only half a point:
>
>  pipe literal  24:00 | pick 2.2 >= /0/ & 2.2 <= /24/ | console
> consl pipe literal  24:00 | pick 2.2 >= /0/ & 2.2 <= /24/ | console
>  24:00
>
> Good.
>
>  pipe literal  25:00 | pick 2.2 >= /0/ & 2.2 <= /24/ | console
> consl pipe literal  25:00 | pick 2.2 >= /0/ & 2.2 <= /24/ | console
>
> (Nothing.)  Good.
>
>
>  pipe literal  xy:00 | pick 2.2 >= /0/ & 2.2 <= /24/ | console
> consl pipe literal  xy:00 | pick 2.2 >= /0/ & 2.2 <= /24/ | console
> PIPPIC1038E Not a decimal number: xy.
> PIPMSG003I ... Issued from stage 2 of pipeline 1.
> PIPMSG001I ... Running "pick 2.2 >= /0/ & 2.2 <= /24/".
>        *-*     'callpipe' rest
>        +++ RC(1038) +++
>
> Not so good.  And:
>
>  pipe literal  xy:00 | pick 2.2 >>= /0/ & 2.2 <<= /24/ | console
> (Again, nothing.)  Good.  But:
>
>  pipe literal  1y:00 | pick 2.2 >>= /0/ & 2.2 <<= /24/ | console
> consl pipe literal  1y:00 | pick 2.2 >>= /0/ & 2.2 <<= /24/ | console
>  1y:00
>
> Not so good.
>
> -- gil
>

Reply via email to