楼主: dxystata
1239 2

SAS format 2 [推广有奖]

版主

已卖:302份资源

大师

37%

还不是VIP/贵宾

-

TA的文库  其他...

Software

中英文Ebook

R学习

威望
2
论坛币
183395 个
通用积分
15333.1475
学术水平
208 点
热心指数
271 点
信用等级
174 点
经验
298627 点
帖子
5586
精华
1
在线时间
13632 小时
注册时间
2006-6-21
最后登录
2025-12-22

初级学术勋章 初级热心勋章 中级热心勋章 初级信用勋章

楼主
dxystata 发表于 2013-12-2 09:57:19 |AI写论文
50论坛币
  1. proc format;
  2. value answer 1='yes'
  3.              2='no';
  4. run;
复制代码
  1. proc format;
  2. value answer 1='yes'
  3.                     2='no'
  4.                     3='unclear';
  5. run;
复制代码
如何将answer的数目放入macro中 比如第一种情况为2,第一种情况为3,谢谢!

最佳答案

pobel 查看完整内容

proc format; value answer 1='yes' 2='no' 3='unclear'; run; proc format cntlout=fmtout; select answer; run; proc sql noprint; select count(distinct label) into : n from fmtout where fmtname="ANSWER" and type="N"; quit; %put &n;
关键词:format FORMA form For RMA 如何

本帖被以下文库推荐

沙发
pobel 在职认证  发表于 2013-12-2 09:57:20
proc format;
value answer 1='yes'
             2='no'
             3='unclear';
run;
proc format cntlout=fmtout;
  select answer;
run;

proc sql noprint;
   select count(distinct label) into : n
    from fmtout
        where fmtname="ANSWER" and type="N";
quit;

%put &n;
和谐拯救危机

藤椅
dxystata 发表于 2013-12-2 21:47:00
谢谢pobel!如有更简单实现的方法,可以另给论坛币!

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

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