From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,418b62f7e2d390d5 X-Google-Attributes: gid1164f8,public From: Steve Lionel Subject: Re: VAX Fortran - "Encode" Statement Date: 2000/02/01 Message-ID: <7uee9s0r333v7p15vbf8nfmepij4acspbq@4ax.com>#1/1 X-Deja-AN: 580483215 Content-Transfer-Encoding: 7bit References: <389733B2.9B3E503D@bms.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 949435637 9249 16.31.64.86 (1 Feb 2000 20:07:17 GMT) Organization: Compaq Computer Corporation Mime-Version: 1.0 NNTP-Posting-Date: 1 Feb 2000 20:07:17 GMT Newsgroups: comp.sys.dec On Tue, 01 Feb 2000 14:27:46 -0500, Paul Roskos 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