411 REFERENCE · Wikibooks
Rexx Programming/How to Rexx/arg
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Usage
arg [ template ]
arg([argnum] [,option]])
Description
The arg command
When used in /command context/, the arg command /parse/s arguments in the /template/ in a similar manner to a parse upper arg [ template ] command. Note that all /argument/s are converted to /uppercase/ when arg is used in this /command context/ form:
The arg function
When used in /command context/, the arg function returns the specified /argument/ passed to a /function/ or routine. An option can be added to return a /boolean/ value based on the existence or omission of an argument. The arg function can also be used for retrieval of /command line parameter/s passed to the script.