Précédent   Forum du club des développeurs et IT Pro > Logiciels > Solutions d'entreprise > Business Intelligence > SAS > ODS et reporting
ODS et reporting Forum d'entraide sur les fonctionnalités de reporting de SAS : gérer les sorties et graphiques de SAS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 14/01/2013, 17h08   #1
Jack_nicholson
Invité de passage
 
Inscription : mars 2011
Messages : 22
Détails du profil
Informations forums :
Inscription : mars 2011
Messages : 22
Points : 3
Points : 3
Par défaut Proc freq mise en forme

Bonjour,

J'utilise le code sas suivant pour transformer la sortie rtf de la proc freq:
Code :
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
 
proc template; 
define crosstabs Base.Freq.CrossTabFreqs; 
 
row_var_style=rowheader {backgroundcolor=white  VERTICALALIGN=MIDDLE font_weight=bold};
col_var_style=header {backgroundcolor=white  VERTICALALIGN=MIDDLE font_weight=bold};
 
 
define header tableof;
end; 
 
define header rowsheader; 
	text _row_label_ / _row_label_ ^= ' ' ;
	text _row_name_ ;
	style={background=CX99CCFF VERTICALALIGN=MIDDLE font_weight=bold};
end; 
define header colsheader; 
	text _col_label_ / _col_label_ ^= ' '; 
	text _col_name_; 
	style={background=CX99CCFF VERTICALALIGN=MIDDLE font_weight=bold};
end; 
	cols_header=colsheader; 
	rows_header=rowsheader; 
	header tableof; 
end; 
run; 
 
ods rtf file;
ODS NOPROCTITLE; 
options validvarname=ANY;
proc freq DATA=ALL(RENAME=(Sex_var="Sexe"n Age_var="Age"n)) ORDER=DATA;
TABLE "Sexe"n*"Age"n / nopercent nocol norow;
label "Sexe"n=;
label "Age"n=;
run;
ods rtf close;
en pieces jointes, la table que j'obtiens, est-ce que quelqu'un sait comment mettre juste les deux cellules "Total" avec un fond blanc et laisser les header avec un fond bleu?

Merci!
Images attachées
Type de fichier : jpg sas output.jpg (18,5 Ko, 8 affichages)
Jack_nicholson est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 15h33.


 
 
 
 
Partenaires

Hébergement Web