FERGUSON@BKNLVMS.BITNET (08/31/88)
Has anyone ever been able to use FORTRAN write commands to write to an IOS stream? It would be real nice if you could just use the IOS stream id variable as the FORTRAN file unit, but this is not correct. Is there a way to work with this instead of having to use IOS_$PUT? It's not that we can't handle doing it, but porting programs that are huge can get kind of tedious. If it's not possible, then how about it? Let's see a call IOS_$GET_FTN_UNIT or something. Thanks in advance, Scott Ferguson Bucknell University CAED Center ferguson@bknlvms.bitnet
geiser@apollo.COM (Wayne Geiser) (09/01/88)
>Has anyone ever been able to use FORTRAN write commands to write to >an IOS stream? > >It would be real nice if you could just use the IOS stream id variable >as the FORTRAN file unit, but this is not correct. Is there a way to >work with this instead of having to use IOS_$PUT? > >It's not that we can't handle doing it, but porting programs that are >huge can get kind of tedious. > >If it's not possible, then how about it? Let's see a call IOS_$GET_FTN_UNIT >or something. > >Thanks in advance, > >Scott Ferguson >Bucknell University CAED Center >ferguson@bknlvms.bitnet You have been able to do IOS calls to a FORTRAN unit for quite a while. In this case, you use the INQUIRE statement with the STRID= specifier. It gives you back the IOS ID which you may use in IOS calls. As of SR10, you may do it the other way 'round. In this case, you supply a valid IOS ID to the STRID= specifier to the OPEN statement (you use it instead of the FILE= specifier). Note, however, that you may do lots of things that are not supported. Be careful! Travel at your own risk. Wayne Geiser Apollo Computer {wanginst, yale, uw-beaver, brunix, utah-cs}!apollo!geiser -- Wayne Geiser Apollo Computer, Inc. {mit-erl, yale, uw-beaver, decvax}!apollo!geiser