View previous topic :: View next topic
|
Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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. . .
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for posting your approach
d |
|
Back to top |
|
|
|