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)?
The "standard" (which probably means
UNIX-standard) iargc() and
getarg() functions don't seem to work, at least not without some
external library linked in, so I assume those aren't the way to go.
I assume you're running it as a foreign command, rather than with RUN?
It's been a very long time since I used VMS - I think VMS 3.x was the
latest and greatest at the time - but I think you are correct, you need
to call some kind of CLI-interface function. I *think* (and this is
vaguer, quite possibly wrong) that your program may need to declare to
DCL what switches it takes and whether they take values.
Back in the day, this was documented enough that I managed to figure it
out, so unless VMS doc has gotten substantially worse, the necesary
info ought to be lurking there somewhere.
I realize this probably isn't much help; at most, it's "don't give up,
it should be there somewhere' encouragement.
Hmm, I might have VMS on a disk somewhere. If you can't get anywhere
any other way I can try to dig out the relevant machine and see if the
help files say enough to be useful - I think in my case I found it in
the dead-tree docs.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse at
rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B