DATA Step, Macro, Functions and more

What is the difference between statement and function?

Reply
Frequent Contributor
Posts: 81

What is the difference between statement and function?

 
Super User
Super User
Posts: 9,211

Re: What is the difference between statement and function?

Posted in reply to rajeshalwayswel
SAS Employee
Posts: 56

Re: What is the difference between statement and function?

[ Edited ]

Within the SAS language and documentation the words statement and function do conform to the definitions I've found on Wikipedia that describe the terms broadly as they apply to computing and programming in general.

https://en.wikipedia.org/wiki/Statement_(computer_science)

https://en.wikipedia.org/wiki/Subroutine  a.k.a. function

 

 myvariable = ranuni(0);
              ^^^^^^^^^    <= function (call)
 ^^^^^^^^^^^^^^^^^^^^^^^   <= statement
  

 

Ask a Question
Discussion stats
  • 2 replies
  • 134 views
  • 2 likes
  • 3 in conversation