看板 Statistics 關於我們 聯絡資訊
TITLE請註名軟體類別 如[程式] stata SAS [軟體程式類別]: 請填入軟體程式類別,例如:SAS、SPSS、AMOS、R、STATA、EVIEWS...等 SAS [程式問題]: 資料處理、迴歸、敘述統計、logistic、probit...等 資料處理 [軟體熟悉度]: 請把以下不需要的部份刪除 新手 [問題敘述]: 大家好 有看到一個題目如下 19.The SAS data set WORK.ONE contains a numeric variable named Num and a character variable named Char: WORK.ONE Num Char — —- 1 23 3 23 1 77 The following SAS program is submitted: proc print data=WORK.ONE; where Num="1"; run; What is output? 答案是no output is generated. 但是我用自己的code 會有error 但還是會output 全部的observations出來 請問是否此題只是單純問如果where="1"會不成功 但where=1 就會成功的意思嗎? 我的cde: DATA WORK.ONE; INPUT Num Cha $ @@; Cards; 1 23 3 23 1 77 ; /*The following SAS program is submitted:*/ proc print data=WORK.ONE; where Num="1"; run; 謝謝大家了~ -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 8.41.66.201 ※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1540685119.A.A1C.html