Page 1 of 1

Need help for Logic

Posted: February 20th, 2019, 7:54 am
by Socio
Hi greeting to all

Is it possible to have a logic for a variable at a same time like -
where one is > 2 and another is 98 (don't know) to be accepted.

PROC Q25
if $>2 THEN
ERRMSG ("%D CANNOT BE REQUIRED NUMBER", Q25);
REENTER;
ENDIF;

Note: I want to let it accept 98 also after if $>2.

Thank you.

Re: Need help for Logic

Posted: February 20th, 2019, 9:10 am
by romi237
try some thing like this

PROC Q25
if $>2 and $ <> 98 THEN
ERRMSG ("%D CANNOT BE REQUIRED NUMBER", Q25);
REENTER;
ENDIF;

Re: Need help for Logic

Posted: February 21st, 2019, 12:30 am
by Socio
Hi Romi237

Thanks