楼主: tomanfai
1922 1

请教一下tagsets.excelxp [推广有奖]

  • 0关注
  • 0粉丝

初中生

71%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
46 点
帖子
4
精华
0
在线时间
29 小时
注册时间
2014-6-3
最后登录
2017-2-24

楼主
tomanfai 发表于 2014-12-20 15:11:49 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请教一下,如果使用tagsets.excelxp在同一个excel的同一张sheet中输出多个不同的数据集??谢谢~~~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:EXCEL exce Sets xcel Tags excel

沙发
linusx 发表于 2014-12-21 21:28:34
试下这个:
Use the SHEET_NAME= and SHEET_INTERVAL= options to specify the name of a worksheet as well as the interval in which to create new worksheets.

ods tagsets.excelxp file='multitable.xml' style=statistical
      options(auto_subtotals='yes' default_column_width='7, 10, 10, 7, 7'
              frozen_rowheaders='yes' sheet_interval='none' sheet_name='Canada'
              autofilter='all' autofilter_table='2');

  *;
  *  The output from the following two procs will be in a single worksheet
  *  with a user-specified name of 'Canada'.
  *;

  proc tabulate data=prdsale;
     where country eq 'CANADA' and year eq 1993;
     var predict actual;
     class region division prodtype;
     table
        region*(division*prodtype all={label='Division Total'}) all={label='Grand Total'},
        predict={label='Total Predicted Sales'}*f=dollar10.*sum={label=''}
        actual={label='Total Actual Sales'}*f=dollar10.*sum={label=''};
  run; quit;

  proc print data=prdsale noobs label split='*';
     where country eq 'CANADA' and year eq 1993;
     id country region division;
     var prodtype product quarter month year;
     sum predict / style={tagattr='format:Currency'};
     sum actual / style={tagattr='format:Currency'};
     sum difference / style={tagattr='format:Currency formula:RC[-1]-RC[-2]'};
     label prodtype = 'Product*Type'
           predict  = 'Predicted*Sales'
           actual   = 'Actual*Sales';
  run; quit;
已有 1 人评分论坛币 收起 理由
admin_kefu + 60 精彩帖子

总评分: 论坛币 + 60   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 09:10