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.

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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