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

abrsvc dansabrservices at yahoo.com
Tue Feb 8 10:19:34 EST 2022


On Tuesday, February 8, 2022 at 10:16:57 AM UTC-5, HCorte wrote:
> 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)
In older FORTRAN programs, writes to unit 5 were usually prompts to the user.  I haven't seen this in many years though.



More information about the Info-vax mailing list