Just a small addendum to this. It will not pack or zone anything.. its a simple lookup table conversion mechanism (unless I'm mistaken) So if your IBM machine needs packed or zoned data I would look to a different solution.
which solution you mean ?
I've corrected the code but still get error:
Can't exec "ascii2ebcdic": No such file or directory at conv1.cgi line 30.
No such file or directory at conv1.cgi line 30.
If this script doesn't work, I don't have any chance to try this solution first.
I found in the Internet about this module:
http://search.cpan.org/~cxl/Convert-EBCDIC-0.06/lib/Convert/EBCDIC.pm
but don't know how it should work in my case.