The SAS Output Delivery System and reporting techniques

How to view the code of macro catalog?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

How to view the code of macro catalog?

Hi All,

          Can any one help me out to view the code of macro catalog code.ie.,

        

         %macro test;

          proc print;

          run;

          %mend;

when submit the above code "test" will be created in work.sasmacr. Now i want to view the code of "Test".

Thanks in Advance


Accepted Solutions
Solution
‎10-25-2013 07:08 AM
SAS Super FREQ
Posts: 682

Re: How to view the code of macro catalog?

Hi Iramesh

What exactly do you want to achieve? If you write a macro you do have the source code for it.

For compiled stored macros, you can use the %COPY statement if the developer did not use the SECURE option on the %MACRO statement

Bruno

View solution in original post


All Replies
Solution
‎10-25-2013 07:08 AM
SAS Super FREQ
Posts: 682

Re: How to view the code of macro catalog?

Hi Iramesh

What exactly do you want to achieve? If you write a macro you do have the source code for it.

For compiled stored macros, you can use the %COPY statement if the developer did not use the SECURE option on the %MACRO statement

Bruno

Occasional Contributor
Posts: 9

Re: How to view the code of macro catalog?

Hi Bruno,

          Thank you very much....

Regards

Ramesh

Super User
Posts: 3,102

Re: How to view the code of macro catalog?

In SAS Display Manager you can use the SAS Explorer to list the members in a SAS catalog such as work.sasmacr and if you double click on a member in work.sasmacro it will show the the source code in a window.

If you use EG only this is not possible. In fact the SAS server list doesn't even show SAS catalogs. There is an add-in you can get to display the contents of SAS catalogs but not to show the compiled macro source code. 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 2858 views
  • 0 likes
  • 3 in conversation