BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
GN0001
Barite | Level 11
Hello all,
Can anyone explain about source source 2?
What is the impact of using it?
Regards
Blueblue
Blue Blue
1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

SOURCE is on by default (SOURCE2 is not).

options nosource;

is used the suppress the writing of code to the log,

options source;

turns it back on.

Enterprise Guide (e.g.) does this for part of the code it sends before every execution.

View solution in original post

4 REPLIES 4
ballardw
Super User

These are system options that provide some additional control over what gets written to the log.

Source says to show submitted code in the log.

Source2 typically is set to show code that runs from an %include file

GN0001
Barite | Level 11

Thanks for the response.

I couldn't understand source. Why do we use it if this option doesn't write to SAS Log?

Regards,

blueblue

 

Blue Blue
Kurt_Bremser
Super User

SOURCE is on by default (SOURCE2 is not).

options nosource;

is used the suppress the writing of code to the log,

options source;

turns it back on.

Enterprise Guide (e.g.) does this for part of the code it sends before every execution.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2051 views
  • 4 likes
  • 3 in conversation