On 6 Nov 2011 at 13:30, David Riley 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)?
Don't feel too bad.
There's absolutely no reason that you should have learned this in
school. External command-line processing isn't discussed in the ANSI
standard in f77 or f90. Every vendor does it differently.
One approach, for example, is to backspace input one record and
perform a READ to retrieve the command line, but that is by no means
universal.
--Chuck