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" ;
The Boston Area SAS Users Group is hosting free webinars!

Register now at https://www.basug.org/events.

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" ;
The Boston Area SAS Users Group is hosting free webinars!

Register now at https://www.basug.org/events.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 1456 views
  • 2 likes
  • 3 in conversation