统计211

标题: sas中的cards与datalines区别吗? [打印本页]

作者: lisheng626    时间: 2013-3-12 11:21
标题: sas中的cards与datalines区别吗?
如题,貌似没发现有什么区别,上网搜索也没找到有用的说法。
老外论坛上貌似也说这两个是相同的:
Reading data inline means that the raw data is part of the SAS program. You enter the actual data points inside the PROGRAM EDITOR.  The DATALINES statement indicates to SAS that DATA step statements are completed and the next line contains real data. Notice that the lines of data do not  end in a semicolon. Instead of the DATALINES statement you can also use the CARDS statement. The two are equivalent. CARDS stems from way back when reading data meant feeding punch cards. The lone semicolon should be pointed before the PROC PRINT statement.
作者: henryyhl    时间: 2013-7-21 21:20
这两个语句是完全一样的吧,好像cards是以前人们计数用的一种卡片,后来有的datalines;
作者: 国奇    时间: 2013-7-21 21:56
木有区别,一样的命令




欢迎光临 统计211 (http://www.tj211.com/) Powered by Discuz! X3.2