HP 3000 Manuals

Decision Table Questions Screen [ HP ALLBASE/4GL Developer Reference Manual Vol. 2 ] MPE/iX 5.0 Documentation


HP ALLBASE/4GL Developer Reference Manual Vol. 2

Decision Table Questions Screen 

This screen allows you to define the questions that the decision table
tests.

Screen Image 

[]
Field Descriptions Decision Table Name. Enter the name of a decision table that has been defined on the decision table header screen. Secured. Display-only field indicating the status of the Secured field on the decision table header screen. Data name 1. You must complete this field for each decision table question. Enter the name of the first operand for the logic IF test. The entry in this field can be one of the following: * Whole number. * Literal. * Numeric or alphanumeric constant. * Variable or calculated item. * Screen field reference. * Scratch-pad field reference. * File record field reference. * Work area field reference. * Communication area field name. * Switch name or number. Data name 2. Enter the name of the second operand for the logic IF test. This field is only required if the particular decision table question uses a relational operator to perform the IF test. The acceptable entries for this field are the same as the entries for the Data name 1 field, except that you cannot use a switch name or number in this field. IF Test. You must complete this field for each decision table question. Enter the IF test to be applied to the operands in the Data name 1 field (and optionally the Data name 2 field). The IF test can test the relationship between the two operands according to a relational operator, or test the content of a single operand (Data name 1), or test the status of a switch. If you are testing the relationship between two different operands, the entry in this field must be one of the following relational operators: = equal to < > not equal to > greater than >= greater than or equal to < less than <= less than or equal to The edit codes for the operands used with relational operators determine the nature of the relational test. If you are comparing two numeric values, all relation tests are performed according to strict numerical order. If you are comparing two alphanumeric fields or comparing a field with a literal, the comparison is performed on a character-by-character basis according to the system collating sequence. (Refer to appendix A.)
NOTE If you are using a relational operator to test the relationship between two operands, make sure the two operands both have the same edit code, or contain the same type of data.
If you are testing the contents of the operand in the Data name 1 field, the entry in this field must be one of *BLANK, *ALPHA, *NUMERIC, or *NULL. The *NULL contents test is only valid for testing the contents of a file record field for an HP ALLBASE/SQL table or select list. If you are testing the status of a switch, the entry in this field must be either *ON or *OFF. Function Keys f1 Header Cancels the current screen and displays the decision table header screen. f2 Actions Cancels the current screen and displays the decision table actions screen. f3 R'ships Cancels the current screen and displays the decision table relationships screen. f4 Generate D.Table Generates the decision table. Additional Information The screen allows you to enter up to eight questions for the table. Each question must be expressed in the same format as a logic IF command. That is, one of the following forms: operand relational-operator operand operand *BLANK operand *ALPHA operand *NUMERIC operand *NULL switch-name *ON switch-name *OFF The entry in the Data name 1 field corresponds to the first of the operands, The entry in the IF Test field must be one of: relational-operator, *BLANK, *ALPHA, *NUMERIC, *NULL, *ON, *OFF. An entry in the Data name 2 field is only required if the IF test uses a relational operator, and corresponds to the second operand. Refer to chapter 12 for details of the logic IF command.


MPE/iX 5.0 Documentation