Smart Parms Criteria Entry Rules
When using Standard Parameters, the user must know various SQL rules for working with text fields, numeric values, lists, and ranges of values. Smart Parms simplify query writing by using standard rules for processing parameters. The rules used by Smart Parms are similar to those used in Spreadsheet Server, for specifying segment values.
See the following table for a comparison, when specifying criteria values used by Standard Parameters, versus Smart Parms:
Note: The following table uses SQL (iSeries DB2) rules for the comparison.
Criteria Type |
Standard Parameters |
Smart Parms |
---|---|---|
Single Value: Text |
|
|
Single Value: Numeric |
|
|
Single Value: Date |
|
|
Mask (Wildcard) |
|
|
Mask (Wildcard): All Values |
|
|
Mask (Wildcard): Single Value |
|
|
Range: Text |
|
|
Range: Numeric |
|
|
Range: Date |
|
|
Value List: Text |
|
|
Value List: Numeric |
|
|
Value List: With Exclude |
N/A |
Note: May not exclude a segment list. |
Field is Blank |
N/A |
|
Field is Not Blank |
N/A |
|
Greater Than, or Equal To |
|
|
Less Than, or Equal To |
|
|
Logical NOT (using alphabet as dataset) |
|
|
Segment List |
N/A |
|
@ Field |
N/A |
One of the following:
For example, Note: Alias is as defined in Application Configurator. |
- The range delimiter, list separator, and exclusion characters are defined in the user's Spreadsheet Server Settings.
- @ Fields allow for using different fields in the file as criteria, for retrieving data without having to switch the query.
- For Smart Parms, comparison operators (
=
,<>
,<
,>
,BETWEEN
,LIKE
,NOT
, etc.) are not used . If you are using SmartParms, editing the criteria value in the criteria builder results in an error.