Re: Compile error

From: Michael Mattias (michael.mattias_at_gte.net)
Date: 03/14/04


Date: Sun, 14 Mar 2004 14:46:44 GMT


"Donald Tees" <donald_tees@nospam.sympatico.ca> wrote in message
news:1MX4c.9$Q16.2532@news20.bellglobal.com...
> KL wrote:
> > Can someone help? I have coded this and can't figure out why I get an
error:
> >
> > EVALUATE SAL-PO-ASKING
> > WHEN SAL-PO-ASKING >= 95
> > MULTIPLY SAL-SLD-P BY .05 GIVING SAL-COMM-PAID
> > COMPUTE SAL-BONUS = (SAL-SLD-P - (SAL-ASKING-P * .95)) * .4
> > ADD SAL-BONUS TO SAL-COMM-PAID
> > WHEN SAL-PO-ASKING >= 94
> > MULTIPLY SAL-SLD-P BY .045 GIVING SAL-COMM-PAID
> Your sytax is wrong ...
>
> evaluate sal-po-asking
> when >= 95
> blah
> when >= 94
> blah blah
> when >= 93

But you could...

 Evaluate true
     when sal-po-asking >=95

     when sal-po-asking >=94 'by the way the greater than is moot here

...

MCM



Relevant Pages

  • Re: Compile error
    ... Donald Tees wrote: ... > Your sytax is wrong ... ... > blah blah ... EVALUATE SAL-PO-ASKING ...
    (comp.lang.cobol)
  • Re: Compile error
    ... In article, "Michael Mattias" ... >> Your sytax is wrong ... ... >> blah blah ... Why is the greater that moot here? ...
    (comp.lang.cobol)