From: Steve Lionel <Steve.Lionel@compaq.com>
Subject: Re: VAX Fortran - "Encode" Statement
Date: 2000/02/01 [thread overview]
Message-ID: <7uee9s0r333v7p15vbf8nfmepij4acspbq@4ax.com> (raw)
In-Reply-To: 389733B2.9B3E503D@bms.com
On Tue, 01 Feb 2000 14:27:46 -0500, Paul Roskos <paul.roskos@bms.com>
wrote:
>My company recently removed two DEC VAX computers from service, a
>6310 and 8810. The 8810 had a Fortran program that I need to
>convert to a version of Fortran that runs on a PC.
>
>The program contains several statements of the form,
>"ENCODE(1,10,File(4)) PASS(1)." Could anyone tell me what the
>"Encode" statement does?
Well, if you use Compaq Visual Fortran, you don't have to convert it -
ENCODE is supported.
ENCODE is an extension that performs a function similar to the Fortran
77 standard "internal WRITE" statement (ENCODE predates F77). The
statement you show says write one character, using FORMAT 10, into
array element FILE(4) the formatted value of PASS(1). FILE is
probably an INTEGER array though it could be CHARACTER or any type.
If it happened to be CHARACTER*1, a F77 equivalent might be:
WRITE (FILE(4), 10) PASS(1)
See
http://www.digital.com/fortran/docs/lrm/lrm0632.htm#encode_decode_stmts
for more information on ENCODE/DECODE.
Send Visual Fortran support requests to vf-support@compaq.com
Steve Lionel (mailto:Steve.Lionel@compaq.com)
Fortran Engineering
Compaq Computer Corporation, Nashua NH
Compaq Fortran web site: http://www.compaq.com/fortran
Compaq Fortran Message Board:
http://forum.compaq.com:80/mb8/system/fortran_login.html
next prev parent reply other threads:[~2000-02-01 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-01 5:00 VAX Fortran - "Encode" Statement Paul Roskos
2000-02-01 5:00 ` Steve Lionel [this message]
2000-02-01 5:00 ` Serguei Patchkovskii
2000-02-01 5:00 ` Dave Greenwood
2000-02-02 5:00 ` Thanks for "Encode" Help Paul Roskos
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox