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!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 885 views
  • 0 likes
  • 5 in conversation