Call a Procedure

Now that a SAS data set that contains variables of interest is on the server, you can call any SAS procedure to analyze the data. In order to tell the IMLPlus language that you want certain statements to be sent to the SAS System rather than interpreted as IMLPlus, you must bracket your SAS statements with SUBMIT and ENDSUBMIT statements.

Add the following statements at the bottom of the program window, and select ProgramRun from the main menu.

   submit;
   proc reg data=Hurr CORR;
      model wind_kts = min_pressure;
   run;
   endsubmit;

When you run the program, SAS/IML Studio calls the REG procedure with the CORR option. The CORR option prints out the correlation matrix for the variables in the MODEL statement. (If you are using the HTML output destination, and if ODS graphics are on, you will also see plots that are created by the REG procedure.)

The REG procedure displays its tables in the SAS/IML Studio output window as shown in Figure 4.1. From the output you can see that the correlation between these two variables is $-0.9336$. The R-square value is $0.8716$ for the line of least squares given approximately by $\mr {wind\_ kts} = 1333 - 1.291 \times \mr {min\_ pressure}$.

Figure 4.1: Calling the REG Procedure

Calling the REG Procedure