REXX add 42 21
/**************************** REXX ******************************/
/* This program receives two numbers as input, adds them, and */
/* produces their sum. */
/****************************************************************/
ARG number1 number2
sum = number1 + number2
SAY 'The sum of the two numbers is' sum'.'
ARG assigns the first number 42, to number1, and the second number 21, to number2.
If the number of values is fewer or more than the number of variable names after ARG or PULL, errors can occur, as the following sections describe.