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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 3967 views
  • 6 likes
  • 3 in conversation