Hi,Iam running below code and iam getting syntax error. please help where iam going wrong please. proc sql;
create table work.W5V4AFV as
select
num,year,month
from test
where NOT
(
year=(intnx(month,(today()),-1),year4.)/*i need 2019 */
and
month=(putn((intnx(month,(today()),-1),month2.),z2.))/* i need 10 value for month */
)
&
MDY(month,1,year) >= (intnx(month,(today()),-12,same),date9.) /*12 monrhs ago date */
;
quit; ERROR 200-322: The symbol is not recognized and will be ignored. 34 and 35 month=(putn((intnx(month,(today()),-1),month2.),z2.)) _ _ _ 79 22 22 200 ERROR 79-322: Expecting a ). ERROR 22-322: Syntax error, expecting one of the following: a name, *. ERROR 200-322: The symbol is not recognized and will be ignored. 36 ) 37 38 & ERROR 200-322: The symbol is not recognized and will be ignored. 34 and 35 month=(putn((intnx(month,(today()),-1),month2.),z2.)) _ _ _ 79 22 22 200 ERROR 79-322: Expecting a ). ERROR 22-322: Syntax error, expecting one of the following: a name, *. ERROR 200-322: The symbol is not recognized and will be ignored. 36 ) 37 38 &
... View more