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

Thanks a lot Reeza,

Could you explain me the use of Array statement without the do loop?

Also if you dont mind I can post a code which is to be put in a macro .......

Thanks

Reeza
Super User

Array statement without the loop is so I don't have to type the list of variables out multiple times, can refer to it as of vars(*).

Also, can refer to them as vars(i).

Arrays in SAS are only a way to alias variables so you can access them with the format vars(i) where is the i'th variable in the array list. Or in summaries like I'm doing.

If you have a new question, post it as a new thread.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 16 replies
  • 3668 views
  • 6 likes
  • 3 in conversation