Write and run SAS programs in your web browser

How to specify a grid node when submitting code

Reply
Contributor
Posts: 32

How to specify a grid node when submitting code

[ Edited ]

We have Studio setup in a GRID environment with 7 GRID nodes.  For testing, I would like to specify which GRID node the code I submit runs on.  I tried using:

%let rc=%sysfunc(grdsvc_enable(_all_, server=SASApp;jobopts=hostname));
%let hostname=host=<server_name>%str(;);

...before my code, but it still ran on the node that Studio connected to at signon.

 

What am I missing?

 

Thanks! 

Community Manager
Posts: 542

Re: How to specify a grid node when submitting code

Hi @dgower, I noticed there's an open Tech Support ticket (seemingly) for this and you've got a discussion going in the admin forum. Hope this is settled satisfactorily soon, if not already! Thanks for using the SAS communities.

Contributor
Posts: 32

Re: How to specify a grid node when submitting code

Hi Beverly,

 

The response to the track was:

You would want to use the WORKLOAD option in conjunction with the addresource command, as well as defining the resource in
Management Console. Essentially we'd create a new resource (in my example below, "node1") that is assigned in LSF to a single node
esh our LSF configuration. Then, add that to the Grid Server options in Metadata. Finally in the program we enable grid with the
workload option, and use the "signon" command to start a session through the grid, then rsubmit to submit code in that session.

I don't have time to test this and have closed the track.  I need to focus on a more urgent issue.

 

Thanks,

 

Dan

Community Manager
Posts: 542

Re: How to specify a grid node when submitting code

Appreciate the need to prioritize! Smiley Happy


Ask a Question
Discussion stats
  • 3 replies
  • 185 views
  • 0 likes
  • 2 in conversation