Resources

BY group Performance

/*--------------------------------------------------------------

                    SAS Sample Library

        Name: tmoex01.sas
 Description: Example program from SAS/ETS User's Guide,
              The TMODEL Procedure
       Title: BY group Performance
     Product: SAS/ETS Software
        Keys: nonlinear simultaneous equation models
        PROC: TMODEL
       Notes:

--------------------------------------------------------------*/

data d;
   call streaminit(1);
   do iby = 1 to 2;
      do jby = 1 to 10;
         do x = -500 to 500;
            y = 2*x + 1 + rand('normal');
            output;
         end;
      end;
   end;
run;

proc tmodel data=d;
   performance nthreads=4 bypriority=1 partpriority=1 / threadconfig timings;
   y = a*x + b;
   by iby jby;
   fit y;
quit;

proc tmodel data=d;
   performance nthreads=4 bypriority=1 partpriority=0 / threadconfig timings;
   y = a*x + b;
   by iby jby;
   fit y;
quit;