- User Guide
- Utilities
- Product Instrument Mapping
- Executing the PRODUCT_INSTRUMENT_TABLE_MAP
4.2.3 Executing the PRODUCT_INSTRUMENT_TABLE_MAP
You can execute this procedure either from SQL*Plus or from within a PL/SQL
block or from Batch Maintenance window within OFSAAI framework.
- To run the procedure from SQL*Plus, login to SQL*Plus as the Schema Owner.
- The procedure requires 3 parameters: Batch Id (which can be used to see the log of the procedure executed), MISDATE and the AS_OF_DATE.
- Identify the table name parameter by enclosing it in single quotes and
uppercase, as shown in the following two examples.The syntax for calling the procedure is:Declareoutput number;Begin Output:= fn_Product_Instrument_Map (
'Batch_Id', 'MISDATE','AS_OF_DATE'
);End;AS_OF_DATE
is the date for which mapping is required.MISDATE
is the date for which batch is run.BothMISDATE
andAS_OF_DATE
should be passed as 'YYYYMMDD' format.An example of running the function from SQL*Plus for theFSI_D_TERM_DEPOSITS
table follows:SQL> var output number;SQL> execute :output:= fn_Product_Instrument_Map ('Batch_Id', '20100131,'19991231');
To execute the stored procedure from within a PL/SQL block or procedure, see the example that follows.Call the procedure as often as required to synchronize all of your instrument tables.The appropriate table parameters are enclosed in single quotes.SQL> declare output number; begin output:= fn_Product_Instrument_Map ('Batch_Id', 'MISDATE','AS_OF_DATE') end; /
- To execute the procedure from OFSAAI Batch Maintenance, create a new Batch with
the Task as TRANSFORM DATA and specify the following parameters for the
task:Datastore Type : Select appropriate datastore from listDatastore Name : Select appropriate name from the listIP address : Select the IP address from the listRule Name : Product_Inst_MappingParameter List : AS_OF_DATENOTE
Note:
BATCHID
andMISDATE
will be passed explicitly in Batch Maintenance.