早教吧 育儿知识 作业答案 考试题库 百科 知识分享

sas中的cards与datalines区别吗?如题,貌似没发现有什么区别,上网搜索也没找到有用的说法.老外论坛上貌似也说这两个是相同的:ReadingdatainlinemeansthattherawdataispartoftheSASprogram.Youenterthe

题目详情
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.
▼优质解答
答案和解析
你好,听professor提过两者并没有区别.叫cards是因为以前科技还没这么发达的时候data是储存在card上.当时professor曾经开玩笑说如果你在SAS中用cards而不是datalines,那么别说是我的学生,因为cards那是一种比较老旧的说法,当然只是个玩笑.但是我们一般都习惯用datalines.希望有所帮助.
看了 sas中的cards与dat...的网友还看了以下: