home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: vmsnet.misc
- Path: sparky!uunet!stanford.edu!unixhub!slacvx.slac.stanford.edu!fairfield
- From: fairfield@slacvx.slac.stanford.edu
- Subject: Re: Output conversion warnings in Vax Fortran
- Message-ID: <1992Oct12.121300.1@slacvx.slac.stanford.edu>
- Lines: 22
- Sender: news@unixhub.SLAC.Stanford.EDU
- Organization: Stanford Linear Accelerator Center
- References: <1992Oct12.112837.18130@monu6.cc.monash.edu.au>
- Date: Mon, 12 Oct 1992 20:13:00 GMT
-
- In article <1992Oct12.112837.18130@monu6.cc.monash.edu.au>, bena@yoyo.cc.monash.edu.au (Ben Aveling) writes:
- > I'm sure anyone who has ever used Fortran has seen the ***** type output
- > when a number is too big to fit in it's format statement. My gripe is
- > that every time my programs do that, it counts as a warning, and does a
- > stack dump. Can some kind soul please tell me how I can stop this
- > happening, short of turning off all messages.
-
- Simply add the IOSTAT parameter to your WRITE statements and ignore the
- value returned:
-
- INTEGER*4 OK
- ...
- WRITE (6,801,IOSTAT=OK) X,Y,Z
- ...
-
- Cheers, Ken
- --
- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slacvx.Slac.Stanford.Edu
- SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
- Stanford, CA 94309 | BITNET Fairfield@Slacvx
- ----------------------------------------------------------------------------
- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
-