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
 

 

Considering upper and lower case letters as same

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Considering upper and lower case letters as same
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

Site Director


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

PostPosted: Fri Dec 31, 2010 10:56 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Dec 31, 2010 12:11 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Jan 01, 2011 3:14 am    Post subject: Reply to: Considering upper and lower case letters as same
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Summing on Mixed Case Literals Roy Ware SYNCSORT 3 Tue Jan 03, 2017 10:18 pm
No new posts Case insenstive in INCLUDE Condtion smileseenu DFSORT/ICETOOL 2 Mon Feb 15, 2016 8:42 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Translate UPPER CASE to lower case steve-myers PL/I & Assembler 0 Mon Oct 19, 2015 9:33 am


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