cancel
Showing results for 
Search instead for 
Did you mean: 

Convert EBCDIC to ASCII

0 Kudos

Hi all,

We are using XI 3.0 SP 10 and I have a scenario where I only need to retrieve a file (via FTP) and deliver it to a file share inhouse. There is no need for any mappings etc. But the file Iam retrieving is in EBCDIC and I would need to convert this into ASCII when delivering to fileshare. I have set up the communication channels and this works fine. But what would be the easiest way to convert the EBCDIC file to ASCII?

Regards,

Fredrik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Fredrik,

There is an alternate way of acehiving the same using a java program in the operatingsystem command option of File adapter.

Steps:

1. Write a java program to read EBCDIC file and convert into ASCII file(Using codepages).

2.Create a jar for the above program and store it in a server directory.

3.Write one shell script/batch file call the java program and send command line parameters as filenames.

4.In XI File adapter -Operating system command use the Shellscript/Batch file name (Complete path)and give %F for filenames

Eg. /usr/sap/serverdir/convert.sh %F %F

For more details refer the following link:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">XI File adapter</a>

Regards,

Ananth

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Fredrik,

you should be able to do this by using the parameter file.encoding. You can find further info under

http://help.sap.com/saphelp_erp2005/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm

and in note 821267

Hope this helps you,

Regards, Jaime