Date: Fri, 10 Nov 2000 08:05:08 -0500
Reply-To: Henrik Mohnssen <hm155@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Henrik Mohnssen <hm155@HOTMAIL.COM>
Subject: Re: Code that doesn´t work
Content-Type: text/plain; charset=ISO-8859-1
/*Here comes examplecode that doesn´t work.*/
data dataset;
length name $12 name2 $12;
input name name2 age height;
cards;
Thanks For 1 2
Helping Me 3 4
With ODS/RTF 5 6
;
run;
proc template;
define style newstyle;
parent = Styles.sasdocPrinter;
replace color_list /
"bg" = white
"fg" = black
"bgH" = white
"link" = blue;
style header/
font_weight = bold
font_size = 10pt
font_face = "Helvetica"
just = left;
style systemtitle/
font_weight = bold
font_size = 10pt
font_face = "Helvetica"
just = center;
style footer/
font_weight = bold
font_face = "Helvetica"
just = right;
style var1 /
cellwidth = 200
font_size = 10pt
font_face = "Helvetica";
style var2 /
cellwidth = 200
font_size = 10pt
font_face = "Helvetica";
style var3 /
cellwidth = 100
font_size = 10pt
font_face = "Helvetica";
style var4 /
cellwidth = 100
font_size = 10pt
font_face = "Helvetica";
end;
define table helltab;
column name name2 age height;
define footer fot;
text "Helvetica";
end;
define column a;
style = var1;
header = "Jag";
end;
define column b;
style = var2;
header = "Kommer";
end;
define column c;
style = var3;
header = "Från";
end;
define column d;
style = var4;
header = "Sverige";
end;end;
run;
ods rtf file="c:\temp\Helvetica.rtf"
style=newstyle;
options orientation=landscape;
data _null_;
set dataset;
file print ods=(template='helltab'
columns=( a=name
b=name2
c=age
d=height
));
title 'Thanks for helping me';
put _ods_;
run;
ods rtf close;