Windows에서 Linux로 일부 SAS 코드를 이식하려고합니다. Windows에서 실행되는 원래 코드는 "drive"라는 심볼릭 참조가 "C : \ SAS"와 같은 특정 디렉토리에 하드 코딩 된 설정을 가지고 있습니다. 그러나 파일 구조를 Linux로 이동하려면이 기호 참조가 필요합니다. 내가 실행중인 .sas 파일이 들어있는 디렉토리와 관련이 있습니다. SAS가 .sas 파일이 들어있는 디렉토리라고 생각하는 것을 쿼리하거나 .sas 파일 contaning 디렉토리와 관련하여이 기호 참조를 설정할 수 있습니까?howto는 현재 디렉토리를 기준으로 심볼릭 참조를 설정합니다.
다음은 예입니다. 액세스가 그때는 아마 뭔가를 노크 수 OS 레벨 명령을 발행 업을 설정 한 경우 정보를 모두 ./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를 어떻게 시작합니까? 실행 파일을 직접 호출하고 있습니까? 아니면 별칭이 지정된 스크립트를 통해 호출하고 있습니까? –