ASCII to EBCDIC with packed fields

David Knispel dave.knispel@frequencymarketing.com
Wed, 8 Aug 2001 10:58:31 -0400


To the list,

>From an ftp standpoint, ftp is converting the whole record from ASCII to
EBCDIC, so you'll have to do a binary file transfer instead of an ASCII file
transfer.  That means, however, that one of your boxes will have to convert
to the others language (excluding the packed fields).

On our HP3000, we usually do the following for transfers from the HP3000 to
an IBM
1. Create the file on the HP3000
2. Use FCOPY or SUPERTOOL to convert the records from ASCII to EBCDIC
excluding the packed fields
3. Transfer the file using FTP to the IBM in binary mode.

For files going the other way
1. Recieve the file on the HP3000 in EBCDIC
2. Use FCOPY or SUPERTOOL to convert the records from EBCDIC to ASCII
excluding the packed fields
3. Process the file.


David Knispel
david.knispel@frequencymarketing.com
Phone: 513-248-5029
Fax: 513-248-2672
----- Original Message -----
From: Kesterson, Roger <Roger.Kesterson@mtdsw.com>
To: <powerh-l@lists.swau.edu>
Sent: Wednesday, August 08, 2001 10:13 AM
Subject: ASCII to EBCDIC with packed fields


> PH 7.10.G2 on OpenVMS 7.1
>
> I'm sorry, this isn't exactly a PowerHouse question.  I am generating text
> files from PowerHouse on our Alpha and FTP'ing them to our AS/400 to be
used
> by a MAPICS offline load program.  Apparently, some crack (head)
programmer
> thought it would be amusing to put a smattering of packed fields into the
> offline load file definitions, so when the file is FTP'd from the Alpha
> (ASCII) to the AS/400 (EBCDIC), the packed fields get clobbered.
>
> My hope is that someone out there has an easy solution to this problem.
> Thanks in advance for any help you can offer!
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
> Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.