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

how to compare two strings in Easytrieve


IBM Mainframe Forums -> CA Products
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 May 22, 2008 2:12 pm
Reply with quote

Hi,
i have an input file which has values from A to Z
and i am fetching a value through a cursor which has values from A to Z.
now if the one in the input is greater than the fetched one then i need that alphabet.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu May 22, 2008 2:32 pm
Reply with quote

More information is needed, examples? code? anything beyond
Quote:
i have an input file which has values from A to Z
and i am fetching a value through a cursor which has values from A to Z.
now if the one in the input is greater than the fetched one then i need that alphabet.
would be helpful.....
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Thu May 22, 2008 2:51 pm
Reply with quote

i have an input file
00000000000000000A00000000000000000
00000000000000000Z00000000000000000
00000000000000000W00000000000000000
like this and
i am using a DB2 cursor & i am fetching a value which has codes like A to Z
now i want to compare the one in the input file with the one i am fetching
if the i/p file has A and the one i fetched is B then i dont need it
if the i/p file has Z and the one i fetched is A then i need that value
where the value for A=1,B=2.......Z=26.
i hope this is clear
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu May 22, 2008 8:19 pm
Reply with quote

anandinmainframe wrote:
i have an input file
Code:
00000000000000000A00000000000000000
00000000000000000Z00000000000000000
00000000000000000W00000000000000000
like this and
i am using a DB2 cursor & i am fetching a value which has codes like A to Z
now i want to compare the one in the input file with the one i am fetching
if the i/p file has A and the one i fetched is B then i dont need it
if the i/p file has Z and the one i fetched is A then i need that value
where the value for A=1,B=2.......Z=26.
i hope this is clear
If i/p > fetch then ignore.
If i/p < fetch then use.
The hex characters are have values, you don't need to convert them, unless you are trying to avoid the non alphabetic ones....
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Fri May 23, 2008 9:05 am
Reply with quote

Hi All,
Thank you for your support
the issue is solved icon_smile.gif by using an internal table.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top