• SAS 报表输出一些新式控制


    SAS 报表输出一些新式控制

    *******************************;
    *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
    */

  • 相关阅读:
    Oracle Sql优化之日期的处理
    python excel转xml
    3、vue项目里引入jquery和bootstrap
    1、vue.js开发环境搭建
    2、vue-router2使用
    go 初步
    一个全局变量引起的DLL崩溃
    在linux用gdb查看stl中的数据结构
    gdb看core常用命令
    redis常用命令
  • 原文地址:https://www.cnblogs.com/wdkshy/p/6760825.html
Copyright © 2020-2023  润新知