hi All, i'm in truble subtracting "date" (from %Let) with another "date" field.... following is showed the code definition... %let rundt = %sysfunc(date(),date9.) --- --- select 663 NDG_OPERATORE_ECONOMICO, 664 COD_TIPO_ORG, 665 COD_FORMA_GIURIDICA, 666 DTA_NAS, 667 rundt. - DTA_NAS as delta_date, - 22 668 case when rundt. - DTA_NAS >= 540 then 'NO_Start_UP' - 22 ERROR 22-322: Syntax error, expecting one of the following: un nome, *. 669 else 'SI_Start_UP' 670 end AS Start_UP 671 672 673 FROM ANGRFC.ANA_OPERATORE_ECONOMICO 674 GROUP BY 1,2,3,4,5 - thank's in advance for your support and suggestions Pio Piccinin
... View more