Go to the first, previous, next, last section, table of contents.


GetArg Intrinsic

CALL GetArg(Pos, Value)

Pos: INTEGER; scalar; INTENT(IN).

Value: CHARACTER; scalar; INTENT(OUT).

Intrinsic groups: unix.

Description:

Sets Value to the Pos-th command-line argument (or to all blanks if there are fewer than Value command-line arguments); CALL GETARG(0, value) sets value to the name of the program (on systems that support this feature).

See section IArgC Intrinsic, for information on how to get the number of arguments.


Go to the first, previous, next, last section, table of contents.