On Thu, Jul 13, 2023 at 1:14 PM <SReeves@xxxxxxxxxxxxxxxxxx> wrote:



However then I found this page that seems to indicate you can using inconv
'at the start or end of the sftp transfer '.


Assuming your file foo.ebcdic is in US EN EBCDIC and you want to send it as
ASCII text as foo.txt

/usr/bin/iconv -f IBM037 -t ISO8859-2 foo.ebcdic >foo.txt

Make sure to path the command /usr/bin/icon because *gulp* there are 2
iconv implementations floating around PASE ... (the other is
/QOpenSys/pkgs/bin/iconv)

I actually have this set up as a bash shell alias:

alias fromebcdic='/usr/bin/iconv -f IBM037 -t ISO8859-2 $*'


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.