IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP - Special characters are converted into DBCS


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Chinnadu

New User


Joined: 05 Mar 2009
Posts: 46
Location: Hyderabad

PostPosted: Tue Nov 12, 2019 6:01 pm
Reply with quote

Hi,

Whie FTPing the data from windows to mainframes, some special characters (Looks like they belong to European language character set) are getting replaced with two new characters in mainframes. Can somebody tell me how to FTP the data into mainframes as is in Windows system.

Ex:

Data in source file: RÓDRO
Data after FTPed into mainframes : RC DRO.

Character "Ó" in source file is replaced with "C " in mainframes.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Tue Nov 12, 2019 8:19 pm
Reply with quote

You cannot squash the way more than 256 characters that Windoze can handle into the 256 EBCDIC ones. Period. Full stop. End of story.
Back to top
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 57
Location: Australia

PostPosted: Tue Nov 19, 2019 9:30 am
Reply with quote

Garbage in garbage out.
Welcome to the world of character translation.

Binary transfer followed by iconv....provided you know the source codepage for the offending character.

Enjoy.
Back to top
View user's profile Send private message
Cameron Conacher

New User


Joined: 11 Dec 2019
Posts: 8
Location: Canada

PostPosted: Wed Dec 11, 2019 7:49 pm
Reply with quote

Agree with Hank.
Send the file in binary using FTP, and then run an iconv to transform the data from what ever CCSID you had on the windows box (ASCII or UTF-8 or UTF-16 or whatever), into whatever EBCDIC CodePage you wanted.
Keep in mind that when you browse the transformed mainframe data, you should also have the host codepage value of your emulator set to the EBCDIC CodePage value you transformed the data into.
For example, do not convert the data to EBCDIC CodePage 500 and then use an emulator with a host codepage setting of 291.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Count the number of characters in a f... CA Products 1
No new posts Tilde Characters Changing to COLONs i... CLIST & REXX 22
No new posts Problem while sending special charact... JCL & VSAM 4
Search our Forums:

Back to Top