11.1. Creating Parameters for Data Values

Parameters allow you to develop projects that are flexible. For example, when you run a query with a filter condition that uses a parameter, a box will appear, prompting you to specify a value for that parameter. The query will be filtered according to the value you enter. This allows you to create one query that can generate many different results.

There are three places you can use parameters in SAS Enterprise Guide: in a query, in a task, and in SAS code. The example in this section creates a parameter that will then be used in a query in section 11.2. Sections 11.3 and 11.4 discuss creating and using a parameter in a task. Section 11.5 shows how to use parameters in SAS code.

To create a parameter, ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.