楼主: sas菜鸟选手
1940 2

如何打开sas中的宏系统 [推广有奖]

  • 0关注
  • 0粉丝

小学生

0%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
50 点
帖子
2
精华
0
在线时间
2 小时
注册时间
2017-1-10
最后登录
2017-1-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
今天看sas书籍,有个是用程序查看宏系统是否打开,但没有说如果没打开该怎么办。所以想问一下怎么打开宏系统
二维码

扫码加我 拉你入群

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

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

关键词:怎么办 如何

沙发
freetiger 发表于 2017-1-21 22:02:04 |只看作者 |坛友微信交流群
没听说需要打开,直接用了

使用道具

藤椅
Claire230 发表于 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;

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-26 14:23