Search
 
 

Display results as :
 


Rechercher Advanced Search

Keywords

Affiliates
free forum


Practical Approach to the Stored Compiled Macro Facility

View previous topic View next topic Go down

Practical Approach to the Stored Compiled Macro Facility

Post  pallav on Fri May 18, 2012 3:48 pm

WHAT IS THE STORED COMPILED MACRO FACILITY?

The stored compiled macro facility (SCMF) is a repository for complied macros. Source code for the macros can be stored in various locations separate from the complied macros. The source code needs to be complied only once and then the complied version can be permanently stored in the SCMF. This differs from an autocall library or other
macros, which must be complied during every SAS session. Permanent compilation is a feature of the stored compiled macro facility. Programs in the SCMF can be run and viewed by multiple users, even if they users have read only access.

Creating a permanent SASMACR catalog saves time in daily production. The compiled macro is in one location, while the source code can be stored anywhere. To ease maintenance, storing source code in one central location is recommended. The source code can be saved in the same directory as compiled macros or in another directory if complete control of the source code is required. The compiled macro and source code are different file types to SAS® so having them in the same directory is not confusing.

ADVANTAGES AND DISADVANTAGES OF THE STORED COMPILED MACRO FACILITY

Advantages:
• No repeated compiling of macro programs that are repeatedly used
• Possibility of displaying the entries in a catalog containing compiled macros saving macro compiling time
• There is no need to save and maintain the source for the macro definition in a different location
• Keeping track of macros is easy
• Storing more then one macro per file
• Compile and Store is faster because there is a decrease in time for searching, %including, compiling and storing in the WORK.SASMACR catalog.

Disadvantage:
• Cannot be moved directly to other operating systems.
• Must be saved and recompiled under new OS at any new location.


Read the entire article in detail in link given below

http://analytics.ncsu.edu/sesug/2006/AP10_06.PDF

pallav

Posts : 98
Join date : 2012-03-14
Location : Ahmedabad

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum