楼主: slimdell
814 1

DD's SAS notes 28Aug2012 [推广有奖]

  • 0关注
  • 19粉丝

已卖:2049份资源

副教授

76%

还不是VIP/贵宾

-

TA的文库  其他...

移动医疗

大数据与可视化

医药行业分析

威望
0
论坛币
19053 个
通用积分
605.6981
学术水平
47 点
热心指数
58 点
信用等级
42 点
经验
7016 点
帖子
580
精华
0
在线时间
1266 小时
注册时间
2012-8-10
最后登录
2021-4-25

楼主
slimdell 发表于 2012-8-28 12:34:08 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
28Aug2012:
Special SAS Data Sets:
Null Data Sets


If you want to execute a DATA step but do not want to create a SAS data set, you can specify the keyword _NULL_ as the data set name. The following statement begins a DATA step that does not create a data set:
data _null_;
Using _NULL_ causes SAS to execute the DATA step as if it were creating a new data set, but no observations or variables are written to an output data set. This process can be a more efficient use of computer resources if you are using the DATA step for some function, such as report writing, for which the output of the DATA step does not need to be stored as a SAS data set.

Default Data Sets


SAS keeps track of the most recently created SAS data set through the reserved name _LAST_. When you execute a DATA or PROC step without specifying an input data set, by default, SAS uses the _LAST_ data set. Some functions use the _LAST_ default as well.
The _LAST_= system option enables you to designate a data set as the _LAST_ data set. The name you specify is used as the default data set until you create a new data set. You can use the _LAST_= system option when you want to use an existing permanent data set for a SAS job that contains a number of procedure steps. Issuing the _LAST_= system option enables you to avoid specifying the SAS data set name in each procedure statement. The following OPTIONS statement specifies a default SAS data set:
options _last_=schedule.january;

Automatic Naming Convention

If you do not specify a SAS data set name or the reserved name _NULL_ in a DATA statement, SAS automatically creates data sets with the names DATA1, DATA2, and so on, to successive data sets in the WORK or USER library. This feature is referred to as the DATAn naming convention. The following statement produces a SAS data set using the DATAn naming convention:
data;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:notes note Aug G20 not

知乎专栏/微信公号同名:煮酒烹茶读书

沙发
slimdell 发表于 2012-8-28 13:30:54
Special SAS Name Lists:
Special SAS name lists include
  1. _NUMERIC_
复制代码


specifies all numeric variables that are already defined in the current DATA step.

  1. _CHARACTER_
复制代码


specifies all character variables that are currently defined in the current DATA step.

  1. _ALL_
复制代码

specifies all variables that are currently defined in the current DATA step.
知乎专栏/微信公号同名:煮酒烹茶读书

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-9 13:59