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?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 697 views
  • 0 likes
  • 2 in conversation