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 17:20:09 PST Path: supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed.mesh.ad.jp!nntp.kreonet.re.kr!imnet2!news.riken.go.jp!riksun!ichihara From: ichihara@rarfaxp.riken.go.jp (Takashi Ichihara) Newsgroups: comp.os.vms,comp.sys.dec,vmsnet.alpha Subject: Re: Exchange "unformatted write" file between VMS and UNIX Fortran Date: 2 Nov 2000 01:17:27 GMT Organization: The Institute of Physical & Chemical Research (RIKEN), Wako, Saitama, Japan Message-ID: <8tqfb7$eb2$1@riksun.riken.go.jp> References: <8tootl$gov$1@riksun.riken.go.jp> NNTP-Posting-Host: alpha.riken.go.jp X-Trace: riksun.riken.go.jp 973127847 14690 134.160.3.10 (2 Nov 2000 01:17:27 GMT) X-Complaints-To: usenet@riksun.riken.go.jp NNTP-Posting-Date: 2 Nov 2000 01:17:27 GMT X-Newsreader: mnews [version 1.21PL5] 1999-04/04(Sun) Xref: supernews.google.com comp.os.vms:9398 comp.sys.dec:1374 vmsnet.alpha:122 <8tootl$gov$1@riksun.riken.go.jp> I wrote >> 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. I got an answer from telephon support center of Compaq Japan just now. The suggested method is as follows: (1) Convet a file to fix record format at the OPEN/VMS using the following command: $ set file /attr=(rfm=fix,lrl=512) testi.d (2) Copy the file from VMS to True64 UNIX via binary-mode FTP (3) At True64 Unix, Open the file with the special option RECORDTYPE='segmented' (this option seems to be special to the True64 DEC Frortan) open(1,file='testi.d',status='old',form='UNFORMATTED', 1 RECORDTYPE='segmented') Then it worked. Thanks for the information and suggestions. Takashi Ichihara (ichihara @ riken.go.jp)