DATA Step, Macro, Functions and more

running SAS Programs or Macros in parallel

Reply
Super Contributor
Posts: 371

running SAS Programs or Macros in parallel

Hello,

1) If I want to run more than sas programs or macro in parallel

 

ex:

%marco test1;

data one;

v=2;

run;

%ment test1;

 

%marco test2;

data one;

w=2;

run;

%ment test2;

 

2) unzip in parallel so many file 

If I want to unzip R1.zip, R2.zip,.............Rn.zip

Thank you

 

 

 

Super User
Posts: 5,255

Re: running SAS Programs or Macros in parallel

Two options:

If you got SAS/CONNECT licensed use the MP CONNECT facility.

Otherwise, run them in parallel in the background /batch from os shell/prompt.
Data never sleeps
Super Contributor
Posts: 371

Re: running SAS Programs or Macros in parallel

Thank you

I can try this one

"run  in parallel in the background /batch from os shell/prompt."

But , If i have a hundrerd of programs, I need so many sessions and works ?

Thank you.

 

Super User
Posts: 5,255

Re: running SAS Programs or Macros in parallel

That's normal scheduling planning. Find how much resources each job requires and calculate how many parallel jobs you can have. You probably need to run sequential as well.
If this a daily job you might want to look at a professional scheduler that automatically submits jobs when there are available resources.
Data never sleeps
Ask a Question
Discussion stats
  • 3 replies
  • 230 views
  • 1 like
  • 2 in conversation