Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this page:

...

  • with a dedicated interface Reference Underlying SMF via eagle_ml-2-0_default_in_xml_reference stream (objectType = UnderlyingSMF)
  • with SMF via eagle_ml-2-0_default_in_xml_smf_generic stream (objectType = GenericSMF with UnderlyingModel)

Related rules

  • Default rule for Underlying processing is xml-smf_underling.xml
  • If the Batch Key is set, the data is routed to xml-smf_underling_batch.xml

...

Note: Only record with null END_DATE in Data Base can be deleted using this method. For other delete methods please check Underlying Delete Reinsert Switch and Underlying Batch Reinsert Mode

Processing Options and Config Parameters

...

Local parameter - underlyingDeleteReinsertSwitch

Setting to Y allows to delete the underlying record by SecurityAlias + UnderlyingSecurityAlias key and reinsert a new incoming one.

Underlying Retain Begin Date Switch

...

Setting to Y allows to control the logic for the begin date and end date for underlying security relationships.
The new setting enables the following logic:

  • Maintains a single underlying record per relationship with a null end date, where the record key = Security alias + Underlying type.
    To avoid such behavior the beginDate with 'currentdate' valuse can be used. It will allow to keep multiple Security alias + Underlying type records with null end date and different Underlying Security Aliases. 
    Example of usage:

    Code Block
    languagexml
    <underlyingSMF>
    	<underlyingRetainBeginDateSwitch>Y</underlyingRetainBeginDateSwitch>
    	[...]
    	<beginDate>currentdate</beginDate>
    </underlyingSMF>


  • Updates the existing DB record in case the record key = Security alias + Underlying type + Underlying security alias, but does not update the existing begin date in DB
  • Retains all the default rules for underlying SMF records

...

There will be only one record, meaning that only one underlying SMF will be open for a combination of Main Security Alias + Underlying Type.
If there is an open record for the same combination of Main Security Alias and Underlying Type as that of the incoming record, the open record will now be closed with the end date = incoming begin date - 1.
This option may be turned on via the global flag W_UNDERLYINGSMF_UNIQUE_RECORD_PER_TYPE_SWITCH set to Y or within the incoming file.
Example of usage:

Code Block
languagexml
<header> 
   <objectType>UnderlyingSMF</objectType>
   <processingOptions>UNIQUE_RECORD_PER_UNDERLYING_TYPE</processingOptions>

...


</header>


This new option may be used independently or in combination with the W_UNDERLYINGSMF_DELETE_REINSERT_SWITCH.
If both the W_UNDERLYINGSMF_DELETE_REINSERT_SWITCH and W_UNDERLYINGSMF_UNIQUE_RECORD_PER_TYPE_SWITCH are set to Y, the expected behavior is as follows:

  1. The existing records with the same security alias (main security) + underlying alias (underlying security) as that of the incoming record are deleted before load.

  2. All open records with the same Main security and Underlying Type will be closed with the end date = incoming begin date -1.

  3. An error is thrown when the incoming begin date is less than the existing begin date in the database.

  4. A new record is stored in the database.

Batch Mode

Refer to Underlying Batch Reinsert Mode