全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2184 2
2017-01-21
今天看sas书籍,有个是用程序查看宏系统是否打开,但没有说如果没打开该怎么办。所以想问一下怎么打开宏系统
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-1-21 22:02:04
没听说需要打开,直接用了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-2-12 01:34:19
There is no way to retrieve the original source code from a stored compiled macro. You must always save the original code in another file so that you can modify it later.

Starting with SAS® 9.1, there is a new SOURCE option for the %MACRO statement. When used with the existing STORE option, the SOURCE option combines and stores the source of the compiled macro. The compiled macro code becomes an entry in a SAS catalog in a permanent SAS data library. The compiled macro and the source code are stored together in the same SASMACR catalog. The SOURCE option requires that the STORE option and the SAS option MSTORED be set. You can use the SAS option SASMSTORE= to identify a permanent SAS data library. You can store a macro or call a stored compiled macro only when the SAS option MSTORED is in effect.

Note: The source code that is saved by the SOURCE option begins with the %MACRO keyword and ends with a semicolon following the %MEND statement. Now that you have a way to store the source code with the SOURCE option, you also need a way to retrieve this information. The answer is the new %COPY statement, which copies specified items from a SAS macro library. For example:

   libname test 'c:\';
   options mstored sasmstore=test;

   %macro test(arg) / store source des="test of the source option";
      %put arg = &arg;
      data one;
         x=1;
      run;
   %mend test;

   %copy test / source;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群