码迷,mamicode.com
首页 > 其他好文 > 详细

SAS ESCAPECHAR /SAS REPORT

时间:2020-07-25 11:27:42      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:esc   report   fonts   column   div   stp   pac   span   back   

 

 

 

/*先定义个三线表*/
proc template;
    define style work.threeline;
        parent=styles.rtf;
        class table/ frame=hsides rules=group borderspacing=0pt;
    end;
run;

option orientation=landscape ps=30 ls=80 nodate nonumber nobyline;
ods path work.templat(update) sashelp.tmplmst(read);
ods escapechar=~;  /*  遇到~就转译*/

ods _all_ close;

ods rtf file=‘.\file.rtf‘ style=work.threeline;

title1 color=lightbule ‘~{thispage} of ~{lastpage}‘;  /* 用法一:~显示页码*/

title2 ~S={color=red fontsize=20pt} page ~S={foreground=blue} ~{pageof} ; /*~S调用样式*/

title4 color=lightblue {\field{\fldinst{page}}};  /*VBA控制页码*/

title5 ~{style [color=purple fontsize=10pt ] ~{unicode 263B}   ~{super A} ~{sub B}}; /*多层嵌套用法*/

title6 ~S={preimage="1.png"};/*插入图片*/

data sample;
    set sashelp.class;
    if _n_<10;
run;

proc report data=a nowd headline headskip;
    columns name (~{style [background=blue fontsize=15pt ] ~{unicode 263B} Sex-Age} sex age) (~S={fontsize=15pt background=lightblue} weight) height 
    ;
    define name/
            style(header)={just=r cellwidth=120pt font_face=Arial font_weight=bold background=red}
            style(column)={just=c font_face=Arial font_size=10pt background=blue};
    define sex/group;
run;

ods rtf close;
ods listing;        

最丑效果图,主要看各种命令效果.....

技术图片

SAS ESCAPECHAR /SAS REPORT

标签:esc   report   fonts   column   div   stp   pac   span   back   

原文地址:https://www.cnblogs.com/Python-T/p/13375789.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!