Bonjour,
j'ai toujours beaucoup de mal à exporter des graphiques!
je croyais avoir suivi les conseils pas à pas, et ça ne marche pas.... voici mon code, avez-vous une idée ? merci !!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 proc sort data=adultca_rank_reg; by sex;run; %let low=15;%let CO=74; ods listing; %macro graphtop(sex); filename grafout 'c:\brouillons'; goptions gsfname=grafout gsfmode=replace device=emf; goptions reset=all; Axis1 STYLE=1 WIDTH=1 label= (a=90 'CAUSE OF DEATH'); Axis2 STYLE=1 WIDTH=1 MINOR= (NUMBER=1) order=(0 to 100 by 10) label=('Age-adjusted rates per 100.000'); ; Title1 "First 10 Cancer causes of premature deaths in &sexlabel (&low.-&CO yr) "; Title2 " Belgium 2008-2009, age-adjusted rates"; PROC GCHART DATA=adultca_rank_reg; where sex =&sex and rank<=11 and canclistb ne 10000; where also regioj=-9; *by sex; hBAR canclistb/ SUMVAR=iadjrt_per7 name="rank_&sex" CLIPREF FRAME NOSTAT DISCRETE TYPE=MEAN DESCENDING COUTLINE=BLACK MAXIS=AXIS1 RAXIS=AXIS2 ; format sex sex. canclistb canclistb.; label iadjrt_per7="Age Adjusted Mortality Rate per 100.000" canclistb=''; run;title;footnote; quit; *filename grafout clear; %mend graphtop; %graphtop(1); %graphtop(2); ods listing close; ods html;
Partager