Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!apollo!geiser From: geiser@apollo.COM (Wayne Geiser) Newsgroups: comp.sys.apollo Subject: Re: Fortran file units and IOS streams Message-ID: <3e35bd4a.ba7d@apollo.COM> Date: 1 Sep 88 16:36:00 GMT References: <8808311617.AA07387@umix.cc.umich.edu> Organization: Apollo Computer, Chelmsford, Mass. Lines: 38 >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