由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sql code - please help simplify it if possible
相关主题
update (some interview experiences)--急,面试求助:用ACCESS用尽心思做好了一个macro
Do you share your sas Macros or R code with co-workers?Re: SAS help : How to use Macro to select procedurs
没完没了的LAYOFF!sas 中如何给一个variable 加密?
Stupid SAS programming style is driving me crazy....贡献一个contract hourly rate
SAS MACRO和Proceduremacro里面能还用macro吗?
急问:SAS batch submission with macro variableNeed advice on SAS macro debugging
一个有意思的问题,关于SAS的运算时间。R 语言有像SAS 一样的macro吗?
SAS help : The scope of macro variableswhat is the fastest way of look-up in SAS?
相关话题的讨论汇总
话题: code话题: simplify话题: sql话题: possible话题: cpt
进入Statistics版参与讨论
1 (共1页)
x*z
发帖数: 67
1
I feel the following code kind of silly. Is there any better way to do it?
Thanks!
c*******o
发帖数: 3829
2
Hash will make this simple.
p********a
发帖数: 5352
3
这个CODE很有美式风格。。。以前靠行数收钱的时候好用
proc format library=work;
value $op_cpt
'12345'-'12780', '99241'-'99245','99271'-'99275', '99301'-'99313', '99321'-'
99355', '99381','99397','99431','99432','99435'='cpt:in';
run;
put(procedure_code_1,$op_cpt)='cpt:in' or xxxx
如果有精力还可以做个MACRO,把PROC1-PROC5放进去。
x*z
发帖数: 67
4
GOOGLE了HASH, 发现有点难度, 可不可以说具体点
x*z
发帖数: 67
5
说的不错...不过您的CODE 我也没明白呢 能否多说点? 谢谢了

-'

【在 p********a 的大作中提到】
: 这个CODE很有美式风格。。。以前靠行数收钱的时候好用
: proc format library=work;
: value $op_cpt
: '12345'-'12780', '99241'-'99245','99271'-'99275', '99301'-'99313', '99321'-'
: 99355', '99381','99397','99431','99432','99435'='cpt:in';
: run;
: put(procedure_code_1,$op_cpt)='cpt:in' or xxxx
: 如果有精力还可以做个MACRO,把PROC1-PROC5放进去。

1 (共1页)
进入Statistics版参与讨论
相关主题
what is the fastest way of look-up in SAS?SAS MACRO和Procedure
R 问题急问:SAS batch submission with macro variable
sas help, how to manipulating on the format value一个有意思的问题,关于SAS的运算时间。
问个基本数学问题,请帮助啊SAS help : The scope of macro variables
update (some interview experiences)--急,面试求助:用ACCESS用尽心思做好了一个macro
Do you share your sas Macros or R code with co-workers?Re: SAS help : How to use Macro to select procedurs
没完没了的LAYOFF!sas 中如何给一个variable 加密?
Stupid SAS programming style is driving me crazy....贡献一个contract hourly rate
相关话题的讨论汇总
话题: code话题: simplify话题: sql话题: possible话题: cpt