2017-05-24 36 views

回答

0

如果您有本地SAS數據集,則可能是本地安裝了Base SAS--在這種情況下,您可以通過SAS/Connect(如果已安裝)上載數據。請確保您選擇的服務器在EG程序編輯器中爲「本地」,並運行以下(根據您的站點詳細信息進行修改):

/* prepare credentials */ 
%let remote = your.server 7551; 
%let sasuser = &sysuserid; 
%let saspass={sas002}BA7B9D061CA7F9601F317DCA06C4CFCC; 
options comamid=tcp remote=remote; 

/* signon and assign remote library */ 
signon sasuat nocscript user=&sasuser password="&saspass"; 
rsubmit; 
libname example (work); 
endrsubmit; 
libname example (example) server=remote; 

/* add a local SAS dataset to the remote library */ 
data example.ex1; 
    set sashelp.class; 
run; 
+0

謝謝,艾倫。你是對的。但是,我們正在慢慢遷移到SAS EG,並且不會續訂我們的Base SAS許可證。因此,我們將來不會依賴Base SAS。 –

+0

另一種選擇是使用卡片文件創建數據集(例如,在EG中運行.sas程序以直接在服務器上創建目標數據集)。如果卷很小,這隻有真正的可行性!在這裏看到宏:https://github.com/macropeople/macrocore/blob/master/base/mp_ds2cards.sas。這是記錄在這裏:https://rawsas.github.io/coredoc/files.html –

相關問題