11.5. Using Parameters in SAS Code

The previous sections showed how to create parameters and use them in queries or tasks. This section shows how you can create flexible SAS code by using the same parameters. When you run the SAS code, SAS Enterprise Guide will prompt you for the values of the parameters.

Adding Parameters to SAS Code

Here is a simple SAS program written in a Code window in SAS Enterprise Guide.

This program uses both the data value parameter created in section 11.1 (&HeightCutOff) and the variable name parameter created in section 11.4 (&GroupVar). &HeightCutOff is used in a WHERE statement to select only ...

Get The Little SAS® Book for Enterprise Guide® 4.1 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.