IRX0026I Error running R12, line 129: Invalid whole number
My code:
n="Paul"
n = mobile(n)
say n
mobile:
PARSE ARG name
select
when name="Paul"THEN DO
name="Paul Smith"
END
when name=="Robert"THEN DO
name="Robert Smith"
end
otherwise nop
end
RETURN name
EXIT
I worry when I get messages, I cannot have this Rexx fail on me. I spent a long time Googling this message but I did not get any clarification, any advice is much appreciated!
Thank you!