home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!mailer.cc.fsu.edu!sun13!ds8.scri.fsu.edu!jac
- From: jac@ds8.scri.fsu.edu (Jim Carr)
- Newsgroups: comp.lang.fortran
- Subject: Re: Upgrading obsolete code
- Keywords: FORTRAN,DECODE,UPGRADE,HOLLERITH
- Message-ID: <10612@sun13.scri.fsu.edu>
- Date: 6 Sep 92 19:29:18 GMT
- References: <1992Sep4.202958.29575@sbcs.sunysb.edu>
- Sender: news@sun13.scri.fsu.edu
- Reply-To: jac@ds8.scri.fsu.edu (Jim Carr)
- Organization: SCRI, Florida State University
- Lines: 19
-
- In article <1992Sep4.202958.29575@sbcs.sunysb.edu> mlubran@engws8.ic.sunysb.edu writes:
- >
- >I have to find a way to simulate the effect of the DECODE statement,
- >because MS-FORTRAN 5.0 does not seem to support it. A sample of what
-
- The functionality of the non-standard DECODE is provided by an
- internal READ in the FORTRAN-77 standard, complete with ERR= handling.
- Look under "internal records and files" or "Records, internal" in
- the index of f77 manual.
-
- Your main problem will be that the read wants a CHARACTER variable
- for its input "record" and your code had Hollerith. Best to convert
- the Hollerith stuff to character strings while updating the code.
-
- --
- J. A. Carr | "The New Frontier of which I
- jac@gw.scri.fsu.edu | speak is not a set of promises
- Florida State University B-186 | -- it is a set of challenges."
- Supercomputer Computations Research Institute | John F. Kennedy (15 July 60)
-