由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas date variable exchange
相关主题
character变date variable helpA SAS problem
SAS 编程问题 (有包子)sas help!!
请问base(123题)的第114题哪个SAS function可以读这样的variable
怎么把sas date变成monyyyy形式?【包子】SAS 日期变量问题
问SAS code怎么写关于substr一问, thanks!
请教大家一个SAS问题sas新手请教一个问题
sas helpsas一问
包子求sas 问题解决办法Ask a SAS question
相关话题的讨论汇总
话题: date话题: variable话题: input话题: 03话题: mqrlkr
进入Statistics版参与讨论
1 (共1页)
m****r
发帖数: 202
1
I have a charecter variable (Date "03/03/2010") and need to change to
date variable (Datevar 03MAR2010). The input function does work here,
how can I do ?
Thanks a lot
l*****8
发帖数: 483
2
format cc date9.;
bb='03/03/2010';
cc= mdy(substr(bb, 4,2)*1,substr(bb,1,2)*1,substr(bb,7.,4)*1);
run;
d******9
发帖数: 404
3
A=input(date, ddmmyy10.)
datevar=put(A,date9.)
m****r
发帖数: 202
4
Thank you both.
1.When use input, my problem is the length of the variable (Date "03/03/2010
") since it is substred from other original database. I checked and found
that its length is $92. Probably that's the reason why input(Date, mmddyy10
.) doesn't work here.
2.mdy()function works well here.
Thanks again
a*****3
发帖数: 601
5
data mqrlkr;
input mqrlkr :$100.;
mqrN = put(input(mqrlkr, mmddyy.), date9.); datalines;
5/6/60

;
赏个包子怎么样? 我这儿天寒地冻, 住着半个密林的房子 房东还不给开暖气 还让不
让人活了?

2010: ") since it is substred from other original database. I checked and
found : that its length is $92. Probably that's the reason why input(Date,
mmddyy10: .) doesn't work here.

【在 m****r 的大作中提到】
: Thank you both.
: 1.When use input, my problem is the length of the variable (Date "03/03/2010
: ") since it is substred from other original database. I checked and found
: that its length is $92. Probably that's the reason why input(Date, mmddyy10
: .) doesn't work here.
: 2.mdy()function works well here.
: Thanks again

s******r
发帖数: 1524
6
what's the length if you use compress()?

2010
mmddyy10

【在 m****r 的大作中提到】
: Thank you both.
: 1.When use input, my problem is the length of the variable (Date "03/03/2010
: ") since it is substred from other original database. I checked and found
: that its length is $92. Probably that's the reason why input(Date, mmddyy10
: .) doesn't work here.
: 2.mdy()function works well here.
: Thanks again

1 (共1页)
进入Statistics版参与讨论
相关主题
Ask a SAS question问SAS code怎么写
【包子】SAS 日期和时间问题请教大家一个SAS问题
sas问题,大过节的不知道有没有人看到sas help
请教一个sas的sort date变量问题包子求sas 问题解决办法
character变date variable helpA SAS problem
SAS 编程问题 (有包子)sas help!!
请问base(123题)的第114题哪个SAS function可以读这样的variable
怎么把sas date变成monyyyy形式?【包子】SAS 日期变量问题
相关话题的讨论汇总
话题: date话题: variable话题: input话题: 03话题: mqrlkr