From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4ac176af9d1c15f8 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-27 00:40:15 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!nigel.msen.com!zib-berlin.de!irz401!news.urz.tu-dresden.de!rdalph!polnick From: polnick@rdalph (system PRIVILEGED account) Newsgroups: comp.unix.osf.osf1 Subject: Re: Q: Fortran statement function problem Date: 27 Jul 1994 06:54:46 GMT Organization: TU Dresden (URZ) Distribution: world Message-ID: <3150bm$sau@RMAIL.urz.tu-dresden.de> References: NNTP-Posting-Host: rdalph.urz.tu-dresden.de X-Newsreader: TIN [version 1.2 PL2] Peyton Bland (peyton.bland@med.umich.edu) wrote: : Has anyone had problems with statement functions in Fortran? (I know, I : know, I shouldn't be using Fortran!) We are running OSF/1 v1.3 on a DEC : Alpha and using their f77 compiler. : Anyway, a fragment of my program looks like : else if ( line(2:end_section(line)) .eq. 'PROGRAM-HEADER' ) then [deleted] I suppose that your "then"-statement in that line goes over column 72. FORTRAN ignores all characters after column 72 (comment characters). Try to put the "then"-statement on a continuation line or something other to make this line shorter. Michael Polnick TU Dresden