Functional Description
Purpose
This Named Event Rule will perform the necessary deletes from the F48S95 (Billing AAI's) and the
F4090 (AAI Record Types) files depending on the directive issued from the calling application.
Setup Notes and Prerequisites
You will need to specify 1 of the following 5 directives:
"1" - Delete all Base and Reallocation Rules (F48S95) associated with the AAI Table
Number. Also, delete the AAI Record Type (F4090) representing the AAI Table
Number.
Required parameters are:
Table Number, Table Key Type, Table Key Value, Beginning Effective Date, and
Ending Effective Date.
Required parameters are:
Table Key Type
Table Key Value
Beginning Effective Date
Ending Effective Date
Required parameters are:
Table Key Type
Table Key Value
Beginning Effective Date
Ending Effective Date
Unique Key Identifier
Required parameters are:
Required parameters are:
* Parent Unique Key Identifier - This field will carry the same value
found in the Unique Key ID for it's associated parent Base Rule. This
field will be used in replace of the Unique Key ID when locating associated
Reallocation Rules.
Special Logic
Technical Specification
Main Program
If BF Directive is equal to "1"
F48S95.Delete
BF AAITableNumber = TK Number - AAI Table Number
F4090.Delete
BF AAITableNumber = TK Number - AAI Table Number
Else
IF BF Directive is equal to "2"
F48S95.Delete
BF AAITableNumber = TK Number - AAI Table Number
BF TypeOfKey = TK Key Type
BF TableKey = TK Table Key
BF DateBeginningEffective = TK Date - Beginning Effective
BF DateEndingEffective = TK Date - Ending Effective
Else
If BF Directive is equal to "3"
F48S95.Delete
BF AAITableNumber = TK Number - AAI Table Number
BF TypeOfKey = TK Key Type
BF TableKey = TK Table Key
BF DateBeginningEffective = TK Date - Beginning Effective
BF DateEndingEffective = TK Date - Ending Effective
BF UniqueKeyIDInternal = TK Unique Key ID (Internal)
Else
If BF Directive is equal to "4"
F48S95.Delete
BF UniqueKeyIDInternal = TK Unique Key ID (Internal)
Else
If BF Directive is equal to "5"
F48S95.Delete
BF UniqueKeyIDInternal = TK Unique Key ID (Internal)
End If
End If
End If
End If
End If
D48S0095 - Delete Billing AAI Base and Reallocation rules
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
AAITableNumber | ANUM | MATH_NUMERIC | OPT | INPUT |
You will need to specify 1 of the following 5 directives:
| ||||
TypeOfKey | TYKY | char | OPT | INPUT |
A code that the system uses in combination with the table key to locate and validate the source and workfile transactions against the
| ||||
TableKey | TKEY | char | OPT | INPUT |
A value that the system uses in combination with the key type to locate and validate workfile transactions against the various tables in the
| ||||
DateBeginningEffective | EFTB | JDEDATE | OPT | INPUT |
The date that an address, item, transaction, or table record becomes active. The meaning of this field differs, depending on the program.
| ||||
DateEndingEffective | EFTE | JDEDATE | OPT | INPUT |
The date on which the item, transaction, or table becomes inactive, or through which you want transactions to appear. This field is used
| ||||
UniqueKeyIDInternal | UKID | MATH_NUMERIC | OPT | INPUT |
This field is a unique number used to identify a record in a file. | ||||
Directive | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. |
None |
None |