figure in PROC REPORT

把ODS一些操作写入到数据集中,通过proc report展示这些figure.

 

filename image1 './1.png';
filename image2 './1.png';
filename image3 './1.png';

data image;
    imgn = 1;
    img = "~S = {preimage = image1}";
    output;
    imgn = 2;
    img = "~S = {preimage = image2}";
    output;
    imgn = 3;
    img = "~S = {preimage = image3}";
    output;
run;

options nodate nonumber nobyline orientation = landscape;
ods escapechar = '~';

ods rtf file = "./_image.rtf";

proc report data = image nowd center noheader 
style = {frame = void rules = none protectspecialchars = off just=center asis=yes } 
style(lines)={ just=left font_size=8pt font_face='Courier New' font_weight=light protectspecialchars=off } 
style(column) = {cellspacing=0 cellwidth=8.9861in just = c};

/*title2 "2";*/
column imgn img;
by imgn;

define imgn /noprint order order = data;
define img / display center spacing=0 style ={width = 100% } ; 

run;

ods rtf close;

 

posted @ 2021-10-30 13:07  Iving  阅读(153)  评论(0编辑  收藏  举报