Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP - Arabic Characters

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Tue Sep 17, 2013 2:02 pm    Post subject: FTP - Arabic Characters
Reply with quote

Hi,
I am executing the below JCL to FTP a file to host.
The transfer is successful, but the arabic characters in the file is coming in corrupted format.

Should I use any specifi type or sub type option for this?
Code:
//FTP0001 EXEC PGM=FTP,REGION=4096K         
//INPUT    DD *                             
10.10.10.10                                 
username                                     
password                                                                             
cd /u02/folder/out                       
LOCSITE SBD=XXX.YYY.ZZZZ           
GET File.txt 'AAA.BBB.CCC'  (REPLACE
DIR                                         
QUIT 
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 17, 2013 2:32 pm    Post subject:
Reply with quote

Have you tried it in binary format
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Tue Sep 17, 2013 3:18 pm    Post subject:
Reply with quote

Tried that type, the whole file looks corrupted.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 17, 2013 4:48 pm    Post subject:
Reply with quote

What is the code page being used by the source system?
What is the code page you want to use on z/OS?

You will probably need to define (if your site support group has not done so for you) a TCP/IP Translate Table to convert the source code page to the destination code page, and then you will have to specify the code page to use with the FTP. The information to do this is discussed in the Communications Server bookshelf and the Configuration Reference manual specifically.

And note that, unless your TSO session is modified to use the same code page, the data in the transferred file may not look like what you expect. This does NOT mean that the data is "corrupt" but merely that you are not displaying it with the correct code page.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Tue Sep 17, 2013 7:16 pm    Post subject: Reply to: FTP - Arabic Characters
Reply with quote

Thanks a lot for the input.
The problem was UTF-8 type was used to generate the txt file which was sent over FTP where as the translation table doesn't exist on the host.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts Trasnmitting a file with french chara... spoorni IBM Tools 1 Wed Feb 24, 2016 8:13 pm
No new posts FTP of french characters in a txt fil... naresh54 IBM Tools 2 Thu Nov 12, 2015 8:12 am
No new posts special characters db2 unload Ashish.Srivastava.123 DB2 10 Thu Jun 25, 2015 12:21 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us