System Functions
ARG( ) Command-Line Argument
   
Format ARG(position[,ERR=stmtref])
 
Where:
 
  position Position of the argument you want returned. Numeric expression. Range: integer value from -2 to the number of arguments in the command that launched ProvideX.
   
  stmtref Program line number or statement label to which to transfer control.
   
Returns String, value of start up argument.
   
Description The ARG( ) function returns the string value of one of the arguments specified in the operating system command that launched ProvideX. The numeric expression position indicates which argument is to be returned. If you refer to an invalid argument, ProvideX returns:
 
Error #41: Invalid integer encountered (range error or non-integer)
   
See Also NAR System Variable,
ProvideX Installation Guide, Launching ProvideX
   
Example Given:

PVX -SZ=20 -ARG TOM JONES

  Then:  
  ARG(0) yields TOM
  ARG(2) yields JONES
  ARG(3) yields Error #41: Invalid integer encountered...
  ARG(-1) yields the INI filename in use for the current session
  ARG(-2) yields the pathname to the System Library

The ARG(-2) is a +PxPlus Exclusive