From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,bbee31366d16f9ff X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,bbee31366d16f9ff X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,bbee31366d16f9ff X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2000-11-01 06:47:08 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!feed1.news.rcn.net!rcn!not-for-mail From: "Kenneth Randell" Newsgroups: comp.os.vms,comp.sys.dec,vmsnet.alpha Subject: Re: Exchange "unformatted write" file between VMS and UNIX Fortran Date: Wed, 1 Nov 2000 09:48:19 -0500 Message-ID: <8tpacj$jvr$1@bob.news.rcn.net> References: <8tootl$gov$1@riksun.riken.go.jp> X-Trace: 84r1JbCKRM97j4RWK5bneVufuOoqSWIax9qHykDW7As= X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 1 Nov 2000 14:46:43 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Xref: supernews.google.com comp.os.vms:9325 comp.sys.dec:1363 vmsnet.alpha:120 Hello -- I don't have a TRU64 UNIX to test this myself, but in no particular order: 1) Did you try the ftp transfer in text (vs. binary) mode? 2) Are you sure the 'format' of the TRU64 unformatted data files is the same as on VMS? On VMS, each unformatted record is a 'logical record', which is implemented as a series of one or more variable length records with a two-byte header (values 00 - 03) that dictates which 'part' of a 'logical' record it is -- first record, last record, 'middle record', and only record. This allows the unformatted records to be of arbitrary length. I am uncertain of the TRU64 implementation. Perhaps Steve Lionel of COMPAQ will be able to clear this up. Ken Randell Takashi Ichihara wrote in message <8tootl$gov$1@riksun.riken.go.jp>... > Hi folks > > I want to read a file at True64 UNIX, which was written at Open >VMS/AXP using Fortran "unformatted write" statement. But the following >errors occurs during the unformatted read at True64 UNIX, DEC Fortran. > > forrtl: severe (24): end-of-file during read, unit 1, file testi.d > > forrtl: severe (67): input statement requires too much data, unit 1, > file testi.d or > > What I did is as follows: > > (1) Write a file using Fortran "unformatted write" on VMS. (write.f) > (OpenVMS V6.2-1H3, DIGITAL Fortran 77 X7.1-156, UCX 4.2 ECO 2) > > (2) Binary ftp the file testi.d from Open VMS/AXP to True64 UNIX > > (3) Read the file using Fortran "unformatted read" on True64 UNIX (read.f) > (OSF1 V4.0 1229 alpha, DIGITAL Fortran 77 V5.2-171-428BH) > > Then the read error occurs with the error messages above. > > Is there any special method to transfer or convert file written by >"unformatted write" on Open VMS/AXP Fortran to True64 UNIX System ? >Thanks for the information. > > Very simple example of the program is as follows: > >(write.f) : execute at Open VMS/AXP > integer*4 IX(1024) > data IX/1024*0/ > IX(1)=1 > IX(1024)=1024 > open(1,file='testi.d',status='new',form='UNFORMATTED') > write(1) ix > stop > end > >Binary ftp the file (testi.d) from Open VMS/AXP to True 64 Unix and then > >(read.f) : execute at True64 Unix > integer*4 IX(1024) > open(1,file='testi.d',status='old',form='UNFORMATTED') > read(1) ix > write(6,*) IX(1),IX(1024) > stop > end > >Result: forrtl: severe (24): end-of-file during read, unit 1, file testi.d > > Takashi Ichihara (ichihara @ riken.go.jp) > > > > > > >