Hi,
I have a SAS project (.egp) containing several SAS programs (.sas) named: cal, Lau, pest.
In Cal, I created a macro program and I want to call it to use in my Lau macro program. How to do ?
Can someone explain to me please?
Thank you
Gick
In in the Process Flow you link codes you can organise them in such way that "A" will be executed before "B".
You can do it by RMB click on a file and then select "Link to" option.
Then run that path to get "final object" (test dataset in this case). In future runs RMB click on that final icon and select "Run to selected item".
What do you mean by "create a macro program" ? Is Cal itself a macro program, starting with %macro <name>(...); and ending with %mend ? Or does it generate a macro program?
In first case you can just %include <path>/Cal.sas at the top of any program you want to use Cal macro program. The mcaro will be compiled at submission and used when called.
In second case you need to keep the generated macro progam as a <filename>.sas in a folder then use it as described above.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.