我試圖將一些SAS代碼從Windows移植到Linux。在Windows上運行的原始代碼有一些設置,稱爲「驅動器」的符號引用被硬編碼到特定目錄,如「C:\ SAS」,但是如果我想將文件結構移動到Linux,我需要此符號引用相對於包含我正在運行的.sas文件的目錄。是否有可能查詢SAS認爲是包含.sas文件的目錄還是設置相對於.sas-file包含目錄的此符號引用。howto設置相對於當前目錄的符號引用
這裏是一個例子。對於信息都./multi_use/datetime.sas和./info確實存在
Proc options option=work;
run;
* This first version works but is hard coded
*%let drive=%str(C:\SAS);
* This version does not work, attempting to set the symbolic reference, relatively.
* This is an attempt to set the symbolic reference "drive" such that is the actual
* directory that the controlling .sas file is located in
%let drive=%str(.);
*********************************************************;
%include "&drive/multi_use/datetime.sas";
libname info "&drive/info";
如何在Linux環境中啓動SAS?你直接調用可執行文件嗎?或者你是通過別名腳本來調用它? –