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

compare data in rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Jul 22, 2009 4:11 pm
Reply with quote

Hi,
I want to compare two datas ,
data1=5.00
data2=5.0
I have used the compare build in function, but the result was a mismatch,
is there any build in function to compare only the actual values or else any other mean to solve this
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 22, 2009 4:26 pm
Reply with quote

Have you tried ...........................

IF DATA1 = DATA2
Back to top
View user's profile Send private message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Jul 22, 2009 4:36 pm
Reply with quote

thanks a lot.
I hav tried it, its working
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 22, 2009 4:43 pm
Reply with quote

why not try
IF data1 = data2
then
else
if data1 < data2
then
else
if data1 = data2
then
end
end
end

what was the mismatch? that you are talking about?
the compare built-in function returns a zero of the strings are identical
otherwise you get the offset of the first offending char.

in an IF Data1 = Data2 are considered equal.

in an IF Data1 == Data2 are considered not equal.

maybe you want 'strict comparision operator'.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 22, 2009 5:06 pm
Reply with quote

Or you could have used the pad character in the compare statement.


Quote:
maybe you want 'strict comparision operator'.

Or maybe the super deluxe dominatrix comparison operator icon_pray.gif
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top