First some background. I'm using SAS Enterprise Guide 4.1 (EG) with
SAS 9.1. In the setup I have here, when I submit a job, I can either
wrap the code in rsubmit and endrsubmit and have it "load balanced"
across one of three severs, or I can leave the rsubmit off and
everything will run on the main server.
Now I know in EG there is a way to set up "Before and After" code
options so that the rsubmit stuff is automatically added to my code
every time I run a job. However, I like to be able to control whether
my jobs are synchronous or asynchronous and changing the "Before and
After" options affects all my code at once.
What I currently do is add the following code at the beginning of each
of my pieces of code:
signon &task1. ;
rsubmit &task1. wait=yes persist=no;;
What I want to do is put this in a macro with the values for wait= and
persist= as variables and then place the macro in one of our common
directories so that all I have to do is put something like
%rsub(yes,no) at the top of my code.
I've had trouble, however, getting the rsubmit to take from macro.
Has anyone else attempted something like this and gotten it to work?
Is it possible to get rsubmit to work from a macro like that? If not,
is there another way that anyone can think of that will let me put the
rsubmit in my code using a one liner like %rsub?
Thanks!!!
Jonathan Taylor
|
|
0
|
|
|
|
Reply
|
JT
|
12/17/2010 3:37:26 PM |
|