Re: How to find the greatest of two numbers without using the comparison operators?



On Fri, 31 Aug 2007 06:41:03 -0000, Aparajita
<aparajita.mohanty@xxxxxxxxx> wrote:

Hi,

I want to find the greatest of two given numbers say 'A' and 'B.
The condition is that I should use the IF clause but not comparison
operators like '<', '>','=' etc.
Is there any other operator in COBOL by which we can compare two
numbers.

Thanks!
Aparajita

Can't use operators? How about words? You know like:

IF A IS GREATER THAN B
Then do something.

Regards,
////
(o o)
-oOO--(_)--OOo-

"I'm not afraid of dying. I just don't want to
be there when it happens."
--Woody Allen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Remove nospam to email me.

Steve
.



Relevant Pages

  • Re: Engineers Right of FIrst Refusal?
    ... Why not just ask the band or their backer why they feel that clause is ... important to them and what they're afraid of if you don't sign the ...
    (rec.audio.pro)
  • Re: SQL query help
    ... Put your ORDER BY clause outside of the sub-select: ... Brian Peasland ... Remove the "nospam." ...
    (comp.databases.oracle.tools)
  • Re: So essentially Mark Diputsur ruined it
    ... I didn't see the 24 hour clause until *after* I made my guess... ... Patrice Lumumba way before the 24 hour period had expired. ... Mark, I'm afraid I just cannot believe anything you say. ...
    (rec.gambling.poker)
  • Re: Form not allowing entry
    ... >> far as I can see, there are no glaring issues... ... >> FROM tblSuppliers INNER JOIN (tblAgInvs INNER JOIN ... >> It still doesn't make much sense to me I'm afraid... ... >replace the HAVING clause with a WHERE clause. ...
    (microsoft.public.access.forms)
  • Re: merging two rows
    ... I assume that since you referenced the GROUP BY clause, then you are talking about doing this in SQL. ... Many aggregate functions do just this and you are only required to use the GROUP BY clause when you are returning columns that will not participate in the aggregation. ... Remove the "nospam." ...
    (comp.databases.oracle.misc)