home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / vmsnet / misc / 918 < prev    next >
Encoding:
Text File  |  1992-10-12  |  1.4 KB  |  34 lines

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