BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Iramesh
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

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

3 REPLIES 3
BrunoMueller
SAS Super FREQ

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

Iramesh
Calcite | Level 5

Hi Bruno,

          Thank you very much....

Regards

Ramesh

SASKiwi
PROC Star

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. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 9463 views
  • 1 like
  • 3 in conversation