[Info-vax] Command Procedure pass value to program READ

HCorte hmmbcorte at gmail.com
Tue Feb 8 10:16:55 EST 2022


Well the project that am working multiple executables the source code is using in the WRITE statements unit=5 instead of correct unit=6 that originates the following error when running the script to inject the params needed for the input's...

%FOR-F-ERRDURWRI, error during write
  unit 5  file SYS$INPUT:.;
  user PC 00000000

Since it detects that its a unit 5 assumes that is READ/SYS$INPUT when in fact for this specific cases its a Write... can't change the source code since this value is passed as parameter in multiple source code file, so gona have to give up the ideia of automatizing the running of a group of programs. 

Is there any reason one would use unit=5 for Write??

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Three unit numbers are automatically associated with specific standard I/O files at the start of program execution. These preconnected units are standard input, standard output, and standard error:

Standard input is logical unit 5 (also Fortran 90 unit 100)

Standard output is logical unit 6 (also Fortran 90 unit 101)

Standard error is logical unit 0 (also Fortran 90 unit 102)




More information about the Info-vax mailing list