BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
POOJA_J
Obsidian | Level 7

I read in a book, a single statement as well as multiple statements can be called as a program.

Plz explain what can be an example of a single statement which itself can be called a program?

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

A sas program contains SAS statements.  Typically multiple statements that create steps etc.  But a SAS program could have a single statement, such as any global statement.

 

For example, a program with single title statement is still a program, and it would run.

title "hello" ;

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

Trivial example.  Create a file named find_sas_version.sas that contains:

%put &sysvlong=;

Run it.

 

Quentin
Super User

A sas program contains SAS statements.  Typically multiple statements that create steps etc.  But a SAS program could have a single statement, such as any global statement.

 

For example, a program with single title statement is still a program, and it would run.

title "hello" ;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 3 replies
  • 908 views
  • 2 likes
  • 3 in conversation