David Riley [fraveydank at
gmail.com] wrote:
I never really dealt with Fortran in university, and
if I
had, it probably would have been in a Unix context. Anyone
have some pointers to me on how to process command-line
switches in VMS from Fortran (I'm specifically tinkering with
f77, but I suppose f90 should do; it's a matter of environment)?
You don't make it clear whether you are running this as a foreign
command
or whether you have created a command definition and are running your
program as a CLI command. Since the latter requires enough work that
you would have seen the docs at
http://h71000.www7.hp.com/doc/84final/4493/4493pro_contents.html
I guess that you are doing the former.
In that case your program is being run as a "foreign" command.
So if your program is (for example) DISK$USERS:[USER]FOO.EXE
then you've done this at DCL:
FOO :== $DISK$USERS:[USER]FOO.EXE
and then you type
FOO MY COMMAND /LINE
In that case you want LIB$GET_FOREIGN:
http://www.itec.suny.edu/scsys/vms/OVMSDOC073/V73/5932/5932pro_023.html#
index_x_191
(I've no idea why google found that rather than the HP one ...)
The FORTRAN docs are also online so you should be able to find out how
to call library routines (pay attention to by value, by reference and by
descriptor).
Antonio
arcarlini at
iee.org