Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us