Follow these steps:
The Add Rule Actions—Data Generation panel is displayed. Use this panel to generate a value for an input or an output field. The target field must be a number, numeric currency, or a numeric date. A sample panel is shown next.
------------------- ADD RULE ACTIONS - DATA GENERATION---------------16:51:53 ENTER COMMAND ===> RULE NAME: RUL00001 RULESET NAME: TCADS.CCC.ORDERAPP.001 TEST STREAM NAME: TCADS.CCC.ORDERAPP.001 SCREEN LOCATION: ROW COL LEN VALUE __ ___ ___ ____________________________________________________________ ____________________________________________________________ ____________________________________________________________ INITIAL VALUE ===> N (Y/N) OPERATOR ===> _ (ADD=+,SUBTRACT=-,MULTIPLY=*,DIVIDE=/) OPERATOR VALUE ===> _______ (1 - 9999999) OVERFLOW ===> N (Y/N) ACCUMULATE ===> N (Y/N) SCOPE ===> _ (S=SYSTEM,T=TERMINAL,U=USER) DATE AGING FORMAT ===> ______________ AGE DATE BY D|Y ===> _ (D=DAYS,Y=YEARS) INPUT/OUTPUT FIELD ===> I (I=INPUT,O=OUTPUT) F1-HELP F2-PREVIEW F3-END F4-RETURN F9-SELECT
For a description of the RULE NAME, TEST STREAM NAME, RULESET NAME, ROW, COL, and LEN fields, see the section Use the Rules Function Panels.
Indicates the location of the field that contains the value being accumulated or the date being aged. You can fill in the location values by either using a model screen, or by typing the values directly into the appropriate columns.
Note: The field containing the value being accumulated or the date being aged can be either an input field or an output field.
Indicates whether or not you will supply a starting value for the generated field. Specify N (no) to use the value in the specified field as the initial value. Specify Y (yes) to supply a different starting value; type the new value to be used in the VALUE field.
Specifies the arithmetic operation to be performed on the initial value; a value is required. Valid values are: + (add the operator value to the initial value), - (subtract the operator value from the initial value), * (multiply the initial value by the operator value), or / (divide the initial value by the operator value).
Type a whole number that is to be added to, subtracted from, multiplied by, or used as the divisor of the initial value; a value is required. Valid values are 1 to 9,999,999.
Indicates whether processing is to continue if a value overflows the target field length. Specify Y (yes) to ignore any overflows and continue processing. Specify N (no) if overflowing the field boundaries is not allowed; processing will stop and the Mismatch panel will be displayed.
Indicates whether or not you want to use the last generated value for this field as the basis for the next generated value for this field. Type N (no) if you do not, Y (yes) if you do.
If you specify Y, then a value for SCOPE is required. SCOPE controls how the data is accumulated: by user, by terminal, or by system.
Note: If a data generation rule action is changed during a run and the accumulator is set to Y, then the accumulator will not be adjusted for the remainder of the run. The only exception is if the length of the value has changed.
When Y is specified for ACCUMULATE, you must indicate how the data is to be accumulated. Specify S (system) to accumulate the data by system; specify T (terminal) to accumulate the data by terminal; specify U (user) to accumulate the data by user.
Specify the date format you are using in this application. This value is required if the initial value or the value found at the screen location is a date. Valid date formats are:
MMDDYY MM/DD/YY MM / DD / YY YYDDD
YYMMDD YY/MM/DD YY / MM/ /DD
YYDDMM YY/DD/MM YY / DD / MM
In any of these formats, the year can be specified as two characters (YY) or four characters (YYYY). You can also replace the / with any national character (such as a -). However, the format, the format's length, and the separator characters specified in the date aging format must match what is found in the screen location during the run. If they do not match, a conflict will occur and the Mismatch panel will appear.
If you specify a value for DATE AGING FORMAT, then you must also specify a value for AGE DATE BY.
Specify how the date is to be aged: by day (D) or by year (Y).
Indicates whether this rule applies to an input or an output screen. Specify I for input; O for output.
|
Copyright © 2012 CA.
All rights reserved.
|
|