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
 

 

how to compare two strings in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: how to compare two strings in Easytrieve
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: 2150
Location: At my coffee table

PostPosted: Thu May 22, 2008 2:32 pm    Post subject:
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    Post subject: Reply to: how to compare two strings in Easytrieve
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: 2150
Location: At my coffee table

PostPosted: Thu May 22, 2008 8:19 pm    Post subject: Re: Reply to: how to compare two strings in Easytrieve
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    Post subject: Reply to: how to compare two strings in Easytrieve
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    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 member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts fuzzy compare Martylin JCL & VSAM 9 Thu Mar 30, 2017 2:45 pm


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