Passing Run Command Parameters [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation
HP FORTRAN 77/iX Reference
Passing Run Command Parameters
A maximum of two input parameters from a program's RUN command can be
passed to a program. One parameter must be a CHARACTER*(*) data type and
the other an INTEGER*2 or INTEGER*4 type. For example, if you want to
pass two parameters to the program named test, where one parameter is a
character string and other is an integer, you need these statements:
PROGRAM test(p1,p2)
CHARACTER*(*) p1
INTEGER p2
In the program's RUN command, the character parameter is identified with
the INFO string and the INTEGER parameter is identified with the PARM
word. Data is passed to the program test with the following RUN command:
:RUN test; INFO="infile";PARM=3
MPE/iX 5.0 Documentation