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

Hi guys!

I have been tasked to create macros to run PROC GENMOD (given macro name as %genmod) in iterations so as to allow SAS to select variables for me.

%if i=1;

%do &genmod &until &pvalue>0.05....


Essentially, i will obtain the final type3 wald results after all the iterations. However, I will love to obtain and see the type3 wald results for each iterations as well.


I have been pulling my hair to figure how to incorporate a macro/data step. I tried to manipulate ODS OUTPUT but still fail to obtain a favourable result.


Thank you in advance for your help, kind person(s).


1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Have you figured out how to capture the data for a single iteration?

Once you have that then add an append to your loop so you keep the table for reach iteration.

View solution in original post

2 REPLIES 2
Reeza
Super User

Have you figured out how to capture the data for a single iteration?

Once you have that then add an append to your loop so you keep the table for reach iteration.

kayne
Calcite | Level 5

Hi Reeza,

Do I attach the PROC APPEND code inside the GLM macro or the GLM LOOP macro?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1195 views
  • 0 likes
  • 2 in conversation