HP3000-L Archives

November 1998, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Raghuram B <[log in to unmask]>
Reply To:
Raghuram B <[log in to unmask]>
Date:
Tue, 1 Dec 1998 10:08:24 +0530
Content-Type:
text/plain
Parts/Attachments:
text/plain (78 lines)
Hello Ola,

Could you please re-check if the recordlength of the source files
is exactly 132 characters as in the following...

FILENAME  CODE  ------------LOGICAL RECORD-----------  ----SPACE----
                  SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX

TESTFILE          132B  FA          20       1023   1      256  1  *

I ask this because, when I ftp-ed this file from MPE to Unix, the
file created in Unix also had only 132 characters per line.

ftp> put testfile test.132
200 PORT command successful.
150 Opening ASCII mode data connection for test.132.
226 Transfer complete.
2680 bytes sent in 0.00 seconds (654.30 Kbytes/sec)

20 * 132 = 2660 + 20 * (CR+LF) = 2680 bytes

$wc test.132
20 123 2660 test.132

20 lines
20 * 132 = 2640 + 20 LF = 2660

(If my hunch is right, your files have a record length of "132W" -
132 words, which is equal to 264 characters)

Hope this helps.

Ola Kristiansen wrote:
>
> Hello !
>
> I read Raghuram Bharathan?s article in the November issue of «Interact»
> on FTP on the
> HP3000 with great interest. However I did not get the answer to an
> important question to us.
> We are using FTP on the HP3000 to send files created by COBOL programs
> to
> update pages on our WEB-site residing on a UNIX host.
> We are running MPE-iX 5.5 Power Patch 5.
> These files are «flat MPE-files» with HTML tagging and a recordlength of
> 132 characters.
> Our problem is that the recordlength on the targetfile has increased
> from 132 characters to
> 200 + after being transferred.
>
> One of the important objectives in creating files for the Internet is
> limiting the size of the files
> given today?s bandwidth.
>
> Why are spaces added to the end of each record ?
> Is there a way of eliminating this - defining the recordlength of the
> target file ?
>
> I would appreciate an solution to this and
> look forward to an answer from someone out there - thanks !
>
> Ola Kristiansen
> Det Norske Travselskap
> Postboks 194, Økern
> N-0510 OSLO
> NORWAY
--
Best regards,
Raghu

CSY R & D, Bangalore, INDIA

McGEE'S FIRST LAW:
It is amazing how long it takes to complete something, we are not
working on.

Disclaimer: I speak for myself, not HP

ATOM RSS1 RSS2