BookmarkSubscribeRSS Feed
arpit
Calcite | Level 5
Kindly explain the difference between sas function and macro
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
For that, you can read the manual

http://support.sas.com/documentation/onlinedoc/base/index.html#base92
look at the
SAS 9.2 Language Reference: Concepts, Second Edition
and follow the index for macros and functions.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggest some SAS support website technical references and also SAS-hosted documentation, also available on the SAS support site at http://support.sas.com/ on this topic / post.

Typically a FUNCTION provides a defined purpose/use to perform some type of task, calculation, data-manipulation, or otherwise utility execution in the SAS environment. And the MACRO FACILITY is a language used within the SAS environment, where SAS programmers can exploit coding techniques to perform executed-once or executed-repetitively task processes to address a particular programming activity or to generate some result with SAS.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search arguments, this topic / post:

function introduction site:sas.com

macro introduction site:sas.com
arpit
Calcite | Level 5
Dear Sbb,

Thanks a lot for your information and explanation about this topic.

Regards,
Bina

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
  • 3 replies
  • 4787 views
  • 0 likes
  • 3 in conversation