Let me do a take on this. Though the other suggestions have been excellent.
You want to write a program where, if the user inputs a month, what will be returned will be what is considered the Astrological sign for that month.
This is a bit illogical, as the astrological signs mostly spread out between various months. But I am assuming that your assignment arbitrarily assigns "Aquarius" to January, "Pisces" to February, etc. So if a user were to enter "January," the program would return "Aquarius."
The way I would do it is to simply make a field which will accomdate the user-entry of the month.
01 MONTH-INPUT PIC X(3) VALUE SPACES.
Then code a series of 88 values such as:
01 SIGN-OUTPUT PIC X(15).
88 AQUARIUS-OUTPUT VALUE 'AQUARIUS'.
88 PISCES-OUTPUT VALUE 'PISCES'.
88 ARIES-OUTPUT VALUE 'ARIES'
And etc. for all the other signs.
Then, in the procedure division, code something like the following:
EVALUATE MONTH-INPUT
WHEN 'JAN'
SET AQUARIUS-OUTPUT TO TRUE
WHEN 'FEB'
SET PISCES-OUTPUT TO TRUE
And so forth, for each of the months and outputs. At the end, in case the user mistakenly enters something other than a month, make sure to code
WHEN OTHER
DISPLAY ERROR-MESSAGE [whatever your error message is]
END-EVALUATE.
Then have whatever value has been set to TRUE be displayed on the user's screen.
Hope this helps, Nina Too