Search Results

158 résultats trouvés Page 5 / 16
Code SAS
Voir

Grouping Rows in a Report with PROC PRINT

title "Listing of SASHELP.CLASS Grouped By Age (BY statement)"; proc print data=class_sort; by Age; run;

Code SAS
Voir

Grouping Rows in a Report with PROC PRINT

title "Listing of SASHELP.CLASS Grouped By Age (BY and ID statements)"; proc print data=class_sort; by Age; id Age; run; title;

Code SAS
Voir

DataGridProvider

%macro defaults ; %if %symexist(dset)=0 %then %do; %global dset; %let dset=sashelp.class; %end; %if ^%symexist(start) %then %do; %global start; %let start=0; %end; %if ^%symexist(limit) %then %do; %global limit; %let limit=160; %end; %mend defaults; %defaults

Code SAS
Voir

Test Macro for Cross-Referencing

%local l_obs l_title; %let l_obs = 4; /* n_obs set to 4 */ %let l_title =A Test with SASHelp.Class;

Code SAS
Voir

Test Macro for Cross-Referencing

data test; set sashelp.class; run;

Code SAS
Voir

Exporting Data to CSV

PROC EXPORT DATA= sashelp.class OUTFILE= "&path\data\class.csv" DBMS=csv REPLACE; RUN;

Code SAS
Voir

Export SASHELP.CLASS data to CSV

/********************************************************************** * PRODUCT: SAS * VERSION: 9.1 * CREATOR: External File Interface * DATE: 11APR09 * DESC: Generated SAS Datastep Code * TEMPLATE SOURCE: (None Specified.) **********************************...

Code SAS
Voir

DATA Step execution example with end-of-file variable

data a; if eof then put total=; set sashelp.class end=eof; end=eof; total+age; put 'last ' age= total= eof=; run;

Code SAS
Voir

Automated Data Comparison Macro

options nomprint nomlogic nosymbolgen; * Build an example data set with some differences; data class2; set sashelp.class; if _n_=3 then sex = 'G'; if _n_=3 then height=12; if _n_=5 then age = 45; run;

Code SAS
Voir

Automated Data Comparison Macro

* compare the two data sets; %autocompare(base=sashelp.class, compare=class2, bylist=name, varlist=age height sex)