MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP from mainframe to Unix/Windows - Special character

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sub
Beginner


Joined: 30 Jan 2007
Posts: 20
Topics: 12

PostPosted: Fri Jan 19, 2018 7:30 pm    Post subject: FTP from mainframe to Unix/Windows - Special character Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Sat Jan 20, 2018 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sub
Beginner


Joined: 30 Jan 2007
Posts: 20
Topics: 12

PostPosted: Mon Jan 22, 2018 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Mon Jan 22, 2018 11:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sub
Beginner


Joined: 30 Jan 2007
Posts: 20
Topics: 12

PostPosted: Tue Jan 23, 2018 5:39 pm    Post subject: Reply with quote

We are using the editor
https://winscp.net/eng/docs/ui_editor
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Tue Jan 23, 2018 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group