我对SAS世界非常陌生,所以很自然地我正在努力编写我的’Hello World’。这是我的MWE,它给了我语法错误:
/ * SAS Hello World Program * /
/ 带日期的宏 / %…
你有它作为标题,所以你不能使用它作为一个赋值变量,如果你是初学者然后使用
/* this will print in log*/ data _null_; put "hello world"; run; /* or use in datastep by making variable or by using macrovariable*/ %let a= Hello World, today is &Sysday, &Sysdate; data have; var= "Hello world"; var2= "&a"; run; proc print data = have; run;