Defining a criteria requires you to complete a description panel, which identifies the criteria, and then specifying the actual criteria expression on a second panel.
You can also, optionally, define a series of exit parameters on a third panel if your criteria makes use of the criteria exit.
PROD--------------------- CAS : Criteria Description ---------------Page 1 of 3 Command ===> Function=Add Appl ID .........+ ___ Criteria Type .... _______ (PUBLIC or PRIVATE) Userid ........... ________ (Userid if PRIVATE) Criteria Name .... ________ Description ...... ________________________________ Run Time Panel ... ____________ Help Name ........ ____________ Exit Name ........ ________ Data Source ...... ____________ Comments ......... __________________________________________________ __________________________________________________ __________________________________________________ __________________________________________________ F1=Help F2=Split F3=File F4=Save F5=Parms F8=Forward F9=Swap F12=Cancel
For information about the fields and options on this panel, press F1 (Help).
After completing the criteria description, press F8 (Forward) to specify the actual criteria on the Criteria Text panel.
PROD------------------------- CAS : Criteria Text ------------------Page 2 of 3 Command ===> Function=Add Scroll ===> PAGE Appl ID ... ZPR Type.Userid ... PUBLIC Name ... ASSIGN1 LINE <---+----10---+----20---+----30---+----40---+----50---+----60---+----70--> **** ****************************** TOP OF DATA ******************************* 0001 STATUS NE ALL ’CLOSED’,’CANCELLED’ AND ASSIGNEE EQ ’&USERID’ **** ***************************** BOTTOM OF DATA ***************************** F1=Help F2=Split F3=File F4=Save F5=Find F6=Change F7=Backward F8=Forward F9=Swap F12=Cancel
The criteria text panel is used to define the condition (or rule) for criteria. For example, the expression on an &BOOLEXPR statement or the scan expression on an &NDBSCAN statement.
The simplicity or complexity of the criteria and its syntax is dependent on what it is to be used for. For example, if it is to be used as the scan expression on an &NDBSCAN statement then it must obey the syntax rules for an &NDBSCAN scan expression.
Criteria can consist of constant and variable data. Constant data never changes, for example, the identifier of an attribute. Variable data can change, for example, the current date. Variable data in the criteria is represented by an NCL variable, for example, &USERID. The NCL variables defined in the criteria, except system variables, must be set by the criteria exit or by the user entering data on the run time panel. The variable data in the criteria is substituted by the system when the criteria is built.
In the panel shown before, the criteria specifies all problems that are not closed or canceled that belong to the current user.
If the criteria uses an exit procedure, you can define exit parameters to be used by that procedure. To achieve this, press F5 (Parms) in the CAS : Criteria Description panel.
After the above action, the CAS : Criteria Exit Parameters panel is displayed.
PROD------------------- CAS : Criteria Exit Parameters -------------Page 3 of 3 Command ===> Function=Add Scroll ===> PAGE Appl ID ... ZPR Type.Userid ... PUBLIC Name ... ASSIGN1 LINE <---+----10---+----20---+----30---+----40---+----50---+----60---+----70--> **** ****************************** TOP OF DATA ******************************* SEVERITY=50 FINALDAY=MON | F1=Help F2=Split F3=File F4=Save F5=Find F6=Change F7=Backward F8=Forward F9=Swap F12=Cancel
This panel lets you enter parameters for the exit procedure in the format required by the exit.
After specifying the criteria, press F3 (File).
| Copyright © 2008 CA. All rights reserved. |
|