不卡AV在线|网页在线观看无码高清|亚洲国产亚洲国产|国产伦精品一区二区三区免费视频

學習啦 > 學習電腦 > 工具軟件 > 辦公軟件學習 > Excel教程 > Excel基礎 > sas導入excel數(shù)據(jù)的教程

sas導入excel數(shù)據(jù)的教程

時間: 業(yè)華773 分享

sas導入excel數(shù)據(jù)的教程

  在Excel中錄入好數(shù)據(jù)以后經常需要把整個數(shù)據(jù)給導入到sas中,具體該怎么導入excel數(shù)據(jù)呢?下面是由學習啦小編分享的sas導入excel數(shù)據(jù)的教程,以供大家閱讀和學習。

  sas導入excel數(shù)據(jù)的教程:

  sas導入excel數(shù)據(jù)步驟1:啟動SAS,關閉想要導入數(shù)據(jù)的excel文件

  sas導入excel數(shù)據(jù)步驟2:輸入以下代碼:

  sas導入excel數(shù)據(jù)步驟3:*通過 import 過程讀取外部excel文件建立數(shù)據(jù)集;libname paper1 'e:\paper';proc import out=paper1.paper1 /*輸出的數(shù)據(jù)集名*/ datafile="E:\paperyong\paperdata.xlsx";/*要導入的excel文件的完整路徑和數(shù)據(jù)名,要寫清楚擴展名*/ sheet="sheet2";/*指出電子表格中的那一個表單,就是表單名字*/ getnames=yes;/*指出第一行是否有字段名*/ run;

  sas導入excel數(shù)據(jù)步驟4:點sas右上方 奔跑的小人圖案運行

  sas導入excel數(shù)據(jù)步驟5:得到結果如圖,數(shù)據(jù)導入成功

  sas導入excel數(shù)據(jù)步驟6:打開左邊SAS資源管理管理器查看數(shù)據(jù)

696993