System Functions
ARG( ) Get/Process Arguments
 
The ARG function has two basic functions; the first is to return parameters from the argument list of the command line that launched the application, the second (a PxPlus exclusive) is to manipulate fields/arguments within a string.

 

Functions 1. Return Startup argument:

ARG(position[,ERR=stmtref])

  2a. Return/replace argument from string:

ARG( string$, argno [, delim$ ] [,ERR=stmtref])

  2b. Replace argument in string :

ARG ( EDIT string$, argno, newval$ [, delim$ ] [,ERR=stmtref])

Formats 2a and 2b are +PxPlus Exclusive