Thank you, Mike and Rob. S0C7s are no longer a plague. :-) Probably
an elementary question here, but does the 'a+0' make the result binary?
Is that why this works?
Thanks
DeWayne
On 11/29/21 16:15, Mike Harding wrote:
Or more simply,
pipe literal 16 | strip | specs a: 1.2 . if a>0 then
Or more simply,
pipe literal 16 | strip | specs a: 1.2 . if a>0 then set #1:=sqrt(a+0) endif
print #1 1 | console
4
mike.hard...@kyndryl.com
z/VM systems support for Kyndryl
WWVM and Xagent support
mikehard...@mindless.com
(925) 672-4403 (o)
(925) 672-3922 (h)
(925) 323-2070 (m)
___
By apologies for the abend. I think we could have responded differently. If
you define a structure with a binary value like this:
PIPE literal :dewayne square u l 2 | structure add thread
PIPE strliteral x06e4 | spec qual dewayne 1 print sqrt(square) 1 | cons
That should work. And "spec sqrt(1764
OK, I've tried a bunch of stuff but I continue to get S0C7 using sqrt,
so I must not be understanding what the input to the sqrt function
should look like. ;-) Please give me some pointers.
Here's the log:
pipe literal 16 | strip | specs a: 1.2 . if a>0 then set #1:=sqrt(a)
endif print #1