View previous topic :: View next topic |
Author |
Message |
Shankarganesh_gopal Beginner
Joined: 24 May 2005 Posts: 36 Topics: 20 Location: chennai
|
Posted: Wed Nov 22, 2006 4:26 am Post subject: problem in formating |
|
|
I have an input file. It contains character '['. When I do FTP the file, it is converted into some other character. Actually, the other party should receive the file with character '['. I tried giving '$' hex '5B' which is equal to '[' ASCII value. That also failed.
Can any one tell, how should I format the data, so that the receiver should see '['.
Thanks,
Shankar. |
|
Back to top |
|
|
bauer Intermediate
Joined: 10 Oct 2003 Posts: 315 Topics: 49 Location: Germany
|
Posted: Wed Nov 22, 2006 4:53 am Post subject: |
|
|
Shankarganesh_gopal,
it looks like the ascii / ebcdic translation table for your FTP doesn't match for the digit you mentioned ?! |
|
Back to top |
|
|
Shankarganesh_gopal Beginner
Joined: 24 May 2005 Posts: 36 Topics: 20 Location: chennai
|
Posted: Wed Nov 22, 2006 4:57 am Post subject: |
|
|
I checked ASCII and ebcdic tables. Document says $ is the equal ebcdic value for ASCII '['. But it didn't worked. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Nov 23, 2006 11:22 pm Post subject: |
|
|
EBCDIC X'AD' translates to an ASCII X'5B'.
In the future, if you insist on using non-standard, non-displayable (read transparent) delimiters/characters in a file that needs to be transferred between different systems, you will continue to run into these types of issues. If doing such a process is absolutely necessary, then it's in your best interest to translate the data into the proper format (i.e. EBCDIC-to-ASCII on the mainframe, or ASCII-to-EBCDIC on a server) before any transfer is attempted. This is the only way to assure the integrity of the data. |
|
Back to top |
|
|
|
|