The REXX program that follows is saved as "TEST" in a SYSEXEC DD library:
/* REXX program to accept two whole numbers and return */
/* two lines of output: the numbers and their sum. */
parse upper arg parm1 parm2 .
if DATATYPE(parm1,'W') \= 1 | DATATYPE(parm2,'W') \= 1 then
do
n = 'Inputs must be whole numbers'
return n
exit
|