View previous topic :: View next topic |
Author |
Message |
sub Beginner
Joined: 30 Jan 2007 Posts: 20 Topics: 12
|
Posted: Fri Jan 19, 2018 7:30 pm Post subject: FTP from mainframe to Unix/Windows - Special character |
|
|
I am using FTP command to transfer file from mainframe to Unix. The file has a text field. The special characters "[" and "]" in the text field are getting converted into some garbage after the file transfer from mainframe to Unix server. The behavior is same when the same file is transferred from mainframe to windows server. I am trying to find a solution where the special characters [, ] doesn't get converted to garbage. Appreciate any suggestions on resolving this issue.
Thanks |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Sat Jan 20, 2018 2:55 pm Post subject: |
|
|
sub,
Your FTP is probably defaulting to code page 0037 instead of 1047. So try the following site command in your ftp control cards
Code: | SITE SBDATACONN=(IBM-1047,ISO8859-1) |
_________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
sub Beginner
Joined: 30 Jan 2007 Posts: 20 Topics: 12
|
Posted: Mon Jan 22, 2018 10:32 am Post subject: |
|
|
Kolusu, Thank you for the suggestion. The issue is resolved when I try to transfer from mainframe to windows. However the issue still exists when I try this command to transfer from mainframe to Unix. Is there any different code page we need to use for transmitting to Unix? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Mon Jan 22, 2018 11:54 am Post subject: |
|
|
sub wrote: | Kolusu, Thank you for the suggestion. The issue is resolved when I try to transfer from mainframe to windows. However the issue still exists when I try this command to transfer from mainframe to Unix. Is there any different code page we need to use for transmitting to Unix? |
Sub,
How are you opening the file in Unix/Linux? with GEDIT? _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
sub Beginner
Joined: 30 Jan 2007 Posts: 20 Topics: 12
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Tue Jan 23, 2018 6:10 pm Post subject: |
|
|
sub,
You need to change the default encoding. Use Encoding drop down menu to change encoding used when loading the file. Default encoding to use can be set in preferences
I guess the default encoding is 1250 as shown in this link
https://winscp.net/eng/docs/ui_pref_editor_internal
So change that to 1047 and you should be able to see the square brackets _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|