2016-10-12 5 views
-1
OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 

    PROC IMPORT OUT= Census.taxp_lookupDATAFILE="C:\Users\Dhruv\Desktop\Book1.xlsx" 
        DBMS=xlsx REPLACE; 
       SHEET="tax_group"; 
       GETNAMES=YES; 
      RUN; 

ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/C:\Users\Dhruv\Desktop\/Book1.xlsx. 

excelファイルをsasにインポートする際にこのエラーが発生します。私はあなたが基本的に読み込むデータを指定する必要が私のコードXLSXファイルをSASにインポートする

+0

https://communities.sas.com/t5/General-SAS-Programming/ERROR-Physical-file-does-not-exist-opt-sasinside-SASConfig-Lev1/td-p/147659 –

+0

http://stackoverflow.com/q/28426511/1919583 – Reeza

答えて

0

に変更すること何が必要です:DATAFILE = ""

/** Import an XLSX file. **/ 

PROC IMPORT DATAFILE="<Your XLSX File>" 
     OUT=WORK.MYEXCEL 
     DBMS=XLSX 
     REPLACE; 
RUN; 

/** Print the results. **/ 

PROC PRINT DATA=WORK.MYEXCEL; RUN; 

here is how to find the right path for your folder

Video on how to find the excel file and find the right path for SASstudio

PS:質問に答えるには:「基本的に、ファイルは既にMy Foldersに入れておく必要がありますローカルのデスクトップファイルへのパスではなく、インポートする必要があるサーバーよりもSAS University Editionを選択するかどうかわかりません。右の図のようなフォルダにインポートしてください。 SASメーカー」

Screen for import in SAS Studio

関連する問題