Operating System - HP-UX
1837116 Members
2263 Online
110112 Solutions
New Discussion

EBCDIC to ASCII excluding packed fields

 
SOLVED
Go to solution
ALH
Occasional Advisor

EBCDIC to ASCII excluding packed fields

During our migration from HP3000 to HP9000 we encounter a problem with the conversion of EBCDIC encoded files. Our main HP3000 application reads files from an AS400. These files are converted from EBCDIC to ASCII. During this conversion, packed decimal fields are left untouched. This is all done using the FCOPY command like this: FCOPY FROM=IN;TO=OUT;EBCDICIN=(1:4;15:19),EXCLUDE

On a HP9000, this seems not possible. We found that the dd command performs EBCDIC to ASCII conversion but has no options to exclude the packed decimal fields.

Does anyone know how to solve this?
4 REPLIES 4
Cheryl Griffin
Honored Contributor

Re: EBCDIC to ASCII excluding packed fields

Document A1534535 in the ITRC Knowledge Base explains how to use FCOPY to exclude packed fields.

There is a FCOPY REFERENCE MANUAL, manual part no. 03000-90064.
"Downtime is a Crime."
ALH
Occasional Advisor

Re: EBCDIC to ASCII excluding packed fields

Thanks but as far as I know the FCOPY command does not exist on the HP9000. I am looking for a replacement for the FCOPY solution on a HP9000.
Cheryl Griffin
Honored Contributor

Re: EBCDIC to ASCII excluding packed fields

Do you have access to the ITRC Knowledge Base? There were several documents there using search keywords: ebcdic ascii packed
"Downtime is a Crime."
Stefan Farrelly
Honored Contributor
Solution

Re: EBCDIC to ASCII excluding packed fields


fcopy is part of the tcl package, you can download from;

http://hpux.connect.org.uk/hppd/hpux/Tcl/tcl-8.2.1/

install it on your HP9000 and it comes with fcopy.
Im from Palmerston North, New Zealand, but somehow ended up in London...