Kilowatt Software L.L.C.
Classic Rexx Tutorial
Language Level 4.00 (TRL-2)

Arg instruction

The ARG instruction parses procedure arguments and assigns UPPERCASE values to program variables. This instruction has the following syntax.

The ARG instruction is an abbreviated form of the following parse instruction.

Please refer to the parse instruction description for details regarding argument parsing.


Beware the ARG "gotcha" when processing byte values :

Programmer's often have a mental block whereby byte values1 such as '81'x or '61'x 2 are thought to be distinct from characters. This can lead to head-banging bugs that are difficult to solve. For example:

The problem is corrected as follows:


1 Hexadecimal literals in Rexx.

2 '81'x and '61'x are lower case "a" in EBCDIC and Ascii respectively.


Kilowatt Software L.L.C. -- Classic Rexx Tutorial -- Back to top
Click here if you have any comments or questions regarding this tutorial

Last updated on: 11 Apr 2006