Jump to content

Rexx Programming/How to Rexx/arg

From Wikibooks, open books for an open world

Usage

[edit | edit source]
arg [ template ]
arg([argnum] [,option]])

Description

[edit | edit source]

The arg command

[edit | edit source]

When used in command context, the arg command parses arguments in the template in a similar manner to a parse upper arg [ template ] command. Note that all arguments are converted to uppercase when arg is used in this command context form:

The arg function

[edit | edit source]

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 parameters passed to the script.