🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How do you create compiled macros in SLC?

You should be able to compile your macro in SLC using code of the form:

libname maclib 'D:\sasmacro1';
options mstored sasmstore=maclib;
%macro slc_compiled_macro (a,b) /store ;
put "Hello from slc_compiled_macro";
%mend slc_compiled_macro;

This should create a SASMACRO.wpccat file in the directory d:\sasmacro1 or append to an existing one.

Once this is done you can autocall the compiled macro using a script of the form:-

libname maclib 'D:\sasmacro1';
options mstored sasmstore=maclib;
%slc_compiled_macro;

 

Find more posts tagged with

Comments

No comments on this post.