References: <[email protected]> > On 1/28/2016 11:08 PM, Jack Woehr wrote: > > Glenn Knickerbocker wrote: > >> ... | specs a: 1-* . set #1:=a > > This only works on the default z/VM distribution if the entire record is > > numeric, right? > > Correct. Of course, regardless of pipeline version, the arithmetic that > comes next will have the same requirement.
Don't forget we now have the datatype() function in SPEC so that you can validate the data before trying to compute something, like this: | spec a: 10.8 - if datatype(a,'NUM') then set #0:=a else set #0:=0 fi And before Jack asks, this requires latter-day Pipes indeed. Sir Rob the Plumber
