If you are making comparisons in which one comparand has the DATE attribute and the other is a literal, the compiler issues a W-level message. Further compiler action depends on the value of the literal as follows:
dcl start_date char(6) date; if start_date >= '' then /* no windowing */ ... if start_date >= '851003' then /* windowed */ ...