由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas and environmental variables
相关主题
sas question!!!请问SAS BASE考试中12题的正确答案是什么?
SAS BASE Questions请教个&的问题
SAS macro variable resolution question大家说说这是电脑的错还是SAS的错
SAS Macro 问题请教 。。。问个sas adv的问题
请问SPSS 或者 SAS中变量名的变换 AABB - BBAAHelp: SAS code
请教SAS LABEL问题。SAS macro Debug
SAS how to change variables' namea question about length assignment
ask for help (urgent): A SAS questionR能处理多大的数据集?
相关话题的讨论汇总
话题: test话题: sas话题: variables话题: resolution
进入Statistics版参与讨论
1 (共1页)
on
发帖数: 199
1
setenv F /test/folder
So F is an environmental variable.
My question is:
libname f "$F"; * this works fine.
%let test = $F; * no resolution here.
data t; test = "$F"; run;
The first statement: $F resolves to the environmental variable; but the last
two statements don't resolve and just literally have $F. Why is that?
a*****3
发帖数: 601
2
the first statement has nothing to do with 'resolution';
the second line creates a macro variable which has nothing to do with '
resolution'.
the third line assigns a string to test which has nothing to do with '
resolution'.
s******y
发帖数: 352
3
it is Ok to reference an EV through pathname references. if the pathname
reference in a FILENAME or LIBNAME statement starts with !, SAS will attempt
to resolve it. like your fist case.
in last two case, you have to use sysget function to retrieve an EV,
%let %let test = %sysget(F);
run;
HTH
SG
last
1 (共1页)
进入Statistics版参与讨论
相关主题
R能处理多大的数据集?请问SPSS 或者 SAS中变量名的变换 AABB - BBAA
在 R 里面如何循环调用变量名请教SAS LABEL问题。
Question: Importing csv file into SAS 9----太多变量SAS how to change variables' name
请教sas123题中第59题。ask for help (urgent): A SAS question
sas question!!!请问SAS BASE考试中12题的正确答案是什么?
SAS BASE Questions请教个&的问题
SAS macro variable resolution question大家说说这是电脑的错还是SAS的错
SAS Macro 问题请教 。。。问个sas adv的问题
相关话题的讨论汇总
话题: test话题: sas话题: variables话题: resolution