View previous topic :: View next topic
|
Author |
Message |
sanjaygkk Currently Banned New User
Joined: 27 Oct 2006 Posts: 1 Location: Bangalore
|
|
|
|
HI all
MY question is i am able to FTP it , but some of the data giving junk value , that too only for COMP fileds , so how to FTP without the loss of data |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Do you understand what code pages are?
An "A" in EBCDIC will translate to an "A" in ASCII without any problem, but a lot of the possible byte configurations translate not so well.
Data is of the form of character, packed decimal and binary; character data translate well, packed and binary does not.
You have to decide, either transfer without translation and the receiver will have to translate the character data or transfer with translation and the sender will have to "un-binarize" and un-pack the numeric date.
Your choice, what'ch go'na do? |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
I would suggest to translate data with all COMP fields to NUMERIC and then FTP the file. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
To successfully and easily transmit mainframe data to unix (or windows) make sure that the file to be transmitted is entirely in text format.
Due to the way individual bytes are converted from EBCDIC to ASCII you will get erroneous/unpredictable results if you transmit any packed or binary data.
Several bit patterns translate into ascii control characters and the target system does not know a "real" control character from a "fake" one. One of the most common is an embedded x'09' (which happens often in packed numbers) and is a tab-character on many target systems.
There are not many applications that do this any more, but if your application chose to use bit-switches (because there were a high number of fields whose value was restricted to yes/no, and disk space was expensive then), those will not transmit correctly.
To repeat, you will be way ahead if you expand all of your numbers on the mainframe and send a clean file to the ascii system. |
|
Back to top |
|
|
|