n***p 发帖数: 508 | 1 I kept getting error message when i ran the code below. Can anyone point out
what is wrong? how to modify the code? thanks.
%let Date = 01JAN2006 ;
data _null_;
call symputx("date",left(put(&date,yymmddn8.)));
run; | l***a 发帖数: 12410 | 2 try "&date."d
out
【在 n***p 的大作中提到】 : I kept getting error message when i ran the code below. Can anyone point out : what is wrong? how to modify the code? thanks. : %let Date = 01JAN2006 ; : data _null_; : call symputx("date",left(put(&date,yymmddn8.))); : run;
| s******y 发帖数: 352 | 3 why you need an extra step for creating a M var.
%let Date =%qsysfunc(inputN(01JAN2006,date9), yymmddn8);
%put >&date<;
%let Date =%qsysfunc(putN('01JAN2006'd, yymmddn8));
%put >&date<;
BAOZI please!
out
【在 n***p 的大作中提到】 : I kept getting error message when i ran the code below. Can anyone point out : what is wrong? how to modify the code? thanks. : %let Date = 01JAN2006 ; : data _null_; : call symputx("date",left(put(&date,yymmddn8.))); : run;
|
|