filename g 'c:\sex11.png' ; proc gchart data=sashelp.class ; where age=11 ; pie sex ; run ; filename g 'c:\sex12.png' ; proc gchart data=sashelp.class ; where age=12 ; pie sex ; run ; /* ... Répété pour les âges 13 à 16 ... */ filename g 'c:\sex16.png' ; proc gchart data=sashelp.class ; where age...
filename g 'c:\vbar.png' ; pattern1 image='c:\sex11.png' ; pattern2 image='c:\sex12.png' ; pattern3 image='c:\sex13.png' ; pattern4 image='c:\sex14.png' ; pattern5 image='c:\sex15.png' ; pattern6 image='c:\sex16.png' ; title c=red 'Male ... ' c=green 'Female' ; proc gchart data=sashelp.clas...
data _null_; file out dsd; set sashelp.class; put (_all_) (:); run;
proc template; define statgraph bmi; beginGraph; rangeAttrMap name="ram1"; range min - 0 / rangeColorModel=(green white); range 0 - max / rangeColorModel=(white red); endRangeAttrMap; rangeAttrVar var=eval(BMIDiff(height, weight)) attrVar=bmiDiff attrMap="r...
proc sgrender data=sashelp.class template=bmi; run;
%global ct_list ct_len ; ods output variables = _varlist; proc contents data = sashelp.class ; run; proc sort data = _varlist; by num; run; data _varlist; set _varlist; len_var = length(variable); len_lab = length(label); max_len = max(of len:)...
ods listing close; %let inct=sashelp.class; ods output variables =_ctlist; proc contents data = &inct ; run; proc sort data=_ctlist; by num; run; data _null_; set _ctlist end=eof; i+1; II=left(put(i,2.)); call symputx('ctvar'||II,Variable); if eof t...
options validvarname=any ; %let name1=a @ b ; data x; set sashelp.class ; rename name=%sysfunc(quote(&name1))n ; run; proc sql ; CREATE TABLE A AS select max(length(strip(put(%sysfunc(quote(HEIGHT))n,best32.)))) as LEN from x ; quit;
/* table stops the paneling */ proc print data=sashelp.class; run;
/* This graph stops the paneling */ goptions dev=javaimg xpixels=640 ypixels=480; title1 "A Gchart Output"; footnote1 "with a footnote"; proc gchart data=sashelp.class; hbar age / sumvar=height; run; quit;