View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you tried it in binary format |
|
Back to top |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Tried that type, the whole file looks corrupted. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
|