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" ;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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