View previous topic :: View next topic
|
Author |
Message |
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
Hi All..
I don't have teh resources as of now to test this so asking you all..
Can i compare 2 variables which are Comp-3 and comp by pic clause and expect a correct comparison always ..
here's there def.
A PIC S9(4) COMP-3.
B PIC S9(4) COMP.
If A equal B
###
end-if. |
|
Back to top |
|
|
Mathiv Anan
Active User
Joined: 23 Jul 2008 Posts: 106 Location: USA
|
|
|
|
If A and B have same values, then your IF condition will be true.
What is the problem in it? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
See the following for your answer: Language Reference Manual, Conditional Expressions, General Relation Conditions. |
|
Back to top |
|
|
|