libname mycas cas; /* Crée un sous-ensemble du jeu de données SASHELP.CLASS avec un filtre */ data work.filtered_class_local; set sashelp.class (where=(age >= 12)); keep name sex age; run; /* Charge le sous-ensemble dans CAS */ proc casutil; load casdata="filtered_class_local" casou...
data _null_ ; length style $ 17 ; infile list missover ; input @'Styles.' style ; if style>' ' ; * create a folder for the files, then change the drive/folder below; call execute('ods html file="c:\ODS_test\'||strip(style)||'.html" style='||style||';') ; cal...
libname mycas cas; /* Crée une table CAS à partir de sashelp.class */ data mycas.class_data; set sashelp.class; run; /* Exécute une étape DATA multi-threadée sur la table CAS */ data mycas.class_processed; set mycas.class_data; /*_NTHREADS_ est une variable automatique qui affiche le n...
/* Start a row panel, with a column panel in the first cell */ ods tagsets.htmlpanel event=row_panel(start); /* Cell 1 */ ods tagsets.htmlpanel event=column_panel(start); goptions xpixels=240 ypixels=240; proc gchart data=sashelp.class; pie age / sumvar=height; run; quit; proc gchart data=...
/* Cell 3 */ ods tagsets.htmlpanel event=column_panel(start); goptions xpixels=240 ypixels=240; proc gchart data=sashelp.class; pie age / sumvar=height type=mean; run; quit; proc gchart data=sashelp.class; pie age / sumvar=weight type=mean; run; quit; /* Close the column panel */ ods ta...
title1 "This is a table example"; goptions xpixels=340 ypixels=335; proc sort data=sashelp.class out=temp; by sex age; run;
proc sql noprint; select /* Add required SQL syntax here */ from sashelp.class; /* Add %LET statement here */ quit;
data _null_; set sashelp.class end=eof; length student_list $200; retain student_list; student_list = catx('~',student_list,name); if eof then do; call symputx('STUDENT_LIST',student_list); call symputx('NUM_STUDENTS',_n_); end; run;
data _null_; set sashelp.class end=eof; /* Add a CALL SYMPUTX statement to create one of the STUDENTn macro variables. */ if eof then /* Add another CALL SYMPUTX statement to create NUM_STUDENTS. */ ; run;
data _null_; set sashelp.class end=eof; call symputx(cats('STUDENT',_n_),name); if eof then call symputx('NUM_STUDENTS',_n_); run;