Description
The Data Selection screen is used to select rows from a table for display through the ASF-generated application.
Access
The Data Selection screen can be accessed for any table with a status of GENERATED. You can access the Data Selection screen in the following ways:
To display selected rows, enter selection criteria and press [Enter]. When ASF saves the criteria you have specified, press [Enter] again to access the Data Display screen, which displays the selected rows.
Sample Screen
CA DSEL CA - Automatic System Facility ** Data Selection ** DC560603 ENTER SELECTION CRITERIA Table Name: APPLICANT _ PF1 - Help _ PF2 - Message Screen Page: 1 of 1 ID Column Name Selection Criteria 0001 NAME 0002 STREET 0003 CITY 0004 STATE 0005 ZIP CODE 0006 PHONE NUMBER 0007 POSITION APPLIED FOR 0008 SALARY REQUIREMENT 0009 EVALUATION: STRONG,WEAK,MEDIUM Additional Selection Criteria $5 OR $6 OR #6 MATCHES '617'
Fields
Displays the name of the table as specified on the Activity Selection screen.
Invokes the Help screen.
Invokes the display of additional error messages on a separate screen. The message display line will tell you when there are error messages to be displayed.
Displays the current screen page number and the total number of pages in the page set. You can move to a particular page by specifying its page number, page forward using [PF8], or page backward using [PF7].
Displays the column ID number that can be used to reference the column in selection criteria or in calculations defined on the Extended Column Definition screen.
Displays the name of each column defined for the table.
Enter fixed-format expressions to select rows based on column values. Fixed-format expressions are explained below. Enter the expression next to the name of the appropriate column(s). If you enter selection criteria for more than one column, you are indicating that only those rows that meet all criteria for all columns are to be displayed.
Enter freeform expressions to select rows based on compound conditions. Freeform expressions can include compound conditions using the logical operators AND, OR, NOT, &, |, and ¬. You can use parentheses to affect the order in which logical operators are evaluated. Freeform expressions can be used in addition to, or instead of, fixed-format expressions to specify selection criteria. When used in conjunction with fixed-format expressions, freeform expressions can be used to override the implied AND connecting fixed-format expressions. Freeform expressions are discussed below.
Special Considerations
To select rows for display, specify selection conditions in the Selection Criteria and/or the Additional Selection Criteria fields. The Selection Criteria field accepts fixed-format expressions; the Additional Selection Criteria field accepts freeform expressions:
The following rules govern all selection criteria, both fixed-format and freeform:
A string containing mask characters can be used with the operators CONTAINS and MATCHES and must be enclosed in quotation marks. Column positions not included in the mask are assumed to contain any character.
|
Operator |
Meaning |
|---|---|
|
+ |
Addition |
|
- |
Subtraction |
|
* |
Multiplication |
|
/ |
Division |
ASF follows the standard order of precedence when evaluating arithmetic expressions. The order is multiplication and division from left to right, then addition and subtraction from left to right, with operations in parentheses resolved first. If more than one arithmetic expression has been defined in the selection criteria, they are evaluated in the order in which the columns were defined.
Fixed format selection criteria:
|
First Operand |
Conditional Operator |
Second Operand |
|---|---|---|
|
Column name (Provided by the system) |
EQ (assumed) = NE GT > LT < GE LE CONTAINS MATCHES |
Expression* |
|
|
EQ = NE |
Expression THRU expression Expression, expression... |
*Expression can be any of the following:
Note: Only the EQ(=) and NE operators can be used with a range (represented by THRU) or with a list of values joined by implied ORs (represented by commas).
Freeform selection criteria:
|
First Operand |
Logical Operator |
Second Operand |
|---|---|---|
|
* NOT (¬) $column-id comparison |
AND (&) OR (|) |
* NOT (¬) $column-id comparison |
*NOT is optional
Using $column-id as the comparison allows you to override the implied AND invoked when multiple fixed-format expressions are specified. For example, if you have specified fixed-format criteria for columns #1, #3, and #6, using fixed-format criteria alone implies that all three conditions must be true for a row to be selected. By using freeform selection criteria, you can specify $1 OR $3 as additional criteria. Then, the condition for column #1 or column #3 and the condition for column #6 must be true for the row to be selected.
Valid comparisons for freeform selection criteria:
|
First Operand |
Conditional Operator |
Second Operand |
|---|---|---|
|
#Column id Column name |
EQ = NE GT > LT < GE LE CONTAINS MATCHES |
Expression* |
*Expression can be any of the following:
The following examples illustrate the use of fixed-format and freeform expressions to specify selection criteria.
|
Copyright © 2014 CA.
All rights reserved.
|
|