Quantcast
Viewing all articles
Browse latest Browse all 1235

Picking up a UTF-8 file from Mainframe Server - SAP PI

Hi Experts,

 

Currently I am working on a scenario where I have to pickup a file which has Thai and Chinese Characters from a Source Mainframe FTP Server and pass it on to a target system without any transformation.

 

The characters are passed properly when I give File Type in Processing tab as Text and File Encoding as UTF-8. However, this file at the target side looks totally scrambled instead of each record being shown in single line.

 

When a normal file with English characters are picked up as Binary, there is no issue whatsoever and the output is as expected.

 

Now, the FTP guys asked me to execute a series of FTP Commands as follows for downloading the file. I provide the FTP commands below:

 

quote site encoding=mbcs

 

quote site mbdataconn=(utf-8,utf-8)


quote site unicodefilesystembom=never


quote site recfm=vb


quote site blksize=0


get '<source_file_name>' <your_file_name.txt>

 

When this series of commands are executed and i download the file to my Local Directory, it looks perfect but I do not know how can I try including these in the FTP Adapter. I tried the Advanced Mode but to no avail.

 

Can you please help me with inputs on how to get this included in the Source File Adapter of SAP PI ?

 

Thanks and Regards,

Krishna Sharma H


Viewing all articles
Browse latest Browse all 1235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>