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

Regarding handling of special characters in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sandeep D. Patil

New User


Joined: 29 Jun 2008
Posts: 23
Location: mumbai

PostPosted: Thu Feb 26, 2009 5:17 pm
Reply with quote

Some of the special characters are changing their values randomly every time they are updated or inserted in table(DB2)
Values are as specified below:-
[ ] ! | ^

Can anyone help us to solve above issue?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 26, 2009 5:40 pm
Reply with quote

Random is not a word that I would apply.

I would check out your code table values. You are inputing code table 1, and then writing to db2 tables with code table <>1.
Back to top
View user's profile Send private message
Sandeep D. Patil

New User


Joined: 29 Jun 2008
Posts: 23
Location: mumbai

PostPosted: Mon Mar 02, 2009 2:36 pm
Reply with quote

I am using working storatge variable to insert value into Table.
Eg.
I/P = ] ! | ^
When I insert this value in table it changes to | ] ! ¢

What might be the reason for this and how could I solve?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 02, 2009 8:48 pm
Reply with quote

Hello,

Suggest you look at the values in the program in hex before the insert and then look at the inserted values (from the table) in hex.

As DBZ mentioned, this is not random.

You may have a code page inconsistency or you may have a difference in your mainframe and pc/3270-emulator character set. For example, your example includes a cent-sign (¢). That character is not on my keyboard so to include it here, i used copy/paste. If my memory has engaged this morning, the cent-sign was a Shift-6 on other keyboards, but on this one Shift-6 is the ^.
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 -> DB2

 


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 File Handling COBOL Programming 9
No new posts Handling the numeric data in unstring... COBOL Programming 18
Search our Forums:

Back to Top