Hi All, I have a macro variable like below which is triggered in my first program. %let ddmmyyyy = "28Feb2019"d; On another program inside a macro i have a simple IF statement, see below: %if &ddmmyyyy. >= '31DEC2018'd %then %do; I expect this to return a TRUE value however when i run the macro, the IF statement returns FALSE. See below for the extract from the LOG. MLOGIC(My_Macro): Beginning execution. SYMBOLGEN: Macro variable DDMMYYYY resolves to "28Feb2019"d MLOGIC(My_Macro): %IF condition &ddmmyyyy. >= '31DEC2018'd is FALSE MLOGIC(My_Macro): Ending execution. It seems to return false if the days are less than 31 as it runs as expected for 31/12 and 31/01. Does anyone know why this is happening? I have a solution in place but would like to understand why this is happening. Thanks Using SAS EG, version 9.2
... View more