由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - two SAS macro questions
相关主题
[SAS]怎么快捷地删除Macro 里创建的临时dataset和macro variabSAS Macro求教
Need advice on SAS macro debuggingHow to set initial dataset to zero in a SAS macro?
macro里面能还用macro吗?%do questions
[合集] 问个SAS的问题Help: an I/O ERROR occured
[合集] 用SAS生成表格,怎么弄比较好?windows下用batch submit 两个SAS code文件
base 和advance 考试的体会[SAS] how to do nested loop between 2 datasets?
请教SAS macroSAS Programmer for clinical trials
SAS DATA 求助SAS Macro 莫名现象
相关话题的讨论汇总
话题: macro话题: sas话题: string话题: empty话题: current
进入Statistics版参与讨论
1 (共1页)
l*********s
发帖数: 5409
1
1. How to get current system time, for avoiding naming conflicts of
temporary datasets
2. How to generate a empty string of specified length; is there some macro
function like rep in R?
A*******s
发帖数: 3942
2
1. &systime.
2. empty string as a macro variable? or empty string as a character variable
in data step? don't understand your question.

【在 l*********s 的大作中提到】
: 1. How to get current system time, for avoiding naming conflicts of
: temporary datasets
: 2. How to generate a empty string of specified length; is there some macro
: function like rep in R?

l*********s
发帖数: 5409
3
1.systime returns the starting time of current SAS session, not the current
system time.
2. I meant to assign an empty string to a variable in a data step nested
within macro. Though I could type out quoted empty string, it doesn't look
very professional.

variable

【在 A*******s 的大作中提到】
: 1. &systime.
: 2. empty string as a macro variable? or empty string as a character variable
: in data step? don't understand your question.

A*******s
发帖数: 3942
4
1. Good to know that. How about datetime function?
Usually I use the value of a global macro var as the prefix of temporary
datasets and change it (++1) after each macro execution.
2. You mean string containing only blanks? SAS does have repeat function to
do that.

current

【在 l*********s 的大作中提到】
: 1.systime returns the starting time of current SAS session, not the current
: system time.
: 2. I meant to assign an empty string to a variable in a data step nested
: within macro. Though I could type out quoted empty string, it doesn't look
: very professional.
:
: variable

D******n
发帖数: 2836
5
1) datetime()
2) repeat(" ",30)

macro

【在 l*********s 的大作中提到】
: 1. How to get current system time, for avoiding naming conflicts of
: temporary datasets
: 2. How to generate a empty string of specified length; is there some macro
: function like rep in R?

l*********s
发帖数: 5409
6
Thanks a lot. :-)

【在 D******n 的大作中提到】
: 1) datetime()
: 2) repeat(" ",30)
:
: macro

1 (共1页)
进入Statistics版参与讨论
相关主题
SAS Macro 莫名现象[合集] 用SAS生成表格,怎么弄比较好?
一个SAS Macro和Append的问题,救助!base 和advance 考试的体会
My $0.02 on SAS debugging in Linux environment.请教SAS macro
关于SAS interviewSAS DATA 求助
[SAS]怎么快捷地删除Macro 里创建的临时dataset和macro variabSAS Macro求教
Need advice on SAS macro debuggingHow to set initial dataset to zero in a SAS macro?
macro里面能还用macro吗?%do questions
[合集] 问个SAS的问题Help: an I/O ERROR occured
相关话题的讨论汇总
话题: macro话题: sas话题: string话题: empty话题: current