BookmarkSubscribeRSS Feed
reone
Calcite | Level 5
Hi to all,

Is there some SAS proc able to Identify the SAS program NAME(or path of the SAS Programm) from SAS dataset?

thanks!
5 REPLIES 5
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Hello Reone,

It is not clear from your post what do you mean. Is it possible to keep program names (and paths) in SAS dataset? The answer is yes, but is it what you need?

Sincerely,
SPR
Peter_C
Rhodochrosite | Level 12
Reone,
the answer to your question is NO
It would be possible, if the programmer of the process creating the data set, took the trouble to add that information to (the label of) the data sets created, but that seldom happens in my experience.

good luck
peterC
data_null__
Jade | Level 19
Do you remember when SAS data sets had "HISTORY"?

It included the source data that created the data set. Which could be a data step but was usually PROC SORT. 🙂
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
While you are running SAS programs in "batch" from a "SYSIN" source (depends on your SAS session/environment though), consider that there is current-environment information available, if you wanted to do something with that. Your interest/purpose is unclear, based on your post -- so what would you with the info and when would you want to know about the "event"??

Mostly you will find info about the SYSIN option in the particular SAS companion guide for your Operating System.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic / post:

batch program source sysin option site:sas.com
Peter_C
Rhodochrosite | Level 12
Ah, yes, aaaaah remember it well!
(almost a song)
And as you say, the final step in the history would be a sort
- but in an early release the last "n" steps were kept where that "n" was a history option which we set option history= 7 so the seven latest steps writing the table were available.
I guess it might need a very large header to keep enough versions for everyone!

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

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 1650 views
  • 0 likes
  • 5 in conversation