BookmarkSubscribeRSS Feed
balu_g
Fluorite | Level 6

 

 

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?

9 REPLIES 9
Community_Guide
SAS Moderator

Hello @balu_g,


Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    use_buttons.png
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

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.

 

edit_post.png

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

.
Community_Guide
SAS Moderator

Hello @balu_g,


Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    use_buttons.png
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

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.

 

edit_post.png

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

.
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

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

 

PaigeMiller
Diamond | Level 26

@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.

--
Paige Miller
balu_g
Fluorite | Level 6
the other document does not have it .
PaigeMiller
Diamond | Level 26

Well, there is, there is plenty of documentation that covers procedure statements and ODS statements.

http://support.sas.com/documentation/94/index.html

--
Paige Miller
balu_g
Fluorite | Level 6
can you send me link pls
PaigeMiller
Diamond | Level 26

I added a link above. 

--
Paige Miller
Astounding
PROC Star

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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 9 replies
  • 1874 views
  • 2 likes
  • 5 in conversation