Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Regarding handling of special characters in DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Regarding handling of special characters in DB2
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    Post subject:
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    Post subject: Reply to: Regarding handling of special characters in DB2
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

Site Director


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

PostPosted: Mon Mar 02, 2009 8:48 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts ON ERROR handling soundarr PL/I & Assembler 2 Wed May 11, 2016 3:37 am
No new posts Check special resource availability w... pinimo JCL & VSAM 8 Fri Apr 15, 2016 8:18 pm
No new posts Exception Handling in Native Stored P... Mariraj DB2 1 Thu Feb 25, 2016 4:08 am
No new posts Trasnmitting a file with french chara... spoorni IBM Tools 1 Wed Feb 24, 2016 8:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us