Jul 20, 2024
proc sort
with and without macros%
for calling a macro, &
for calling macro variables%macro macro_name;
sas_code
%mend macro_name;
%macro_name;
%macro print;
proc print data=sashelp.class;
run;
%mend print;
%print;
sashelp.class
dataset%let var = value;
%put &var;
%local var; %global var;
%macro test(var);
data new;
set old;
run;
%mend test;
%include
to read and execute SAS statements from an external file%include 'path_to_file.sas';
%eval
, %sysevalf
%scan
, %substr
, %index
%if-%then/%else
%do-%while
, %do-%until
mprint
, mlogic
, symbolgen
proc sql;
create table my_table as
select * from existing_table;
quit;
.emf
, .png
, etc.libname
for permanent storage