由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 一道sas题 在线求解 50个包子答谢 急啊
相关主题
need sas debug help!! Please...SAS Technical Interview Questions
SAS: how to build a timer问一个SAS macro的问题
sas 代码问题One simple question about input and length in sas
Help: SAS codeSAS里用macro的文件名里数字的问题
请教一道SAS MACRO编程的问题。怎么都不明白。谢谢请教一个SAS 数据分配问题
Question about SAS like %%do questions
求助关于sas macro 中的if- then语句请教一个SAS Macro的问题
why this error in %if statementSAS help : how to macro ods
相关话题的讨论汇总
话题: date9话题: inputn话题: sysdate话题: sysfunc话题: date
进入Statistics版参与讨论
1 (共1页)
a***e
发帖数: 1627
1
Write a macro expression (that could be used for example in an %IF-%THEN
statement) that evaluates to 1 if the value of a macro variable named date
corresponds to a date before the current SAS session was started, and 0
otherwise. (Assume the value of date is in date9 format.)
a***e
发帖数: 1627
2
ding a
s******y
发帖数: 352
3
%let somedt1=21APR2011;
%let somedt2=01Jun2011;
%put current session date: &sysdate;
%put &somedt1. > &sysdate.? %eval(%sysfunc(inputN(&somedt1,date9))>%sysfunc
(inputN(&sysdate.,date9)));
%put &somedt2. > &sysdate.? %eval(%sysfunc(inputN(&somedt2,date9))>%sysfunc
(inputN(&sysdate.,date9)));
BAOZI please!!

【在 a***e 的大作中提到】
: Write a macro expression (that could be used for example in an %IF-%THEN
: statement) that evaluates to 1 if the value of a macro variable named date
: corresponds to a date before the current SAS session was started, and 0
: otherwise. (Assume the value of date is in date9 format.)

a***e
发帖数: 1627
4
只要一句话啊 在怎么写了这么多
a***e
发帖数: 1627
5
假设已经是date9
s******y
发帖数: 352
6
what about this?
%sysfunc(inputN(&somedt2,date9))>%sysfunc(inputN(&sysdate.,date9))
a***e
发帖数: 1627
7
交了 呵呵 谢谢 包子发了啊
1 (共1页)
进入Statistics版参与讨论
相关主题
SAS help : how to macro ods请教一道SAS MACRO编程的问题。怎么都不明白。谢谢
SAS macro questionQuestion about SAS like %
sas 代码问题求助关于sas macro 中的if- then语句
请教一个SAS问题:怎样平均地把obs从小到大分成几个Group?why this error in %if statement
need sas debug help!! Please...SAS Technical Interview Questions
SAS: how to build a timer问一个SAS macro的问题
sas 代码问题One simple question about input and length in sas
Help: SAS codeSAS里用macro的文件名里数字的问题
相关话题的讨论汇总
话题: date9话题: inputn话题: sysdate话题: sysfunc话题: date