DATA Step, Macro, Functions and more

%include Macro Function

Reply
Contributor
Posts: 59

%include Macro Function

I have 4 sas codes that I want to run simultaneously and not "sequentially" through SAS.If I use %include in a session, it would run these 4 codes one after the other.

Is there a way with %include that we would be able to run all these 4 codes simultaneously?
Thanks
Super Contributor
Posts: 260

Re: %include Macro Function

Posted in reply to tejeshwar
If you have licence for SAS/CONNECT, you can run 4 jobs simultaneously using the MP-connect facility.
See http://support.sas.com/documentation/cdl/en/connref/59593/HTML/default/a001249955.htm for details.

Regards.
Olivier
Contributor
Posts: 59

Re: %include Macro Function

Posted in reply to tejeshwar
Thanks for Replying,

I have licence to "SAS/CONNECT", i tried the below but still getting an error.

option autosignon=yes;
option sascmd="!sascmd";

rsubmit process=task1 wait=no;

Some code.........

endrsubmit;

rsubmit process=task2 wait=no;

Some Code.....

endrsubmit;

Below is the error I am getting in the log

ERROR: A communication subsystem partner link setup request failure has occurred.
ERROR: SAS did not start properly. Please insure that your sascmd value does not attempt to run SAS
in the background.
ERROR: Remote submit to TASK1 cancelled.

ERROR: A communication subsystem partner link setup request failure has occurred.
ERROR: SAS did not start properly. Please insure that your sascmd value does not attempt to run SAS
in the background.
ERROR: Remote submit to TASK2 cancelled.
Super Contributor
Posts: 260

Re: %include Macro Function

Posted in reply to tejeshwar
Hello.
You will find a SAS Note about this error and the way to correct it.
http://support.sas.com/kb/11/892.html

Regards.
Olivier
Contributor
Posts: 59

Re: %include Macro Function

Posted in reply to tejeshwar
Thanks Olivier,

I have a fair bit of idea now, however the solution suggested online on the above link doesnt gives a step-by-step information, planning to raise a ticket online with SAS.

Thanks for replyingSmiley Happy

Tejeshwar
Ask a Question
Discussion stats
  • 4 replies
  • 153 views
  • 0 likes
  • 2 in conversation