Thanks Paul,
This seems to have worked well enough. I have not verified this yet, but
upon visual inspection it appears fine (the source file should only consist
of ASCII characters):
ftp> bin
200 Type set to I.
ftp> get dhs_chdp CHDP;REC=-633,44,F,ASCII
Performing a binary or byte-stream transfer to an ASCII file. (FTPWARN 37)
200 PORT command successful.
150 Opening BINARY mode data connection for dhs_chdp (675411 bytes).
226 Transfer complete.
675411 bytes received in 1.08 seconds (610.72 Kbytes/sec)
-----Original Message-----
From: Paul S. Butler [mailto:[log in to unmask]]
Sent: Wednesday, April 18, 2001 10:12 AM
To: EBEN YONG
Subject: Re: HP-UX to MPE file conversion
Ebon,
It looks like MPE can't create a binary file with an odd record width, so it
adds the extra byte. You can build the file to 633 bytes by making it ASCII.
(REC=-633,44,F,ASCII).
------------------------------------
Paul S. Butler, System Administrator
Data Trace Information Services LLC
(916) 797-5000
----- Original Message -----
From: "EBEN YONG" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, April 18, 2001 9:14 AM
Subject: HP-UX to MPE file conversion
> Hi,
>
> I am attempting to transfer a file from our HP9000 to our HP3000. The
file
> is a 633-byte record length datafile. Using FTP on the e3000, I used
these
> statements:
>
> ftp> get dhs_chdp CHDP;REC=-633,44,F,BINARY
> 200 PORT command successful.
> 150 Opening BINARY mode data connection for dhs_chdp (675411 bytes).
> 226 Transfer complete.
> 675411 bytes received in 0.64 seconds (1022.61 Kbytes/sec)
>
> But on the MPE side, I get this:
>
> FILENAME CODE ------------LOGICAL RECORD----------- ----SPACE----
> SIZE TYP EOF LIMIT R/B SECTORS #X MX
>
> CHDP 317W FB 1066 204800 44 2656 5 8
>
> Instead of creating a 633-byte record length file, it created a 634-byte
> record length file, an offset of only 1 byte, but causing an accumulating
> shift of each record by 1 byte from one record to the next. For example,
in
> the illustration below, the record should be 7 bytes long, but displays
the
> effect if it is converted to an 8-byte record length file:
>
> Record1: 12345671
> Record2: 23456712
> Record3: 34567123
> Record4: 45671234 etc...
>
> Any input would be greatly appreciated.
>
> Thanks,
>
> Eben Yong
> Health Plan of San Mateo
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|