none
Spanish Character (Extended ASCII) not properly translated on Mainframe after FTP(command ) transfer from Windows to Mainframe

    Question

  • A text file having records of fixed length 256 bytes containing some extended ASCII characters are not transferred on Mainframe via FTP transfer  on mainframe dataset.Here  is the Command that i am using

    open xxx.xxx.xxx.xxx
    USER uname pwd

    quote site sbdataconn=(ibm-1140,ISO8859-1)
    put file1.txt 'MD11.MAINT.PHRASE.TABLE'

    quit

    Sample input file : }Test 1234}éÍíÓóÚúüÑñ}á

    Output Text  :        }Test 1234}éÃ.íÃ.óÃ.úüÃ.ñ}á

    Please help as this is a blocking issue in my downstream application.


    • Edited by KeithApophis Sunday, June 30, 2013 8:05 AM spelling mistake
    Sunday, June 30, 2013 8:04 AM

Answers

  • I have finally found the solution.

    I just need to set the Encoding of text file to windows 1252 while i am preparing the file.

    Like in my case Encoding.GetEncodings(1252).

    • Marked as answer by KeithApophis Sunday, July 07, 2013 8:10 AM
    Sunday, July 07, 2013 8:10 AM

All replies

  • Hello,

    which Windows OS version are you talking about?

    Is it done via IIS, then maybe the IIS experts may help you http://forums.iis.net/


    Best regards

    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/

    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

    Sunday, June 30, 2013 10:16 AM
  • I am transferring it via a batch file FtpScript.bat having this code written

    open xxx.xxx.xxx.xxx
    USER uname pwd

    quote site sbdataconn=(ibm-1140,ISO8859-1)
    put file1.txt 'MD11.MAINT.PHRASE.TABLE'

    quit

    The OS version is Windows 7 32 bit

    Sunday, June 30, 2013 5:16 PM
  • I have finally found the solution.

    I just need to set the Encoding of text file to windows 1252 while i am preparing the file.

    Like in my case Encoding.GetEncodings(1252).

    • Marked as answer by KeithApophis Sunday, July 07, 2013 8:10 AM
    Sunday, July 07, 2013 8:10 AM