由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - a question about proc format
相关主题
请教sas123题中第59题。如何删除重复的OBS?
急 SAS问题如何比较两个proc contents的结果?
sas help, how to manipulating on the format value怎样得到OBS的值?
请教一个SAS问题SAS求助,out of memory
question about proc format[提问]怎样sort这个dataset?
什么时候r里兴用=赋值的SAS -proc transpose 急问!
SAS format 的问题弱问SAS:如何找出两个data sets中missing的obs
[sas] 怎么用自定义format里的值来计算?[SAS] data set options (obs=) in output tables
相关话题的讨论汇总
话题: angio话题: format话题: proc话题: angiof话题: use
进入Statistics版参与讨论
1 (共1页)
w****r
发帖数: 186
1
wait online, please advise!
Use such syntax to assign format, all other worked, except those code
starting with V.
Can anybody help on this?
proc format;
value $angiof
"00.61", "00.62", "00.66", "36.03", "39.50", "v45.82" ="angio ";
Thanks!
d******9
发帖数: 404
2
It works very well. Why did u say it does not work???
proc format;
value $angiof
"00.61", "00.62", "00.66", "36.03", "39.50", "v45.82" ="angio ";
run;
data A;
input A S $;
format S $angiof.;
cards;
1 00.61
2 00.66
3 36.03
4 39.50
5 v45.82
;
run;
proc print;
run;
SAS Ourput:
Obs A S
1 1 angio
2 2 angio
3 3 angio
4 4 angio
5 5 angio
w****r
发帖数: 186
3
Thanks so much for checking!
I actually messed the lower case/upper case. It shpould be V45.82 based on
my data.
Many thanks!

【在 d******9 的大作中提到】
: It works very well. Why did u say it does not work???
: proc format;
: value $angiof
: "00.61", "00.62", "00.66", "36.03", "39.50", "v45.82" ="angio ";
: run;
: data A;
: input A S $;
: format S $angiof.;
: cards;
: 1 00.61

1 (共1页)
进入Statistics版参与讨论
相关主题
[SAS] data set options (obs=) in output tablesquestion about proc format
如何在1,2,3,4,5中随机选出2个数来?什么时候r里兴用=赋值的
请教一道sas 题SAS format 的问题
base 70 - Q27[sas] 怎么用自定义format里的值来计算?
请教sas123题中第59题。如何删除重复的OBS?
急 SAS问题如何比较两个proc contents的结果?
sas help, how to manipulating on the format value怎样得到OBS的值?
请教一个SAS问题SAS求助,out of memory
相关话题的讨论汇总
话题: angio话题: format话题: proc话题: angiof话题: use