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

Lower case fields


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Thu Jun 25, 2009 9:07 am
Reply with quote

Hi All,
How can we fetch a field with the lower case
for eg: 12566t,12376y,15r896 etc ....... that value can be anywhere from 1 to 6.
This field has been defined as CHAR.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 25, 2009 9:11 am
Reply with quote

for a char field the content case is irrelevant,
if You use it in a where clause just fill the comparison operand with the proper lower case chars, nothing else
db2, or any other dbms, or access method, do not care about content
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: Thu Jun 25, 2009 9:17 am
Reply with quote

Hello,

Accessing these values in db2, vsam, or some other access method should not be an issue (as Enrico mentioned).

Getting the value from the user to use in a query will need to be dealt with. You need to make sure that however these values are entered, they are not automatically switched to upper case.
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Thu Jun 25, 2009 9:18 am
Reply with quote

Enrico,
Thanks for the reply.
Actually those fields are in the database and they were stored in the database with lower case but it should be a Higher case.
for eg Y as y. so i want to retrieve all the records which has the lower case instead of Higher case.
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: Thu Jun 25, 2009 9:24 am
Reply with quote

Hello,

You might consider unloading the table(s), correcting the case problem in the qsam file(s), and then reloading the corrected data.
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 COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Zunit Test case editor error Testing & Performance 4
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
No new posts Converting unpacked fields to pack us... SYNCSORT 4
Search our Forums:

Back to Top