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
|