BookmarkSubscribeRSS Feed
vijay1
Calcite | Level 5

Hi Guys,

 

I have noticed that SAS code runs faster in Control M/ Command line when compared to SAS EG or Base SAS.

 

It takes 3X times in SAS EG compared to Control M.  Why so?

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Do you mean when you run something in Batch mode?  If so then yes it will run faster than EG.  It is not running any of the backend EG stuff that is why.

Maybe try posting specific examples, log times and such like, but I think you will find the simplest answer is that Batch is running in very basic mode, where interactive SAS or EG have a lot more going one.  Isn't EG server based, so there would be communication with the server straight off.

Kurt_Bremser
Super User

Define what you mean by "three times faster". Just the transfer of code to the server process and results (results, data, log) back to EG takes time that can be several orders of magnitude more than the runtime of the code itself.

Or have you compared the CPU/real time values of the individual steps? The user-ID that Control-M uses for submitting batch jobs might have another environment (more memory allowed/larger MEMSIZE, other WORK/UTILLOC, ...) than the user-ID you use in EG.

 

ChrisNZ
Tourmaline | Level 20

If the code is running on the same machine (is it? does EG connect to another server?) at the same time (same machine load? no other processes?) then the difference can only be due to configuration differences between the SAS sessions (different config.sas files, with different memory or CPU setting for example).

 

You should look at the log and find one step where the difference is significant and investigate from there.

 

 

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
  • 1481 views
  • 0 likes
  • 4 in conversation