LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2018, 06:57 AM   #1
coolmaninit
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Rep: Reputation: Disabled
file transfer


When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format

Eg "|" in Iseries and while transferring fro Iseries system to Linux , but instead of "|" it is showing as "?".

Please advise
 
Old 06-11-2018, 07:01 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Quote:
Originally Posted by coolmaninit View Post
When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format

Eg "|" in Iseries and while transferring fro Iseries system to Linux , but instead of "|" it is showing as "?".

Please advise
That does not sound like a "format" problem, more like a translation problem. You are probably doing an imperfect EBCDIC to ASCII translation during the transfer.
 
1 members found this post helpful.
Old 06-11-2018, 09:41 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
You might try to transfer in binary mode, then convert on Linux-side with glibc!iconv. It does support some EBCDIC variants like IBM-037 and IBM-1047
 
Old 06-11-2018, 10:52 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
could try "dd" command which has two EBCDIC variations.
 
Old 06-11-2018, 11:10 PM   #5
coolmaninit
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by NevemTeve View Post
You might try to transfer in binary mode, then convert on Linux-side with glibc!iconv. It does support some EBCDIC variants like IBM-037 and IBM-1047


Thanks for your reply!!

If I send the Broken pipe symbol , in Linux system also appearing Broken pipe sysmbol.

If I send the "|" symbol from AS400 ( IBM Iseries) then In Linux it is appearing "?"

Do I ned to put any CCSID and If yes, then what CCSID I need to use?
 
Old 06-11-2018, 11:34 PM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Someone (this means you) should examine the actual codes in the file, to identify the used EBCDIC variant.
Note: Incidentally, I have two examples (037 and 1047) you might want to check/compare:
http://web.axelero.hu/lzsiga/IBM-037.TXT
http://web.axelero.hu/lzsiga/IBM-1047.TXT
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File transfer from Android tablet changes file names Scott271 Slackware 3 04-21-2015 04:42 AM
Slow single file transfer, fast multiple transfer Manzano Linux - Networking 6 08-06-2013 11:39 AM
Sony PSP file transfer inaccurate transfer progress stratotak Linux - Newbie 3 01-02-2010 03:49 AM
file time stamp is wrong with ssh file transfer cy163 Linux - Newbie 8 05-18-2008 01:40 AM
transfer dvds from ogg file to vod file kingfish217217 Linux - Software 3 02-19-2007 06:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration