home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / fortran / 3437 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!timbuk.cray.com!walter.cray.com!ferris!gerardo
  3. From: gerardo@ferris.cray.com (Gerardo Cisneros)
  4. Subject: Re: Upgrading obsolete code
  5. Message-ID: <1992Sep4.191545.2197@walter.cray.com>
  6. Keywords: FORTRAN,DECODE,UPGRADE,HOLLERITH
  7. Organization: Cray Research, Inc.
  8. References: <1992Sep4.202958.29575@sbcs.sunysb.edu>
  9. Date: 4 Sep 92 19:15:45 CDT
  10. Lines: 20
  11.  
  12. In article <1992Sep4.202958.29575@sbcs.sunysb.edu> mlubran@engws8.ic.sunysb.edu writes:
  13. >
  14. >I have to find a way to simulate the effect of the DECODE statement,
  15. >because MS-FORTRAN 5.0 does not seem to support it. A sample of what
  16. >[rest deleted]
  17.  
  18. If I remember ENCODE and DECODE correctly, you can perform their function
  19. with WRITE and READ on an internal "file" in Fortran 77.  Just use
  20. a character variable or array of the appropriate size in place of
  21. the unit number.  A format _must_ be given; the standard forbids
  22. list-directed I/O on internal files.
  23.  
  24. Cheers,
  25.  
  26. Gerardo
  27. -- 
  28. Gerardo Cisneros        |Cray Research de M'exico, S.A. de C.V.
  29. gerardo.cisneros@cray.com    |Camino a Sta. Teresa 480-A #302
  30. (+52+5)622-8584         |14020 Tlalpan, D.F., MEXICO
  31.  Anything I said sound like an opinion? Then it's no one's but my own.
  32.