HP3000-L Archives

October 1995, Week 4

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:
Thomas Knoedler <[log in to unmask]>
Reply To:
Thomas Knoedler <[log in to unmask]>
Date:
Fri, 20 Oct 1995 20:54:21 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
"<Elbert E Silbaugh>" <[log in to unmask]> wrote:
>We are trying to FTP a file from IBM to HP (MPE/iX 5.0).
>The manual says it automatically converts from EBCDIC to ASCII.
>Our program burps on COMP-3 fields.
>Indications are that the conversion is not done.
>
>Any ideas from you all would be helpful.
>
>Elbert
Those COMP-3 fields are Packed Decimal fields.  To convert
the record(s) from EBCDIC to ASCII, you must first store
the Packed Decimal fields to an internal buffer, translate
the record(s) to ASCII, and then move the stored numbers
back to the record(s).  The least painful way to do this
is with a Transact/XL program using the CTRANSLATE
intrinsic.  Of course, this means that the file must be
transferred to and stored on your 3000 in EBCDIC format.
 
--
Thomas B. Knoedler
Computer Services
University of Illinois at Springfield
[log in to unmask]

ATOM RSS1 RSS2