Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I keep getting a warning when I compile with this code:
001254 VALIDATE-DAY-MAX.
001255 IF VALID-MONTHS-P
001256 IF 30-DAY-MONTH-P AND ST-PURCHASE-DAY <= 30
001258 OR 31-DAY-MONTH-P AND ST-PURCHASE-DAY <= 31
001260 OR FEBRUARY-P AND ST-PURCHASE-DAY <= 29
001262 ELSE
001263 MOVE DAY-P-MSG TO ERROR-MSG
001264 PERFORM WRITE-ERROR-LINE
001265 END-IF
001274 END-IF.
However, the program DOES compile and it gives the results needed. It just gives a warning(at line 001262). I don't really need a fix(if you've some bug about actually answering), but I would like to know if someone can spot the flaw with this?
Thanks for any input!!!
I keep getting a warning when I compile with this code:
001254 VALIDATE-DAY-MAX.
001255 IF VALID-MONTHS-P
001256 IF 30-DAY-MONTH-P AND ST-PURCHASE-DAY <= 30
001258 OR 31-DAY-MONTH-P AND ST-PURCHASE-DAY <= 31
001260 OR FEBRUARY-P AND ST-PURCHASE-DAY <= 29
001262 ELSE
001263 MOVE DAY-P-MSG TO ERROR-MSG
001264 PERFORM WRITE-ERROR-LINE
001265 END-IF
001274 END-IF.
However, the program DOES compile and it gives the results needed. It just gives a warning(at line 001262). I don't really need a fix(if you've some bug about actually answering), but I would like to know if someone can spot the flaw with this?
Thanks for any input!!!