3.sas的各个程序步,均有相应的语句选项指定所处理的数据集,如未指定则默认最近产生的数据集为当前数据集,变量则是从该数据集中寻找了。作者: shiyiming 时间: 2004-3-18 09:16 标题: 多谢 如果当前数据集没有找到变量,是程序出错还是到某处继续查找作者: shiyiming 时间: 2004-3-18 10:32 标题: Re: 多谢 [quote="smartie":3decb]如果当前数据集没有找到变量,是程序出错还是到某处继续查找[/quote:3decb]
in general,the program you submit will be compiled first and at that time SAS will determine which variables will be output.If you have used set statement in your program,all the variables in the set-dataset will be read into PDV in addition to any new variable encountered in the following codes.hence,if SAS can't find a variable in the dataset the variable will be thought as a new variable in the pdv and no error occurs.The fact can will be easily demonstrated by some simple examples.Probably I miss your points so your comment will be welcome.作者: shiyiming 时间: 2004-3-18 23:17
Maybe it is out of your interests, but I have to say a few words. The previous postings are talking about variables in data sets only, not the macro variables. Please be noted that there is a difference between GLOBAL and LOCAL Macro Variables, if a macro variable is local, it can be solved to different string in different locations.