*******************************;
*Purpose: 报表
*Programm:
*Programmor:
*Date:
*Version:
********************************;
OPTIONS NOCENTER ls=max ps=max;
LIBNAME S ‘.‘;
DATA S.lrd;
FORMAT CreateTime MMDDYY10.;
SET S.lrd;
RUN;
DATA A1;
SET S.lrd;
IF CALLFROM=‘O2O‘;
RUN;
DATA A2;
SET S.lrd;
IF CALLFROM=‘VBS‘;
RUN;
/*自定义显示格式*/
proc format;
picture pctfmt low-high=‘002.31 %‘;
run;
ODS HTML FILE=‘E:table1_wang.xlsx‘;
PROC TABULATE DATA=A1 style=[textalign=center];
CLASS CreateTime SEC;
TABLE SEC*[style=[backgroundcolor=yellow textalign=center]] ALL,
CreateTime*(N*F=6.0 COLPCTN*f=pctfmt9.) ALL/
STYLE=[textalign=center /*居中,但是好像没有作用*/
color=red /*字体颜色*/
FONTSIZE=2 /*字体大小*/
BORDERWIDTH=1 /*边框*/
];
TITLE1 "汇总表显示:O2O小白分占比";
KEYLABEL N=‘频数‘ COLPCTN=‘百分比‘;
LABEL CreateTime=‘日期‘ SEC=‘小白分‘;
RUN;
ODS HTML CLOSE;
/*
BORDERBOTTOMLEFTRADIUS, BORDERBOTTOMRIGHTRADIUS, BORDERBOTTOMWIDTH, BORDERLEFTWIDTH, BORDERRADIUS, BORDERRIGHTWIDTH,
BORDERSPACING, BORDERTOPLEFTRADIUS, BORDERTOPRIGHTRADIUS, BORDERTOPWIDTH, BORDERWIDTH,
CELLPADDING, CELLSPACING, CONTENTSIZE, FILLRULEWIDTH, FONTSIZE, FRAMEBORDERWIDTH, FRAMESPACING, HEIGHT,
LINESTYLE, LINETHICKNESS, MARGIN, MARGINBOTTOM, MARGINLEFT, MARGINRIGHT, MARGINTOP, MARKERSIZE, OFFSET,
ORPHANS, OVERHANGFACTOR, PADDING, PADDINGBOTTOM, PADDINGLEFT, PADDINGRIGHT, PADDINGTOP, TEXTINDENT, THRESHOLD,
TRANSPARENCY, VBORDERSPACING, WIDOWBODYSIZE, BORDERBOTTOMLEFTRADIUS, BORDERBOTTOMRIGHTRADIUS, BORDERBOTTOMWIDTH,
BORDERLEFTWIDTH, BORDERRADIUS, BORDERRIGHTWIDTH, BORDERSPACING, BORDERTOPLEFTRADIUS, BORDERTOPRIGHTRADIUS, BORDERTOPWIDTH,
BORDERWIDTH, CELLPADDING, CELLSPACING, CONTENTSIZE, FILLRULEWIDTH, FONTSIZE, FRAMEBORDERWIDTH, FRAMESPACING, HEIGHT, LINESTYLE,
LINETHICKNESS, MARGIN, MARGINBOTTOM, MARGINLEFT, MARGINRIGHT, MARGINTOP, MARKERSIZE, OFFSET, ORPHANS, OVERHANGFACTOR,PADDING,
PADDINGBOTTOM, PADDINGLEFT, PADDINGRIGHT, PADDINGTOP, TEXTINDENT, THRESHOLD, TRANSPARENCY, VBORDERSPACING, WIDOWS, WIDTHS, WIDTH
*/