options orientation = landscape; * The option has changed, but now we need to tell RTF that it changed ; ods rtf; * Now this will be in landscape ; proc print data = sashelp.class; run; ods rtf close;
data out.class ; set sashelp.class ; run ; * try to replace dataset ; data out.class ; set sashelp.class ; run ; * make a new dataset ; data out.shoes ; set sashelp.shoes ; run ;
proc sgrender data=sashelp.class(obs=10) template=rjText; run;
data test1 ; set sashelp.class ; * set entry price based on age ; if age>=13 then price=12.50 ; else price=8 ; run ;
data test2 ; set sashelp.class ; * set entry price based on age ; price=ifn(age>=13,12.50,8) ; run ;
%let incode=%str(data test; set sashelp.class;run;); filename testref temp; data _null_; file testref; put "&incode"; run;
filename testref temp; data _null_; file testref; put 'data test; set sashelp.class;run;'; put '%webout(OPEN)'; put '%webout(OBJ,test)'; put '%webout(CLOSE)'; run;
%mp_assertdsobs(work.out, desc=Test1 - 19 obs from sashelp.class in service result, test=EQUALS 19, outds=work.test_results )
proc reg data=sashelp.class; var Age; model Weight = Height; run; model Weight = Height Age; run; quit;
data myclass; set sashelp.class; where age >= 15; run;