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

Considering upper and lower case letters as same


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Fri Dec 31, 2010 10:27 am
Reply with quote

I have a input file having data in Small and Upper case.
When i read the data both types of cases should be considered same.
Is there any logic where the above condition can be considered - like using the ascii code?
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: Fri Dec 31, 2010 10:56 am
Reply with quote

Hello,

For some reason, this "Easytrieve" topic (a rather horrible subject/title for a topic as it tells nothing) is posted in the COBOL part of the forum. . .
icon_confused.gif

Suggest you clarify what you have (showing a little bit of sample data), what you want to do with this, and what language(s) you are using to do this.

Quote:
like using the ascii code?
FWIW - the hex for ascii upper and lower case values is different also - they are just not the same as ebcdic.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Fri Dec 31, 2010 11:00 am
Reply with quote

My input file has following data from coloum 120 - 130
DUAL PROC
or
dual proc

when such a case occurs i want to move data 'DUA' at coloum number 84-86

For case 1- DUAL PROC proper movement is done
But case 2 - dual proc/Dual Proc there is error.
I want for case 2 in eazytrieve same kind of processing.
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: Fri Dec 31, 2010 12:11 pm
Reply with quote

Hello,

To move upper-case values, you need to convert from lower to upper case within your code.

Define an array with the lower-case and the upper-case values and within a loop, convert from lower to upper.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Fri Dec 31, 2010 2:08 pm
Reply with quote

Hey thanks for your reply.
I have used the following logic.
1.Moving the input data into table
2.Reading the data using subscript
3. Converting each lower case to upper case value.

Thanks
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: Sat Jan 01, 2011 3:14 am
Reply with quote

Good to hear it is working - thank you for posting your approach icon_smile.gif

d
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 -> CA Products

 


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 usage of CASE in WHERE clause DB2 10
No new posts COBOL -DB2 SQL code to have GROUP BY ... DB2 21
No new posts RFE: DB2 support for mixed case names. DB2 0
Search our Forums:

Back to Top