摘要:
系统宏变量 /*系统宏变量*/ /*不能在data步同一行创建宏变量*/ footnote "report on &sysdate ,&sysday , &sysdate9"; *must be double qutation mark; data sasuser.talent99; set sas
阅读全文
posted @ 2019-11-13 23:39
be·freedom
阅读(645)
推荐(0)
摘要:
array sales{4} q1-q4; array sales{2:6} q2-q6; array sales{*} _numeric_; array sales{*} _character_; array sales{*} _all_; array fruit{*} apples pears
阅读全文
posted @ 2019-11-11 23:30
be·freedom
阅读(682)
推荐(0)
摘要:
data work.earning; /*loop只发生在data步*/ value=2000; do year=1 to 20; interest=value*0.075; value+interest; /*year=21*/ end; run; proc print data=earning;
阅读全文
posted @ 2019-11-11 10:38
be·freedom
阅读(804)
推荐(0)
摘要:
editor里面搜 num,可以出现行号。 Ctrl+F2做标记。
阅读全文
posted @ 2019-11-11 10:19
be·freedom
阅读(1125)
推荐(0)
摘要:
libname dbdeux odbc /*指定一个以odbc版本的逻辑库*/ user=cestmoi using=sesame db=receipts connection=globalread dbindex=yes dbconinit='exec update_proc'; proc pri
阅读全文
posted @ 2019-11-10 17:25
be·freedom
阅读(443)
推荐(0)
摘要:
data sasuser.agency99; set sasuser.talent; length state $10; state=scan(address2,2,','); *提取由comma分割后list中的第二个元素,第三个参数可以不写,默认好多个特殊符号; run; /*连着多个被指定的d
阅读全文
posted @ 2019-11-10 14:28
be·freedom
阅读(960)
推荐(0)
摘要:
data sasuser.talent10; set sasuser.talent; month=month(lasthried); where month=10; run; /*sum等算数函数可以直接加不是numeric类型的变量,会建立一个临时变量将char变成num,但是where不行*/
阅读全文
posted @ 2019-11-10 14:27
be·freedom
阅读(2746)
推荐(0)
摘要:
proc sql; select empid,jobcode,salary, /*变量用comma隔开*/ salary*.06 as bonus /*创建新变量*/ from sasuser.payrollmaster where salary<32000 order by jobcode; qu
阅读全文
posted @ 2019-11-06 21:54
be·freedom
阅读(218)
推荐(0)
摘要:
proc tabulate data=sasuser.admit; class sex; var height weight; table sex, height*mean height*sum weight*mean weight*sum / box = {style = {background
阅读全文
posted @ 2019-11-05 13:41
be·freedom
阅读(706)
推荐(0)
摘要:
proc tabulate data=clinic.stress2; var resthr maxhr ; table mean*(maxhr resthr); run; proc tabulate data=clinic.stress2; var resthr maxhr ; table mean
阅读全文
posted @ 2019-10-31 23:20
be·freedom
阅读(1172)
推荐(0)