由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS format 的问题
相关主题
Easy SAS question, anyone can helpSAS应用问题
sas base 70 第 20题请教一个用SAS作DATA MERGE的问题
SAS - please help!sas question
Please help me with SAS! Thank you!问一个sas问题
SAS中FORMAT问题求教问个SAS入门级的问题。。多谢。。
SAS问题请教:Numeric Variable Length的设定proc format 里 的 blanks 被自动删除怎么办?
SAS Base 70题 第20题求教问个sas日期小白问题
SAS format file--- when I load the file 急~~~谢谢~~~受不了EXCEL了(包子请教 proc report ods excel file)
相关话题的讨论汇总
话题: format话题: proc话题: sas话题: sex1话题: print
进入Statistics版参与讨论
1 (共1页)
y*****5
发帖数: 62
1
proc print的时候,我想关掉format,只看没被format之前的值。
比如说原来用1,2来代表性别,format之后,我只能看到男和女。
现在我想看1,2。什么命令呢?
谢谢大家
y*****5
发帖数: 62
2
解决了。
我这样做的:
data new;
set old;
format gender;
run;
then format on gender was removed.

【在 y*****5 的大作中提到】
: proc print的时候,我想关掉format,只看没被format之前的值。
: 比如说原来用1,2来代表性别,format之后,我只能看到男和女。
: 现在我想看1,2。什么命令呢?
: 谢谢大家

P****D
发帖数: 11146
3
FORMAT statement可以直接用在PROC PRINT里。
proc print data=old; format gender; run; 就可以了。不用重新建一个名叫new的
dataset。

【在 y*****5 的大作中提到】
: 解决了。
: 我这样做的:
: data new;
: set old;
: format gender;
: run;
: then format on gender was removed.

m*********n
发帖数: 413
4
my way to do this, for numeric variables having a format:
proc sql;
select sex, sex as sex1 format=10.4
from data1
;
quit;
then you can get a list of formatted value in sex and original values in
sex1.
of course the best way to check a format is to use PROC FORMAT
1 (共1页)
进入Statistics版参与讨论
相关主题
受不了EXCEL了(包子请教 proc report ods excel file)SAS中FORMAT问题求教
question about proc formatSAS问题请教:Numeric Variable Length的设定
求方法把sasdata num.var真实值和对应format value 输出excelSAS Base 70题 第20题求教
Import excel file to sas (the first 8 or more observationsSAS format file--- when I load the file 急~~~谢谢~~~
Easy SAS question, anyone can helpSAS应用问题
sas base 70 第 20题请教一个用SAS作DATA MERGE的问题
SAS - please help!sas question
Please help me with SAS! Thank you!问一个sas问题
相关话题的讨论汇总
话题: format话题: proc话题: sas话题: sex1话题: print