The statement "if m d=2*2*2   3*3*3 then do;" would be just like coding:
if (m||' '||d) = (2*2*2||' '||3*3*3) then do
The parenthesis aren't needed either, but it shows how Rexx evaluates
each side of the equals sign.  Remember that in Rexx, a blank *is* a
concatenation operator, meaning to concatenate the 2 items with a
blank in between.  That's what I wrote above - concatenate m to a
blank to a d.  And also remember in Rexx, everything is a string, so
don't get hung up that the result of "2*2*2" is a "number"...its a
string.

On Thu, Mar 6, 2008 at 12:41 PM, Jim Bohnsack <[EMAIL PROTECTED]> wrote:
> That's it, but how do you decode "if m d=2*2*2   3*3*3 then do;" ?  I
>  understand that in January m is 1 meaning  true, and MFC's birthday must
>  be the 8th but what does 3*3*3 do to the if statement?  And is that the
>  same as saying if m & d=2*2*2 & 3*3*3?
>
>  As I said, mine is named QDJAB because I modified it when I was counting
>  down the days to my IBM retirement and didn't want to mess  up the
>  original, which I then lost.
>
>  Jim
>  --
>
>
> Jim Bohnsack
>  Cornell University
>  (607) 255-1760
>  [EMAIL PROTECTED]
>



-- 
Bruce Hayden
Linux on System z Advanced Technical Support
Endicott, NY

Reply via email to