Data Name = to more than one number

From: KL (klbjornme_at_aol.com)
Date: 02/10/04


Date: 9 Feb 2004 20:10:20 -0800

I need to know how to code when I have a data name that I want to use
in an IF statement, but make it equal to more than one number. Is
there an easier way to do this, other than the way I have in the
following?

IF ORDER-ITEM-SERIES = '1' OR ORDER-ITEM-SERIES ='2'
    PERFORM FIRST-DISC
ELSE
    IF ORDER-ITEM-SERIES = '3' OR ORDER-ITEM-SERIES = '4'
ORDER-ITEM-SERIES = '5'
        PERFORM SECOND-DISC
    ELSE
        CONTINUE
    END-IF.
END-IF.

As you can see, the nested IF statement becomes longer than 72, which
makes it harder to code. I am just learning (well relearning, but
it's been over 10 years). Any help would be greatly appreciated.

KL



Relevant Pages