Hi Jeff, I write, compile and debug my fortran code in c:\users\imre\fortran\time4taxv3 . This directory has my source code, the .exe file, all the input and output files etc. When I run the code from this directory every thing works good.
I wanted to move the actual running of the code to c:\users\imre\documents\taxes\2020.taxes ... I do not want someone to erase or change the source code accidentally. I copied the 3 .txt input files to the 2020.taxes directory an ran c:\users\imre\fortran\time4taxv3\time4taxv3.exe . The code seemed to be running ok but it would not write to either output file. I got no errors and I got no output.
I then copied c:\users\imre\fortran\time4taxv3\time4taxv3.ex to the 2020.taxes directory ... same thing, no errors and no output.
When I open the output files I do not specify the full pathname, I do the fillowing:
arg1="taxout.txt"
open(unit=120,file=arg1,position="append",action="write",IOMSG=erroro,err=125,iostat=ir)
write (unit=120,fmt=123,err=125,iostat=ist) date,vendor,cost,taxcat,addres,desc
123 format (5a1,1x,20a1,1x,8a1,1x,20a1,1x,20a1,1x,20a1)
Thank You !!