BookmarkSubscribeRSS Feed
new_sas_user
Calcite | Level 5

Do Macro programs and SAS arrays deal with issues the same?  Are there issues that they BOTH deal with the same way? How are they different and what do they have in common? Please provide helpful links or examples that illustrates the procedures so I can replicate and understand more fully.

3 REPLIES 3
ballardw
Super User

Generally Macros do only one thing: generate text used in SAS programs. That could be anything from a couple of characters to 1000's of lines of code that calls multiple datasteps and procedures and creating 1000's of pages of output.

 

Arrays to repitious operations on a group of (generally) related variables within a single datastep. [which may have been created by a macro but not at all required to do so]

 

 

PGStats
Opal | Level 21

Read the first paragraph in the documentation of both topics and you will see that they are totally different tools.

PG
Reeza
Super User

@new_sas_user You're picking fairly large topics and asking very broad questions. If you're trying to learn SAS I would recommend a more structured approach. Or are you trying to get an overview of the language? Please add some context to your questions so we can help direct the answers to topics that are appropriate. 

 

There are two free e courses and a multitude of videos here. 

 

http://support.sas.com/training/tutorial/

 

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 3 replies
  • 1194 views
  • 0 likes
  • 4 in conversation