Unix convert file from ebcdic to ascii




















My basic understanding is that ftp should work in the ascii mode as long as the source data is character data and not packed data. Thanks for all the responses, I'll try!! Jean Pierre. You're absolutely right, is there any other way to fix it? Don't convert binary datas from ebcdic to ascii. Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

The Tek-Tips staff will check this out and take appropriate action. The code we both found is actually quite simple. It consists of a couple of look-up tables and a hex converter. If you know PowerShell which I don't then a translation is straightforward.

If you don't then perhaps you're lucky and someone in this forum will fill an idle half-hour by showing you how it's done. Dim encoding As System. Dim reader As New IO. Dim writer As New IO. Default 'This is a string to store the translated line. Do Until reader. GetString encoding. GetBytes buffer 'Write the translated string out to a file. Close writer. Close 'Release resources. Dispose writer.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Search Forums. Show Threads. Show Posts. Shell Programming and Scripting. Registered User. Join Date: Jun Join Date: Mar My advice: Do the conversion on the Mainframe. Thanks Reply.

I have write code like this: Code :. Code :. Join Date: Oct



0コメント

  • 1000 / 1000