How to run two macro parallel in same prog?

Reply
Contributor
Posts: 60

How to run two macro parallel in same prog?

I have written a SAS prog to generate profile report for my data analysis purpose. Data set having 60+ milions of records.I have separated my Character variable and Numeric variable.

%char_prof;

%num_prof;

I want to run both of the macro parallel to increase the efficiency of my program. My objective is to minimize the time of running the report. I have tried with below code but it’s throwing an error. I am using SAS EG for running my prog but in future I need to run my prog in unix enviroment

% let rc=%sysfunc(grdsvc_enable(_all_, resource=SASApp));

options autosignon;

rsubmit task1 wait=no;

%char_prof;

endrsubmit;

rsubmit task2 wait=no;

%num_prof;

endrsubmit;

waitfor _all_ task1 task2;

signoff _all_;

Please suggest me if there is any other way also to run the code parallel.Let me know if any other info is required from my side.

Thanks,

Pravin

Ask a Question
Discussion stats
  • 0 replies
  • 198 views
  • 0 likes
  • 1 in conversation