Definition of Statements
A SAS statement is a series of items that can include keywords, SAS names, special characters, and operators. All SAS statements end with a semicolon. A SAS statement either requests SAS to perform an operation or gives information to the system.
statements that are used in DATA step programming
statements that are global in scope and can be used anywhere in a SAS program.
The Base SAS Procedures Guide gives detailed descriptions of the SAS statements that are specific to each SAS procedure. SAS Output Delivery System: User's Guide gives detailed descriptions of the Output Delivery System (ODS) statements.
then what is procedure statements and example ?
what is ODS statements and example?
Hello @balu_g,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PeterClemmensen
.Hello @balu_g,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PeterClemmensen
.Searching SAS communities examples may assist.
For a start to understand about Global please find the link below a possible starting point.
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000206954.htm
@balu_g wrote:
This documentation covers two types of SAS statements:
...
statements that are used in DATA step programming
statements that are global in scope and can be used anywhere in a SAS program.
then what is procedure statements and example ?
what is ODS statements and example?
They are statements covered by other documentation.
Well, there is, there is plenty of documentation that covers procedure statements and ODS statements.
http://support.sas.com/documentation/94/index.html
I added a link above.
Here's an example of a procedure:
proc print data=mydata;
var salesman month sales;
run;
This example assumes you have already created a SAS data set named MYDATA that contains variables named SALESMAN, MONTH, and SALES.
ODS statements are none of your business at this point. The vast majority of the time, you need to become familiar with several types of reports before ODS becomes even remotely useful.
Here is a list of procedures that you can use to begin your education: PRINT, MEANS, FREQ, SORT. Study them, learn the basics, because you will be using them probably every week during the next few years.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.