From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,fdeebdb780ee6eda,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-11-04 16:41:40 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!lll-winken.llnl.gov!usenet From: oberman@ptavv.llnl.gov Newsgroups: comp.sys.dec Subject: Problems with portable Fortran terminal IO Date: Thu, 4 Nov 93 23:21:56 GMT Organization: Lawrence Livermore National Laboratory Message-ID: <2bc6a2$rem@lll-winken.llnl.gov> NNTP-Posting-Host: ptavv.llnl.gov I have hit a surprising Fortran compatability problem, terminal record length. I have a WRITE to LUN * (WRITE *,200)buff where buff is CHARACTER*1 BUFF(132) and the format includes several header lines for a total length of about 250 characters. The FORMAT is quite long, but the string, buff is (132A). This fails with a output record overflow on the VAX (VMS 5.5-2, Fortran V5.9) but works on every other platform we run the code on. These include SunOS, HP-UX, Irix, UniCOS, and several others. the problem is that the default RECL for sequential formatted output is 133 bytes. I'm curious why this limit is present. Any clues? Any way that is portable to get around this. The only thing I can fine is to explicitly open SYS$OUTPUT with a large RECL. And I have not found a "standard" way of doing this that will port to other platforms. CSC says I'm stuck. I should note that for some reason if I do a declaration of CHARACTER*132 BUFF and load buff with 132 characters it will work file without a special OPEN. I don't understand this, either. Any compiler gurus have any idea of why and any possible solutions? (I hate conditional code, but will use it if I have to.) R. Kevin Oberman Lawrence Livermore National Laboratory Internet: koberman@llnl.gov (510) 422-6955 Disclaimer: Being a know-it-all isn't easy. It's especially tough when you don't know that much. But I'll keep trying. (Both)