MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem in formating

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Wed Nov 22, 2006 4:26 am    Post subject: problem in formating Reply with quote

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
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Wed Nov 22, 2006 4:53 am    Post subject: Reply with quote

Shankarganesh_gopal,

it looks like the ascii / ebcdic translation table for your FTP doesn't match for the digit you mentioned ?!
Back to top
View user's profile Send private message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Wed Nov 22, 2006 4:57 am    Post subject: Reply with quote

I checked ASCII and ebcdic tables. Document says $ is the equal ebcdic value for ASCII '['. But it didn't worked.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Nov 23, 2006 11:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group