I am trying to read a command line token into a simple program, TESTFORT.FOR:
CHARACTER*3 CMNAM, TOKEN
TOKEN = CMNAM()
WRITE(*, 10) TOKEN
10 FORMAT('TOKEN IS ', A3) END
If I compile with FTN95 testfort.for/debug/params and run it with the command 'testprog abc' this works perfectly.
If I try to run it with 'sdbg testprog abc' I get a system 2 error 'cannot find the file specified' as it tries to find abc.exe
How can I run the debugger and use a command line token?
Grateful for any help.
Roger