【转载】format 与宏
来源:互联网 发布:js遍历对象的所有属性 编辑:程序博客网 时间:2024/06/07 05:02
%macro crackman;
%local rcount i;
data a;
set sashelp.class end=no_more;
call symput("range"||left(_n_),trim(left(Name)));
call symput("label"||left(_n_),trim(left(Sex)));
if no_more then call symput("rcount",_N_);
run;
proc format;
value $Gender
%do i=1 %to &rcount;
"&&range&i"="&&label&i"
%end;
run;
%mend crackman;
options mprint;
%crackman
proc format;
value agell;
0-5=1
6-10=2
11-30=3
;
run;
data b;
set a;
age1=age;
informat age1 age11;
run;
%macro crackman;
data _null_;
set sashelp.class end=no_more;
call symput("range"||left(_n_),trim(left(Name)));
call symput("label"||left(_n_),trim(left(Sex)));
if no_more then call symput("rcount",_N_);
run;
%mend crackman;
%crackman
%macro crackman1;
data b;
%do i=1 %to &rcount;
d="&&range&i";
b="&&label&i";
c=d||b;
output;
%end;
run;
%mend crackman1;
%crackman1
- 【转载】format 与宏
- 漫谈信号与系统系列 (转载)
- Linux与Solaris比较 <转载>
- ELF Format
- avi file format(转载)
- 【转载】format的用法。
- 转载:C# String.Format
- 【转载】word 查找与替换中的…
- em的错误 <转载>
- linux top (转载)
- 【转载】SAS Hash 对象
- ORADEBUG DOC <转载>
- Image File Format Specifications {转载}
- device_create ()详解(转载)
- 【转载】pthread_mutex_init …
- 网站架构 (转载)
- 转载 瑜伽清肠术
- format Excel上传中的数字(…
- 【转载】Windows下编写R pack…
- 让你真正明白cinder与swift、glance的区别
- Proc Freq:Freq过程介绍
- 口译常用成语
- MySQL Join算法与调优白皮书(三)
- 【转载】format 与宏
- SYSFUNC
- IOS程序国际化
- 用R软件绘制中国分省市地图
- 【转载】SAS INTNX详解
- iOS9 TableView和ScrollView滚动不响应问题
- 【转载】COMPRESS 函数【功能…
- sql合并复杂的表
- 【转载】正则表达式基础知识介绍及…