Lesson 16, Appendix I: How to Create a SAS Profile and a SAS ODA Account¶

(Please read the instructions provided in any one of the following two links.)

Getting Started with SAS On-Demand for Academics

SAS ON-DEMAND FOR ACADEMICS (SAS ODA) AND SAS PROFILE INSTRUCTIONS

Run the following SAS code to find your SAS version and components list.

In [ ]:
proc product_status; 
run;
In [ ]:
proc setinit; 
run;

Someone wants to know the SAS version and the operating system under which SAS executes on your end. Run the two lines of code below to write the information to your SAS log.

In [ ]:
options nodate nonotes nosource nonumber;
%put SAS Version: &SYSVLONG4;
%put Host Info:   &SYSHOSTINFOLONG;
In [ ]:
options nodate nonotes nosource nonumber;
%put SAS Version: &SYSVLONG4;
%put Host Info:   &SYSHOSTINFOLONG;
%put Site ------> &SYSSITE;
%put Release ---> &SYSVER (&SYSVLONG);
%put System ----> &SYSSCP (&SYSSCPL);
%put Bitness ---> &SYSADDRBITS;
%put SAS Mode --> &SYSPROCESSNAME ;
%put Host ------> &SYSTCPIPHOSTNAME ;
%put Host Info ------> &SYSHOSTINFOLONG;

proc options option=SASUSER;
run;

proc options option=CONFIG value;
run;

proc options option=ENCODING value;
run;

proc options option=MEMSIZE value;
run;

%put _AUTOMATIC_;
In [ ]:
options nodate nonotes nosource nonumber;
%macro getInfo;
  options nosyntaxcheck ;
  *LIBNAME _ALL_ LIST;
  %put Site Number: &syssite ;
  %put Host OS: &sysscp; %put &sysscpl;
  %put Hostname: &systcpiphostname ;
  %put Process: &sysprocessname ;
  %put SAS Version: &sysvlong ;
  %let sasroot=%sysget(SASROOT) ;
  %put SASROOT: &sasroot ;
  %put USER: &sysuserid ;
  %put Bitness: &SYSADDRBITS ;
  %put Username: %SYSGET(USERNAME) ;
  %put Random: %SYSGET(SAS_NO_RANDOM_ACCESS) ;
  %put This job started on &sysdate at &systime;
%mend ;
%getInfo ;

PROC OPTIONS OPTION=RLANG; RUN; checks whether SAS was started with the RLANG capability enabled for running R code inside PROC IML.

RLANG enables SAS to execute R language statements, thereby enabling R. If it says NORLANG, then SAS was not started with that option, and R submit blocks will not work until SAS is restarted with RLANG enabled.

RLANG = SAS can execute R language statements in PROC IML. NORLANG = that feature is disabled.

In [12]:
*C:\Program Files\SASHome\SASFoundation\9.4\sasv9.cfg;
proc options option=RLANG;
run;
                                                           The SAS System

    SAS (r) Proprietary Software Release 9.4  TS1M7

 RLANG             Enables SAS to execute R language statements.
                                                           The SAS System

E3969440A681A2408885998500000014
In [10]:
proc iml;
submit / R;
x <- 3
print(x)
endsubmit;
quit;
SAS Output

The SAS System


[1] 3                                                                                                                               

In [ ]: