Instance to Instance (I2I) EagleML is an EJM feature that provides data interaction between several Eagle environments.
Note
The following are some helpful FAQs, click a question to see the answer.
General Questions
Filter Questions
Held Security Filters Questions 1: If the held position source is not selected, what is the default value? Does the extract look at all position sources? 2: If the held position source selected, e.g. heldpositionsources = STARDIRECT, does the extract looks at all positions with source = STARDIRECT? 3 and 4: Same questions for Held Cash Activity Source and Held Corporate Action Source filters.|8892]
A:
1: If Held Position Source parameter is empty, the Held Position SQL query will not be executed. This means that the extract looks thru all positions sources (doesn't filter them).
2: If Held Position Source parameter is set (for example: heldpositionsources = STARDIRECT), then all positions with source = STARDIRECT will be extracted.
3: This is also true for for Held Cash Activity Source. If Held Cash Activity Source is empty, then the Held Cash Activity SQL query will not be executed. If Held Cash Activity Source parameter is set (for example: heldcashsources = CASHTEST), then all cash activities with source = CASHTEST will be extracted.
4: Held Corporate Action Source is not used.
Q: Date Filters Questions 1: Can this be used in the SMF request? And if so, what is the meaning of Date filters for SMF extract? 2: If effectivedate is selected, I expect the extract to look at the holding for the effective date specified in this parameter and extract all securities held for this effective date and entity list specified. Is this the case? 3: If effectivedate is not selected, what is the default, and does it look at the effective date of the holdings? 4: If the effective date is not related to the holding, what is the correct filter to use to point to a specific holding date? 5: FROM effectivedate and TO effectivedate. Similar questions as per effective date. 6: Please give some details on how these filters interact. For example, if only FROMeffective date is selected, what is the TO effective date default?
A: 1: Yes, they can be used in SMF extracts. But, the date filters are different for Date filters without Held Mode and Date filters with Held Mode.
2: Date filters without Held Mode:
There is no "EffectiveDate" field in the composite SMF table (SECURITY_MASTER). This means that the "EffectiveDate" filter will be ignored if you extract the SMF from the composite table. If you extract the SMF from the history table (historyonlyflag parameter is set to Y), the "EffectiveDate" filter will be used in the following way:
SECMASTER_HISTORY.EFFECTIVE_DATE >= TO_DATE([effective date filter value], 'YYYY-MM-DD')
This means that all SMF records from the history table with EFFECTIVE_DATE value greater than or equal to the effective date filter value will be extracted.
"updatedate" filter can be used to extract SMF records from the composite or history tables in the following way:
[Composite or History table].UPDATE_DATE >= TO_DATE([update date filter value], 'YYYY-MM-DD')
This means that all SMF records from the composite or history table with the UPDATE_DATE value greater than or equal to the update date filter value will be extracted.
Date filters with Held Mode:
Effective Date, which will be used as a restriction in the search for SMFs from Position and Cash Activity Sources, the value for Held mode is set by the following steps:
- if parameter "ProcessCenter" is used (entityselectiontype=ProcessCenter, entityselectionvalue=[Process Center filter value]), then the value of "effectivedate" filter will be found from the RULESDBO.PROCESS_CENTER table, for example:
select to_char(pc.curr_dt,'yyyy-mm-dd') EFFECTIVE_DATEfrom RULESDBO.PROCESS_CENTER pcwhere pc.process_center = [Process Center filter value]
To use two Entity filters, the following parameters are available:
entityselectiontype / entityselectionvalue
entityselectiontype2 / entityselectionvalue2
If we want to use ProcessCenter and EntityList filters together, we can use following structure:
<taskParameter> <name>entityselectiontype</name> <dataType>S</dataType> <value>EntityList</value> </taskParameter> <taskParameter> <name>entityselectionvalue</name> <dataType>S</dataType> <value>SCPAREN3</value> </taskParameter> <taskParameter> <name>entityselectiontype2</name> <dataType>S</dataType> <value>ProcessCenter</value> </taskParameter> <taskParameter> <name>entityselectionvalue2</name> <dataType>S</dataType> <value>US</value> </taskParameter>
Order of filters is not important. "entityselectiontype2" parameter can be used for both, ProcessCenter or EntityList as follows: - If the value of ProcessCenter parameter is incorrect, then the value of "effectivedate" filter will be set as null.
- If ProcessCenter parameter is not used and "heldeffectivedate" filter value exists in RTR, then "heldeffectivedate" filter value will be used for filtering by EFFECTIVE_DATE field, for example:
HOLDINGDBO.POSITION.EFFECTIVE_DATE = to_date([held effective date filter value],'yyyy-mm-dd') - for positions
CASHDBO.CASH_ACTIVITY.ACCOUNTING_DATE >= to_date('2015-11-25','yyyy-mm-dd') - for cash activity - If ProcessCenter parameter is not used and "heldeffectivedate" filter value does not exist in RTR, then the value of "effectivedate" filter will be found as MAX of EFFECTIVE_DATE in the POSITION table. Conditions used in this query are: Date filter for UpdateDate, HeldPositionSource, and Entitylist.
3: If "effectivedate" filter is not set, then filtering by EFFECITVE_DATE field will not be used, there is no default filter value. In general, "effectivedate" filter is not used in Held Mode.
4: Need to use "heldeffectivedate" filter and do not use ProcessCenter parameter in RTR.
5: For Date filters without Held Mode: "fromeffectivedate" and "toeffectivedate" filters work as usual: for SMF extraction from composite table - aren't available, for SMF extraction from history table - are available, for example:
SECMASTER_HISTORY.EFFECTIVE_DATE >= TO_DATE([from effective date filter value], 'YYYY-MM-DD')
SECMASTER_HISTORY.EFFECTIVE_DATE <= TO_DATE([to effective date filter value], 'YYYY-MM-DD')
For "Date filters with Held Mode": "fromeffectivedate" and "toeffectivedate" filters aren't available.
6: "effectivedate", "fromeffectivedate" and "toeffectivedate" filters are available only for SMF history extract and not available in Held Mode as follows:
-If we set only "effectivedate" filter value, then following SQL restriction will be added:
SECMASTER_HISTORY.EFFECTIVE_DATE = TO_DATE([effective date filter value], 'YYYY-MM-DD')
-If we set only "fromeffectivedate" filter value, then following SQL restriction will be added:
SECMASTER_HISTORY.EFFECTIVE_DATE >= TO_DATE([from effective date filter value], 'YYYY-MM-DD')
-If we set only "toeffectivedate" filter value, then following SQL restriction will be added:
SECMASTER_HISTORY.EFFECTIVE_DATE <= TO_DATE([to effective date filter value], 'YYYY-MM-DD')
-If we set "fromeffectivedate" and "toeffectivedate" filter values, then following SQL restriction will be added:
SECMASTER_HISTORY.EFFECTIVE_DATE >= TO_DATE([from effective date filter value], 'YYYY-MM-DD') AND SECMASTER_HISTORY.EFFECTIVE_DATE <= TO_DATE([to effective date filter value], 'YYYY-MM-DD')Planned Enhancements and Resolved Issues
Q: If EffectiveDate is set to the current day, a full extract is returned. If there are no holdings as of a specific date, will we see an error?
A: This was a problem in the EagleML code, we have fixed it. It works correctly if we use the HeldEffectiveDate parameter instead of EffectiveDate in the Date filter. EffectiveDate in the Date filter is not used in the Held mode. However, current version of I2I doesn't support error descriptions in the final TSR, it shows only Status (SUCCESS, ERROR, NO_DATA). We are working on it right now and in one of the following EagleML updates, we will add this new feature.
Q: If Sourcename is set to a fake source (for example, FAKESOURCE) a full file is returned. Will we see an error? For reference, P2P gives the following error: "Level:1, SQL Call Failed. Check Stored Procedure or SQL Statement that caused the error[SERVERERROR] ORA-20002: Invalid Position Source FAKESRC".
A: Yes, this was a problem and we have fixed it.
Q: Is it possible to show errors from the Hub in the Spoke Monitoring Tool? For example, if an entity ID does not exist.
A: Yes, it is possible. We are working on it right now. In one of the following EagleML and EJM Monitoring Tool updates, we will add this new feature.