0

How to use line comments to separate and annotate the sections of the more than 2 programs in one editor in SAS?

4

2 回答 2

1

SAS 中的一行注释是这样的:

*this is a line comment;

以星号 ( *) 开头,以分号结尾。

因此,您可以使用它来记录您的代码,通过前面的代码部分和行注释来解释代码在做什么,宏需要哪些参数,或者数据集可能包含哪些属性。

于 2013-11-10T16:21:56.977 回答
0

与 Joe 所说的类似,SAS 将忽略以“*”开头的行,直到它到达第一个分号“;”。

或者,您也可以使用 /* 和 */(* 和 / 之间没有空格)注释掉一行或一块文本。

/*

text that will be ignored by SAS and appear as comments

*/

执行程序时,/* 和 */ 之间的所有语句和代码都将被忽略。

于 2013-11-11T02:10:57.257 回答