Enabling Distributed Parallel Execution of SAS Jobs

Some SAS programs contain multiple independent subtasks that can be distributed across the grid and executed in parallel. This approach enables the application to run faster. To enable a SAS program to use distributed parallel processing, add RSUBMIT and ENDRSUBMIT statements around each subtask and add the GRDSVC_ENABLE function call. SAS Grid Manager automatically assigns each identified subtask to a grid node.
You can use the SAS Code Analyzer to automatically create a grid-enabled SAS job. To use the SAS Code Analyzer, add PROC SCAPROC statements to your SAS program, specifying the GRID parameter. When you run the program with the PROC SCAPROC statements, the grid-enabled job is saved to a file. You can then run the saved SAS job on the grid, and SAS Grid Manager automatically assigns the identified subtasks to a grid node.
This is an example of the syntax for the SAS Code Analyzer:
proc scaproc;
     record '1.txt' grid '1.grid':
run;
remainder of SAS program...
For complete information and syntax for the PROC SCAPROC statement, see Base SAS Procedures Guide.
This is an example of the syntax used for enabling distributed parallel processing:
% let rc=%sysfunc(grdsvc_enable(_all_,server=SASApp));
options autosignon;
rsubmit task1 wait=no;
    /* code for parallel task #1  */
endrsubmit;
rsubmit task2 wait=no;
    /* code for parallel task #2 */
endrsubmit;
. . .
rsubmit taskn wait=no;
     /* code for parallel task #n   */
endrsubmit;
waitfor _all_ task1 task2 . . . taskn;
signoff _all_;
For more information, see GRDSVC_ENABLE Function.
For detailed syntax information, see SAS/CONNECT User's Guide.