BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
shoin
Lapis Lazuli | Level 10

When you run a sas code with fullstimer in batch, usually at the end of the said code, you also get a summary stats for the whole code run.  This I do not see produced in interactive (EG) produced log.

1. I have tried PROC PRINTTO & ALTLOG still the same log as in interactive.

 

 I read from SAS DOCs:

The SAS Log in Interactive Mode

 

In interactive mode, the SAS log is opened when SAS starts. The SAS log is not named until you save it in the active window. The name that you specify must follow the file naming conventions for your operating environment. The SAS log cannot be saved automatically in interactive mode. However, SAS can create a second copy of the SAS log if the ALTLOG= system option is set either at SAS invocation or in a configuration file. 

 

However nothing as in how to produce the same fullstimer results that are produced if the same code is run as batch.  I did setup ALTLOG as well as tried using PROC PRINTTO but no resoltuion.

 

This is a sample summary stats of a simple code I ran as batch, in addition to fullstimer at ea. step, I also got a nice summarized stanza of stats.

 

/*end of code in addition to ea. step*/

SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: The SAS System used:
real time 0.77 seconds
user cpu time 0.18 seconds
system cpu time 0.28 seconds
memory 8397.56k
OS Memory 9300.00k
Timestamp 11/15/2018 10:48:46 AM
Step Count 2 Switch Count 16

1 ACCEPTED SOLUTION

Accepted Solutions
PeterClemmensen
Tourmaline | Level 20

Hmm, I do not know of an option to get the full run time for the entire batch directly in SAS. 

 

You can however use the LOGPARSE Macro and add the run times

View solution in original post

3 REPLIES 3
SuryaKiran
Meteorite | Level 14

You might need to set the option:

Options fullstimer;
Thanks,
Suryakiran
PeterClemmensen
Tourmaline | Level 20

Hmm, I do not know of an option to get the full run time for the entire batch directly in SAS. 

 

You can however use the LOGPARSE Macro and add the run times

shoin
Lapis Lazuli | Level 10

Thank you for the suggestion.  I was looking for a quick & dirty w FULLSTIMER, just the inability to get full stats, as in summary at the end of code is annoying.  

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 3 replies
  • 1731 views
  • 0 likes
  • 3 in conversation