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

FTP - Arabic Characters


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 17, 2013 2:32 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 17, 2013 4:48 pm
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
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 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 special characters pipes "|"... COBOL Programming 1
Search our Forums:

Back to Top