TAPCore SystemManagement Guide
TAPCore SystemManagement Guide
Release 15.06
System Management
Guide
2015 Temenos Software Luxembourg SA
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, electronic, mechanical, photocopying,
recording, or otherwise, without the prior written permission of Temenos Software
Luxembourg SA.
Triple'A Plus™ is a registered trademark of the TEMENOS Group of companies. All other
trademarks referenced herein are the property of their respective owners.
The Temenos product suites use a number of third-party software products that are
distributed under free or other open source licence agreements. These products are the
copyright of their respective owners and are governed by their own licensing terms as
indicated in the applicable licence, copying, read-me and/or help files for such products.
Copies of the relevant licence agreements for these products can be found in the Triple’A
Plus Open Source Software Licences Reference Guide.
20140724 PMSTA-18079:
Updated section Enabling SSL protocol between GUI and database
by adding detailed steps on how to configure Sybase to allow SSL
connections.
Added new sections Examples on how to create SSL certificates
and Enabling SSL protocol between Triple'A Plus Web and
database.
20140815 PMSTA-18294: In subsection fk_table_name of section Syntax, added
information to indicate that the foreign key table name
(fk_table_name) is mandatory for user-defined fields of datatype id_t.
14.12 20140903 PMSTA-18401: Added information about script check_list_existence.sh
in section Standard scripts in $AAA_ADMIN_DIR/scripts.
20141010 PMSTA-18785: Dropped argument "4" from format export script in the
following:
File name aaa_expfmt in section Triple'A Plus Core tools.
Usage details in subsections Command line and Example of
section Formats.
20141028 PMSTA-18350: Added new section Account lockout policy when
changing current password.
20141105 PMSTA-19030: Changed arguments -U and -P to uppercase for hostdiff
script in section aaa HOSTDIFF.
20141121 PMSTA-17837: In section Screen profile, changed the example that
shows how to export all screen profiles containing "T_AI_" in the code.
20141125 PMSTA-19069: Changed all references of “From Date”, “Till Date”, and
“Ref. Date” to new labelling "Initial Date”, “Final Date”, and “Reference
Date”.
20141202 PMSTA-19137:
In section Enabling SSL protocol between GUI and database,
added information about ensuring that the cipherlist supported by
the server is compatible with the one used by the client.
In section Examples on how to create SSL certificates, updated
the example used to illustrate how certauth is used to convert the
certificate request to a CA self-signed certificate (trusted root
certificate).
20141204 PMSTA-18081: In section “Encryption”, added SHA256 Salted as a
supported password encryption method.
2 Security .................................................................................27
2.1 User profiles ............................................................................27
2.1.1 Definition .........................................................................................27
2.1.2 Parent users.....................................................................................27
2.5 Link between users and managers/Triple'A Plus Web security .........39
2.6 Enabling SSL protocol between GUI and database.........................40
2.6.1 Examples on how to create SSL certificates ..........................................41
2.7 Enabling SSL protocol between Triple'A Plus Web and database ......43
9.2 Configuring memory cache for Triple’A Plus Core Financial Servers..74
9.2.1 Cache optimisation concepts...............................................................74
9.2.2 Overview .........................................................................................76
9.2.3 Optimised procedures data model .......................................................77
9.2.4 Configuration ...................................................................................78
9.2.5 Purge ..............................................................................................81
9.2.6 Monitoring .......................................................................................81
9.2.7 System defaults ................................................................................84
13 Miscellaneous ......................................................................102
13.1 No suppression of typed text during search ................................102
13.2 Saving of GUI use context .......................................................102
13.2.1 Saved information ...........................................................................102
15 Environment variables.........................................................118
15.1 AAATRACEDOMAIN .................................................................119
15.2 AAAAdvantage.xxx.yyy variables ..............................................120
15.3 AAADEFREPORTNAT registry variable ........................................120
15.4 Variables to configure bulk copy usage ......................................120
23 Questionnaire ......................................................................202
23.1 Creating questionnaires ...........................................................202
31 ANNEXES .............................................................................253
31.1 Hostdiff_hostfile_rework.sh sample ...........................................253
Reference Title
[COBB-ESSS] Exploring Sybase SQL Server, The Cobb Group
[SYBASE-ASPTG] Sybase Adaptive Server Enterprise Performance and Tuning Guide, Sybase
Inc., Document ID: 32645-01-1150
[SYBASE-ASREF] Sybase Adaptive Server Enterprise Reference Manual, Sybase Inc., Document
ID: 32401-01-1150
[SYBASE-ASSEC] Sybase Adaptive Server Enterprise Security Administration Guide, Sybase Inc.,
Document ID: 35811-01-1150
[SYBASE-ASSYS] Sybase Adaptive Server Enterprise System Administration Guide, Sybase Inc.,
Document ID: 32500-01-1150
[SYBASE-CASUX] Configuring Sybase Adaptive Server Enterprise for UNIX Platforms, Sybase
Inc., Document ID: 35823-01-1150
[SYBASE-RBAS] Release Bulletin for Sybase Adaptive Server Enterprise Release 11.5 (one by
UNIX platform), Sybase Inc.
1 See also unofficial Internet Web sites with Sybase Frequently Asked Questions (FAQs).
dict_t numeric(14,0) No
mask_t int No
method_t tinyint No
text_t text No
time_t numeric(4,2) No
year_t smallint No
blob_t image No
longint_t numeric(20,0) No
uni_text_t text No
timestamp binary(8) No
binary_t binary(8) No
* Use these dataypes with caution; do not forget that a record's size cannot exceed Sybase's
page size.
No other specific licence fees are required to use Triple'A Plus Core. It is preferable however,
to use a selective database save/restore product such as SQL Backtrack.
The communications between the UNIX Import Client and the mainframe requires a standard
FTP product such as Connect Direct.
Components of the technical architecture of Triple'A Plus Core use Sybase software as
presented in the following table:
Financial server Open Server Development of Triple'A Plus Core specific servers, multi-
threaded and using the same middle-ware as the RDBMS
GUI client Open Client Access to both servers: database server and financial
servers
2.1.1 Definition
Profiles are used to manage access to data, functions, formats, screens, and reports.
Defining profiles is a task for the Administrators of Triple'A Plus Core because it is part of the
security management functionality.
Users defined in Triple'A Plus Core must be assigned the following:
Data Security Profile This controls which users can access the data of the user.
Additional Data Security This controls which users can access the data of the user.
Profile
Data Profile This controls which data the user can access.
Funds Profile A specific “Data Profile” for Fund splitting is defined at the user level
“Fund Profile”. It is used in the Valuation function to allow or not allow a
splitting on Fund Portfolios. For more details, refer to the Triple'A Plus
Core Financial Instruments Guide in section Fund Share.
Table Description
User Each user is assigned a Function Security Profile, which defines access to the
Triple'A Plus Core functions.
Function Security An occurrence in this table groups individual access rights for the various
Profile Triple'A Plus Core functions. These access rights are defined in the Function
Security Profile Composition database table.
Function Security An occurrence in this table defines access to a Triple'A Plus Core function.
Profile Composition
Proceed as follows:
1. Define appropriate Function Security Profiles for individual and/or groups of users.
2. Associate a Function Security Profile with individual users.
Field Description
Function Reference to a Triple'A Plus Core function. Over 20 main functions are available in the
Function field's drop-down list. The functions that can be accessed through the GUI can
be grouped by Triple'A Plus Core modules.
Entity Optional reference to an entity type. This reference differentiates the access rights for
the various Administration functions (Administration, Productivity Administration,
Accounting Administration, Fund Administration) from the entities which are
administered through the GUI Client. For example, you can forbid a user to delete
occurrences in the Currency table on the one hand, and authorise the same user, on
the other hand, to delete occurrences from the Instrument Price table.
Notes:
If there is an occurrence in the Function Security Profile Composition table
created (through the Administration function) without a reference to an entity type, its
properties apply implicitly to the entity types that are not specifically included in the
profile.
If an entity type that can be accessed through the various administration functions is not
explicitly or implicitly referenced in a Function Security Profile, users can only view the
occurrences of this type.
Regardless of the composition of their Function Security Profiles, users who are not
declared as Super Users have no access to the entity types that can only be
administrated by Super Users (e.g., Format, Script Definition, User, etc.).
Operation These two fields specify user permissions (i.e., Create/Update/Delete) for a particular
Minimum range of states. Note that they apply only to the Operation entity type. For example, you
Status can authorise users to Create, Modify and Delete operations with the Simulation status
Operation but only View operations with the Accounted status.
Maximum
Status
Risk view For the various Administration functions managed security at the field level and not only
Flag at the entity level.
For the Valuation and Check Strategy functions. Permitted values:
Yes: the user can perform a Risk Valuation
No: the user cannot delete occurrences for the corresponding entity type
All the above settings are taken into account when the user connects to the application.
Operations If the user does not have access to one or more of the editing functions for a
administration particular range of statuses, the corresponding buttons and Edit menu options are
disabled. Additionally, in the case of a create or an update, the excluded status
cannot be selected through the corresponding drop-down menu.
Other functions If the user does not have access to one of the other functions, the corresponding
option in the Triple'A Plus Core main menu bar and the corresponding icon, if there is
one, are disabled. This applies to standard functions as well as to user-defined
functions. Moreover, when the user creates a document, the icon for an unavailable
function is not displayed. Existing documents that reference an unavailable function
are also disabled.
2.3.1 Overview
The access to data is managed by the definition of Data Security Profiles and Data Profiles.
Sensitive entities, such as portfolio, clients and instruments, can be assigned to a Data
Security Profile, which is referenced in their definition. Some of these entities also have an
additional Data Security Profile to define a finer granularity of security.
The Data Profiles define compositions of Data Security Profiles (with authorisation of update
and delete). These Data Profiles are then assigned to the users and there can only be one
possible Data Profile per user. No Data Profile can be defined as a derived subset of another
Data Profile; they all have their specific definitions.
Users can only access data that is linked to their user when the Data Security Profile or the
Additional Data Security Profile is in the Data Profile.
All Security Administrators share the same Data Profile. This profile, called
SECURITY_DATA_PROFILE, is hardcoded and cannot be modified when a Security
Administrator is inserted or updated. Its composition is automatically updated when a Data
Security Profile is created or deleted. The profile provides access to all the objects. Only
Security Administrators can have this Data Profile. Only Security Administrators are allowed
to update Data Profile compositions and modify the link to a Data Profile in the user screen.
Data security is enforced in the Database Server by a combination of private tables and
restricted views based on joins. Stored procedures access the physical tables directly but
also they enforce data security.
Attribute level security is ensured through the use of formats.
In this case, we need three Data Security Profiles (A, B, and C) and assign them to the
portfolios as follows:
and then, assign them to the users (DP0 to User0, DP1 to User1, etc.).
Now when the different users send a request to the database to show all portfolios, the
system will only return those portfolios to which they have been granted access.
2.3.5 Security of user and manager data for management of several banks
Some of our clients provide Triple'A Plus Core access to different banks using the same SQL
server and database; the client data is stored on the same database. These banks do not
want their users to have access to users or managers from other banks. To guarantee
confidentiality in terms of “who can see what”, managers and users are secured as well.
Clients who grant Triple'A Plus Core access to different banks using the same SQL server and
database might need to reduce the number of Security Administrators on their sites because
Security Administrators have access to all objects in Triple'A Plus Core. This role must be
assigned to people who do not work for a specific bank.
You can associate a bank with a Data Security Profile. All users who work for the bank
reference this Data Security Profile. Super Users and Security Administrators must have
update and delete authorisation in this particular Data Security Profile.
A Super User can update any attribute except the Security Administrator flag, the audit flag,
and the new Data Profile attribute. Only Security Administrator can update these three
attributes and see the Security Administrator flag.
A Super User can create a regular user or a Super User. A Security Administrator can create
any type of user. When users are declared Security Administrator, they automatically
become Super Users. Users can associate a Data Security Profile with other users or
managers if the update authorisation flag is set to 1 for the particular Data Security Profile in
their data profile composition. The delete authorisation flag allows users to delete other
users or managers linked to this Data Security Profile. This rule also applies to other entities
such as portfolio, third party, list, strategy, strategy link, and address.
During an installation from scratch, the application owner is automatically defined as a
Security Administrator. When users have a parent user, they inherit the Data Security Profile
from the parent along with other information. All child users can access their siblings and the
parent can view all child users.
To facilitate migration, the Data Security Profile DEF_USER_SECU_PROF is automatically
created and added to all Data Profiles referenced by the users and the managers. The Super
User and Security Administrator have the delete and update flags set to 1 for this default
Data Security Profile. This Data Security Profile is the proposed default value when a new
user or manager is created. A Security Administrator automatically has access to a new Data
2.4.2.1 Restrictions
This encryption scheme adds a further restriction to the authorised characters allowed in a
password. You can only use ASCII 7-bit characters (i.e. no accents allowed).
2.4.5.1 Usage
Since a user with the SSO role is required, user activation/deactivation has been moved from
the user GUI screen to the Tools menu in the main Triple'A Plus Core menu. The menu
option is either Deactivate User or Activate User, depending on whether the selected user is
currently activated or deactivated.
2.4.6.1 Usage
To change the password of aaa_login_manager, you must first modify it in the Sybase
database.
2.4.6.2 Restrictions
The usual password encryption restrictions apply.
2.4.7.1 Usage
The time-out is set in the GUI_SESSION_TIMEOUT system parameter.
If you do not want the sessions to time out, set GUI_SESSION_TIMEOUT to a value higher
than the time between the two shutdowns of your system (between night batch jobs, for
example).
2.4.8.1 Usage
The time-out is set in the GUI_EXIT_TIMEOUT system parameter.
The value 0 indicates no exit time-out.
2.4.9.1 Restrictions
The user profile you use to run the import must have been granted the SSO role in Sybase.
2.4.10.1 Usage
Create another login with the appropriate rights (sa_role, sso_role, and oper_role) and use
this user account in the following configuration file:
$AAAHOME/install/aaa_install.cfg
Replace the default value "sa" of variable "<SA_USER>" with your new user account. This
variable name can be found in the "TRIPLE_A_VARIABLES_SECTION" section.
5. Add the cipher. Ensure that the cipherlist supported by the server is compatible with the
one used by the client.
sp_ssladmin setcipher, 'Weak'
or
sp_ssladmin setcipher, 'Strong'
or
sp_ssladmin setcipher, 'All'
or we can define a comprehensive list of ciphers to use. Refer to the Sybase ASE
Security Administration Guide for more details and the list of supported ciphers.
6. In the server, declare SSL on Interfaces and/or sql.ini.
If you want to keep a non-ssl connection possible, declare both ports (ssl and non-
ssl). You can also restrict this connection to localhost.
In the clients, declare only the ssl entry to force the use of it.
Example:
[LAUWINLAB1_157_16]
master=NLWNSCK,lauwinlab1,21100
query=NLWNSCK,lauwinlab1,21100
master=NLWNSCK,lauwinlab1,21101,ssl
query=NLWNSCK,lauwinlab1,21101,ssl
7. Enable SSL on GUI by ensuring that the following DLLs are in the path. It is not enough
to simply put them in the DLL folder.
libsybfssl.dll
set CERT_ROOT_REQUEST=c:\tmp\root_req.txt
set ROOT_SERVER_PRIVATE_KEY=c:\tmp\root_privatekey.txt
set CERT_ROOT_PASSWORD=temenos
%SYBASE%\%SYBASE_OCS%\bin\certreq -F %CERT_ROOT% -R %CERT_ROOT_REQUEST% -K
%ROOT_SERVER_PRIVATE_KEY% -P %CERT_ROOT_PASSWORD%
Using certauth to convert the certificate request to a CA self-signed certificate (trusted root
certificate)
set ROOT_SELF_SIGNED=c:\tmp\root_self_signed.txt
set DURATION=3650
REM autosign
If the certificate has to be signed by an external certification authority, it is very likely that
the certificate must contain the Fully Qualified Domain Name (FQDN) as a CN (for example,
“myserver.intranet.mycompany.com” instead of simply the server name). In this case, the
corresponding entry in the interfaces must be defined as follows:
myserver
master tcp ether host_name port_number ssl="CN=myserver.intranet.mycompany.com"
query tcp ether host_name port_number ssl="CN=myserver.intranet.mycompany.com"
On the client side, the ini file must also specifiy the value of the CN the same way:
[myserver]
master=NLWNSCK,host_name,port_number,ssl="CN=myserver.intranet.mycompany.com"
query=NLWNSCK,host_name,port_number,ssl="CN=myserver.intranet.mycompany.com"
2.7 Enabling SSL protocol between Triple'A Plus Web and database
Refer to the section about enabling SSL protocol between Triple'A Plus Web and database in
the Triple'A Plus Web Security Customisation Guide.
When you declare new users in ASE, they are automatically created in Triple'A Plus Core. You
can define your new users even if they do not have UNIX login IDs.
To define a new user:
1. Define the user's administrative data.
2. Assign the user to a financial server.
As far as user administration is concerned, Triple'A Plus Core users on an NT network are not
aware of the UNIX side.
replacing User and Password with your user name and password.
The import file in this example is called INT.AUT.AUS.1.imp and the results of the process
are sent to the results file output.file (as we called it in this example). The results file
This example creates a user. The ATT and DAT parameters can be seen more clearly in the
following table:
Users cannot be deleted; they can only be disabled. A user that has been disabled still exists
in the database but can no longer access the application.
This example creates and then deletes a client connection with a financial server. This
assigns the user to the financial server GBA_ALPHA_FIN1. The delete code at the end is
included for demonstration purposes. Note that in this example the data lines are not
preceded with the prefix DAT. This is because we have used the Set command SET PREFIX
DATA NONE. The ATT and DAT parameters can be seen more clearly in the following table:
The two scripts presented here can be concatenated by appending the second client
connection script to the create user script.
Control Purpose
Code Enter a code for the user.
Name Enter the user's name. The default is the same as the code. The code is
entered automatically if you enter nothing.
Denomination Optional field. You can enter a description of the user's job, for example.
Language Associates a language with the user. This is the language in which the user
interface will appear to the user, assuming localisation is implemented on
the system.
Function security profile Defines the user's access to Triple'A Plus Core functions.
Format profile Gives the user access to the formats in the chosen profile.
Report profile Gives the user access to the reporting templates in the profile.
Active Active users are allowed to connect to Triple'A Plus Core. The check box is
selected by default (i.e. the flag is set to Yes).
GUI user Indicates if the user is allowed GUI access or batch access. The two access
types are mutually exclusive. GUI users are subject to Triple'A Plus Core
as well as to SYBASE security restrictions. Batch users are only subject to
Sybase security restrictions. The check box is selected by default (i.e. the
flag is set to Yes).
Maximum running GUI Sets the maximum number of GUI sessions that users can start
simultaneously. If you enter 0, the current system-wide parameter setting
applies to the current user.
Security Administrator flag Assigns the user Security Administrator rights. This means the user can
administrate users' accesses to the various secure tables (portfolio, third
party, strategy, strategy_link, etc.).
This type of user has exclusive rights to:
Administrate the Data Security Profile table
Associate a Data Security Profile to an occurrence in a secure
table
Associate a set of Data Security Profiles to an invidual user
Super User flag Assigns the user Triple'A Plus Core Super User rights. Super Users can
access all the functions and occurrences in the Triple'A Plus Core tables.
Audit flag Audits the user's updates and deletes of tables, if auditing is implemented
at system level.
User password Once you click OK, a dialogue box opens to request your Security
Administrator login ID. On validation, a second dialogue box opens for you
to enter and confirm the new user's password:.
Data profile The Data Profile button at the bottom of the screen lets you assign Data
Security Profiles to your user.
Parameter Description
origin=45,171 Top left corner co-ordinates of the main window
Parameter Description
origin=9,30 Top left corner co-ordinates of the window
view_adminbut_f=1 1 if the administration buttons (View, create, etc) are visible (menu View/Hide
Admin buttons). 0 else
Syntax Signification
use_screen_f=1 In edition screen value of option menu
Tools/Options/Use Screen/
Use Defined Screen or Use Default Screen
Only for super-user
The three icons on the far right appear in all the format screens. They are:
Return to Domain
Fully refresh screen. This button updates the display to reflect changes made to the formats
and data since the screen was opened or last refreshed. It calls the financial server to
recalculate the data.
Refresh formats. This button updates the display to reflect changes made to the formats (but
not to the data) since the screen was launched or last refreshed.
The seven main menu options are the same for all the format profiles. These options and
suboptions are as follows:
Document -
Save
Save As
Page Setup
Print
Copy To Clipboard
Close
Refer to Chapter 2 for more details.
Domain -
Edit - Modifies an existing parameter in the domain.
Get Default - Applies the default domain to the current business function.
Set As Default - Saves the last defined domain as the default domain.
View -
Extend
Extend All
Full Extend
Full Extend All
Collapse
Collapse All
Full Collapse
Full Collapse All
Lets you extend or collapse the data display.
Format - Displays a pop-up menu listing all the formats linked to the current business
function. The formats are listed by format type and name. Click the format you want.
And the following image shows a context menu with the Codification option in an Order Entry
screen:
5.2.3 URLs
Refer to section Possible actions on URL fields.
Apart from the unique technical identifier ID, the data entry fields in the Create Printer
screen correspond to the attributes table above. You can import the occurrences using the
native interface module.
Display display_c Optional display. This information specifies the preferred printer for
a particular display.
7.1.5 Miscellaneous
8.1.1 Output
The output consists of one or more log files that record transactions per entity type. The log
files show both the initial and final statuses of the entity.
The log files also record the users who perform the actions and the timestamp of the actions.
The logs are either all grouped together in a single file or separated per entity type, entity
nature, as set up at system configuration time using DataStage TX data mapping destination
settings. This approach has the advantage of letting users decide on the destination support
as well as the destination format of the audit reports. That way, they can comply with
internal or external auditing rules. It is also possible to split or store the same output over
several supports using the procedures described later.
It is also possible to set up special reporting, enabling them to focus on certain types or
natures of entities, users or time intervals.
The Triple'A Plus Core auditing facilities are not meant to replace low level Adaptive Server
Enterprise (ASE) auditing that may still be considered necessary. As a reminder, ASE
auditing focuses on low-level Sybase actions and does not provide any information on
modified Triple'A Plus Core data.
8.2.1 Overview
Triple'A Plus Core Subscription Auditing uses the Subscription API. You can subscribe to
event classes and determine an action or a set of actions to be taken if a subscribed class
event occurs.
The Subscription process fills the audit table. A daemon monitors the table and produces one
or more audit logs.
The daemon is started as a regular UNIX process (like the import interface), scans the table
and processes the record set, depending on filter set of records that are passed to it as an
argument.
The routing and formatting performed by the process includes DataStage TX technology. You
can reuse references (such as maps and trees) in several Triple'A Plus Core areas.
You can use the default maps provided to build more site-specific maps. These maps are
based on criteria such as:
Operation nature, type and subtype (audit on operations)
Instrument nature, type, subtype (audit on instruments)
User code or id (all types of audit)
These criteria are guidelines. The final choices you make depend on the type of site you are
running.
The Subscription API lets Triple'A Plus Core agents watch predefined event classes and send
a notification whenever an event of a subscribed class occurs. The events are logged into a
database table. This table is used as an event lookup table by the Subscribers. The Triple'A
Plus Core Gateway module translates messages to and from external applications. Audit
facilities are also included.
Events are defined into a table called Subscription (sometimes referred to as ST) that
describes all the subscription event classes to monitor. Data formats are converted into
DataStage
Function
Created
TX Map
Module
Nature
Action
Entity
Entity
Data
Host
User
01/01/00 C:\MercMap\
W0311 AAA Op ExtOp Start GUI “….”
12:57:03 ExtOp.mms
01/01/00
W0849 GRD Dom Valo Delete GUI “……”
12:57:10
DataStage
Function
Created
TX Map
Module
Nature
Action
Entity
Entity
Data
Host
User
02/01/00
Test1 ABC Instr Insert AllDbAccess SRV “….”
01:00:00
02/01/00
W0849 AAA IMP “……”
10:01:01
Field Description
Host (mandatory) Host where the event was generated.
Entity (mandatory) Entity taken from the metadictionary. A list of metadictionary entities
allowed by the subscription is described in the Subscription section in the
Triple’A Plus Core Gateway Reference Guide.
Function (optional) Entity not taken from metadictionary. Can be any Triple'A Plus Core
function.
Action (mandatory) Insert, update, delete (current database accesses). Can be new kind of
actions (Start, Finish, etc.).
Date created (mandatory) Date and time that the event was inserted.
DataStage TX map Path and file name of the map to use for sending registered events to
(optional) DataStage TX.
Entity nature (optional) User-defined entity. Useful for grouping entities under the same name
and processing. Lets GUI users monitor entity groups using this nature
as a filter.
Data (mandatory) Data sent with the event. This data is a translation of internal Triple'A
Plus Core data filtered through a format or taken straight from the
metadictionary.
All the business keys must be resolved before any insertion into this
table.
For audit purposes, data is composed of old and new versions of Triple'A
Plus Core internal data, with the external references (foreign keys)
resolved.
The record fields (but not the data field contents) can be used to access different maps that
route data to different log files or reports. The contents of the data field are used through
the map configuration and set the destination of the audit report, e.g.
different logs or reports
different presentation formats
The non-data fields are used to filter records from the audit table.
Argument Value
user_code [USER_CODE/ALL]
entity [entity_name_taken_from_metadictionary/ALL]
action_type [INSERT/UPDATE/DELETE/ALL]
module SRV/GUI/IMP/ALL]
The six arguments access fields that are stored in the header part of the audit record. The
date window enables users to generate reports for specific date periods. The default
begin_date is 00:00:00 and the default end_date is 23:59:59.
The other necessary parameters (SERVER, AAADB, etc.) are read from the environment.
8.3.2 Parameterisation
DataStage TX Type Tree and DataStage TX Map Editor allow users to customise the system
to an important degree. For audited entities, Triple'A Plus Core is delivered with:
Input Type Tree: header, NEW record structure, OLD record structure. The record
structure Type Trees are the same as those used for event subscription.
Output Type Tree: structure based on the Triple'A Plus Core event subscription type
trees. Most if not all the fields are text fields. Only modified fields are displayed.
Map: the OLD and NEW values of the Triple'A Plus Core field are displayed, text
formatting functions allow the data to be displayed more clearly (e.g. field identifier,
OLD value, NEW value).
A number of default Maps and Type Trees are supplied as standard: Extended operation and
instrument, portfolio and currency static data. These are a subset of the audited entities. The
complete list is:
Address curr_chrono
Currency denomination
Deposit exchange_event
Exch_rate ext_operation
Geographic income_event
Instr_chrono instr_compo
Instr_price instrument
Interest_cond iss_redm_event
Manager port_chrono
Portfolio rating
Rating_attrib sector
Sector_attrib synonym
Term_event third_party
Type
Create
Action: Create
User: <user_code>
Date: <time_stamp>
Code: <operation_code>
Portfolio: <portfolio_code>
Instrument: <instrument_code>
All the other fields of the extended operation are only retrieved if not NULL. Fields are
alphabetically sorted by sqlname. All the fields displayed are preceded by their names.
Delete
Action: Delete
User: <user_code>
Date: <time_stamp>
Code: <operation_code>
Portfolio: <portfolio_code>
Instrument: <instrument_code>
All the other fields of the extended operation are only retrieved if not NULL. Fields are
alphabetically sorted by sqlname. All the fields displayed are preceded by their names.
Update
Action: Update
User: <user_code>
Date: <time_stamp>
Code: <operation_code>
Portfolio: <portfolio_code>
Instrument: <instrument_code>
All the other fields of the extended operation are only retrieved if not NULL. Fields are
alphabetically sorted by sqlname. All the fields displayed are preceded by their names.
The filter displays all the fields whose NEW and OLD values are different.
Create
Action: Create
User: <user_code>
Date: <time_stamp>
All the other fields of the instrument are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
Delete
Action: Delete
User: <user_code>
Date: <time_stamp>
Instrument: <instrument_code>
All the other fields of the instrument are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
Update
Action: Update
User: <user_code>
Date: <time_stamp>
Instrument: <instrument_code>
All the other fields of the instrument are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
The filter displays all the fields whose NEW and OLD values are different.
Create
Action: Create
User: <user_code>
Date: <time_stamp>
Currency: <currency_code>
All the other fields of the currency are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
Delete
Action: Delete
User: <user_code>
Date: <time_stamp>
Currency: <currency_code>
All the other fields of the currency are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
User: <user_code>
Date: <time_stamp>
Currency: <currency_code>
All the other fields of the currency are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
The filter displays all the fields whose NEW and OLD values are different.
Create
Action: Create
User: <user_code>
Date: <time_stamp>
Portfolio: <portfolio_code>
All the other fields of the portfolio are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
Delete
Action: Delete
User: <user_code>
Date: <time_stamp>
Portfolio: <portfolio_code>
All the other fields of the portfolio are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
Update
Action: Update
User: <user_code>
Date: <time_stamp>
Portfolio: <portfolio_code>
All the other fields of the portfolio are only retrieved if not NULL. Fields are alphabetically
sorted by sqlname. All the fields displayed are preceded by their names.
The filter displays all the fields whose NEW and OLD values are different.
9.1.1 Configuration
The server_connect table handles all the necessary information and there is no need to
hard-code the Dispatch Server location in a stored procedure.
Each fusion process is represented by a single line. The information displayed is as follows:
Date chained
Portfolio Id
Scope
Server Id
Request Id. A non 0 value indicates the list the fusion belongs to. A value of 0 means
this fusion does not belong to a list.
Fusion Sts gives the status: Running means the fusion is being processed. Waiting
means the fusion is going to be processed as soon as possible.
Fusion date
9.1.1.5 Recommendations
Benchmark tests show that it is inefficient to allow more than 20 fusions to be processed at a
given time on one server. It is better to split fusions between several Fusion Servers if there
are a lot of them. For example, if you have to fusion 40 portfolios at the same time, 2
servers set to 20 are faster than 1 set to 40.
On sites with a huge number of fusions to process, configure several Fusion Servers to each
run 20 to 30 fusions.
It is a good idea to configure a dedicated stand-alone Dispatch Server. It is also a good idea
to have more than one Fusion Server to improve reliability.
You can monitor the fusion process by reading the server.log file.
Financial Server
Pathway:
First query issue (by one of the threads pictured above):
The query looks for its data in the local cache, but does not find it
The query looks for its data in the global cache, but does not find it
The query is executed in the database and retrieves its records
The query, its parameters and related data are stored in the global cache
The same information is copied into the local cache
The next query issued in the same thread is identical (same parameters):
9.2.2 Overview
New features were developed to make the memory cache size of Triple'A Plus Core servers
dynamic. Memory cache profiles can be built to be used by a group of servers or by a sole
server that would need specific optimisation considering its role (fusion, dispatch, financial,
report).
Servers or group of servers can now be fine-tuned to allow the configuration, purging, and
monitoring of their memory usage. A new toolkit is provided to this effect. For any optimised
SQL procedure, you can now:
Define the number of different queries that can be stored in the local and global
memory caches for a specific entity
Monitor the global memory cache at any time
Purge the global memory cache at any time
9.2.2.1 Configuration
To benefit from these new features, a server must be linked to a specific Optimisation
Profile.
9.2.2.2 Monitoring
New Remote Procedure Calls (RPCs) and Sybase stored procedures were created to
monitor global memory cache at any time on any running server
Monitoring tools can act on one or a group of servers, on any specific set of cached
data:
A single procedure
A group of procedure caching any entity requests (portfolio, instrument price, etc.)
All entities (same as all procedures)
9.2.2.3 Purge
New RPCs were created to purge the global memory cache at any time on any running
server
Purge tools can be used on any specific set of cached data:
A single procedure
A group of procedure caching any entity (portfolio, instrument price, etc.)
All entities (same as all procedures)
Attribute Description
opti_profile_id reference to an optimisation profile (can be null for standard configurations)
Attribute Description
id profile referenced in server_connect
Table opti_profile
Attribute Description
id composition’s own reference
Table opti_profil_compo
Attribute Description
id optimised procedure’s own reference
Table opti_proc
9.2.4 Configuration
9.2.4.4 Recommendations
Note that cache size values are calculated from the number of different queries that can be
stored in the cache (together with their parameters and associated records), and not as
memory size.
In particular, pay attention to computer memory when manually configuring cache sizes. The
number of queries you can set in these screens is defined by long integer variables that allow
huge amounts of memory to be allocated as the application fills up the Triple'A Plus Core
server cache.
To fine-tune your own server configurations, it is recommended that you use the purpose-
built statistical tools described in the next section. In the same context, a complete listing of
default settings is supplied at the end of this chapter in section System defaults. These
settings are automatically applied to memory cache sizes when no optimisation profile is
defined for the started server.
It is recommended to undertake some statistical benchmarking before actually modifying the
cache settings, based on the way the server you want to configure will be used (reporting,
financial functions with various parameters, etc.)
The benchmarks will help you fine-tune the servers for your specific needs.
9.2.6 Monitoring
You can monitor the cache content related to all SQL procedures, procedures linked to an
entity or a specific procedure.
To do this, two RPCs can be used, as described below.
The output data produced by these procedure calls is shown below (statistics are given for
the global memory cache only):
read_miss_pc
read_hits_pct
max_alloc_bl
last_purge_d
server_name
read_miss_n
cache_full_n
entity_name
alloc_bloc_n
read_hits_n
zsedmem_n
proc_name
tot_read_n
free_req_n
request_n
used_pct
free_pct
purge_n
oc_n
t
AAASERVVERSION get_exd_ins instrument 0 500 0 500 0.0 100.0 0 0 0.0 0 0.0 0 0 Dec 31 9999 0
trument_by 12:00 AM
_cd
AAASERVVERSION get_exd_ins instrument 200 2000 2 1998 .10 99.90 15 12 80.0 3 20.0 0 1 May 15 8
trument_by 2006 3:45
_id PM
AAASERVVERSION get_exd_ins instrument 0 200 0 200 0.0 100.0 0 0 0.0 0 0.0 0 0 Dec 31 9999 0
trument_opt 12:00 AM
_exo
AAASERVVERSION get_sh_instr instrument 0 200 0 200 0.0 100.0 0 0 0.0 0 0.0 0 0 Dec 31 9999 0
ument_by_c 12:00 AM
d_cid
AAASERVVERSION get_sh_instr instrument 50 200 5 195 2.5 97.5 24 18 75.0 6 25.0 0 1 May 15 4
ument_by_c 2006 3:45
id PM
server_name
AAASERV1543
AAASERVVERSION
AAASERVVERSION2
max_connect_n
opti_profile_cd
opti_profile_id
server_name
database_c
financial_f
dispatch_f
status_e
report_f
fusion_f
id
get_all_appl_user_by_cd appl_user 5 10 5 10
get_all_appl_user_by_id appl_user 5 10 5 10
get_sh_appl_user_by_cd appl_user 5 10 5 10
get_sh_appl_user_by_id appl_user 5 10 5 10
get_all_bal_pos_type_by_cd balance_pos_type 20 40 20 40
get_all_bal_pos_type_by_id balance_pos_type 50 50 50 50
get_all_bal_pos_type_by_uk balance_pos_type 20 40 20 40
get_sh_bal_pos_type_by_cd balance_pos_type 20 40 20 40
get_sh_bal_pos_type_by_id balance_pos_type 20 40 20 40
sel_all_bal_pos_type balance_pos_type 2 4 2 4
get_sh_calendar_by_cd calendar 5 50 5 50
sel_sh_calendar_date_by_nat calendar_date 5 50 5 50
sel_all_currency_by_conv_d currency 1 1 1 1
get_all_dict_function_by_id dict_function 5 50 5 50
get_all_dict_lang_by_id dict_language 50 50 50 50
get_sh_dict_lang_by_cd_cid dict_language 10 50 10 50
get_sh_dict_lang_by_cid dict_language 10 50 10 50
sel_all_dict_panel_by_sid dict_panel 10 50 10 50
get_all_ft_convention_by_cd ft_convention 5 50 5 50
get_all_ft_convention_by_id ft_convention 10 50 10 50
get_all_fund_val_elem_by_pid fund_val_element 5 20 5 20
sel_all_instr_compo_by_pid_dt instr_compo 10 50 0 0
get_exd_instrument_by_rcurr instrument 40 80 40 80
get_exd_instrument_rcurr_dflt instrument 40 80 40 80
sel_all_perf_analysis_param perf_analysis_param 2 2 2 2
sel_all_filter_def_by_ent script_definition 2 10 2 10
get_sh_strat_hist_by_sid_dt strategy_history 5 10 5 10
Root UNIX administration UNIX Sybase user Allows access to all the ASE files
UNIX user definition and devices
Sybase user ASE installation ASE login with Allows access to all the ASE files
(owner of Sybase ASE files ownership SSO role and devices
files) Can stop the ASE server
Can start the ASE server with
new password for SSO login
Root UNIX administration UNIX Triple'A Plus Allows access to all the Triple'A
UNIX user definition Core Super User Plus Core files
Triple'A Plus Core Triple'A Plus Core file Allows access to all the Triple'A
Super User ownership Plus Core files
Triple'A Plus Core program
execution
Triple'A Plus Core security
management
Databases
ASE login
Triggers
Security
tables1
Hidden
Tables
rows2
views
procs
Login with SA* role3 All All All All All All All
Login with SSO** role4 All None None None None None None
Login with Operator role None None None None None None None
T’A dbo*** login All All All All All All All
T’A security admin. All None All select exec exec All
T’A Super User All None None select exec exec None
View Format, Browse, Extend, Collapse and submenus, depending on the active
window
Window Overall management of the opened windows. You can choose the window
you want to make the active window.
Help Online help in HTML format, including access to the user manuals
11.3.1.3 Toolbar
The ICON_BAR_CONTENT system parameter defines the toolbar contents for each user. This
applies to both the standard and MDI GUIs. In the MDI, however, the number of icons that
can be displayed in the toolbar is not limited to ten.
12.1.1 Overview
Apart from the standard interface practice of letting users choose the colours they want, the
possibility of changing colours is very useful in large systems. Subnetworks that depend on
different servers can be colour-coded, for example. The visual cue is a powerful, immediate
and very simple way of indicating the server you are connected to or the subnetwork the
machine belongs to.
Triple'A Plus Core lets you change the colours used on your system for identification
purposes or simply apply your colour preferences.
To change the colours, you must perform the following operations:
run regedit
open the HKEY_LOCAL_MACHINE folder
open the SOFTWARE folder
open the Wow6432Node (only for 64-bit Windows 7)
open the Odyssey folder
open the Advantage or TripleA folder
open the version folder
open the Resource folder
for each graphical item, the colour is displayed in hexadecimal code
You can access the actions by right-clicking the field and choosing the option you want from
the context menu that is displayed.
The two actions available on URL fields are:
Open URL
Allows the user to open a Web browser at the right page.
View or Edit URL (the option text depends on the user's access rights)
Allows the user to edit the text of the URL in a specific screen.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 100
12.2.2 Edit/view URL menu option
If you choose the Edit/View option from the context menu, the Edit URL screen or the View
URL screen is displayed (depending on your access rights).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 101
13 Miscellaneous
Syntax Description
origin=45,171 Abscissa and ordinate of the main window
Syntax Description
origin=9,30 Abscissa and ordinate of the window
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 102
Syntax Description
view_toolbar_f=1 1 if toolbar is visible (menu View/Hide Toolbar)
0 else
view_adminbut_f=1 1 if the administration buttons (View, create, etc) are visible (menu
View/Hide Admin buttons). 0 else
13.2.1.3 Entities
Tag for entity currency: [ENT: currency].
Syntax Signification
use_screen_f=1 In edition screen value of option menu
Tools/Options/Use Screen/
Use Defined Screen or Use Default Screen
Only for super-user
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 103
Order List with only data
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 104
Furthermore, when this setting is enabled, some driver-related bugs might appear during
usage, which would likely require an update to the driver that should fix most bug-related
problems.
Regarding the memory available to the GUI before a memory allocation failure occurs, the
limit is around 3.4GB for the 64-bit version of Windows 7 with default configuration.
There is no way to know across all Windows versions and without privileged access, how
much memory is available. The theoretical limit is stored in the environment variable
AAAMEMMAXALLOC and the default value is 1800000 (1.8GB), which can be defined to
3400000 (3.4GB) for 64-bit platforms. The value is used only for computation of memory-
related information purposes and does not interact with the memory allocation (for more
information, see section GUI low memory warning).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 105
14 Localising Triple’A Plus Core
Triple’A Plus Core lets you localise the graphical user interface (GUI) so you can use the
application in other languages. To do that, you must translate the character string contents
of the relevant text tables in the database, notably in the meta-dictionary.
The data model was designed to support a localisation policy. The user interface uses the
multilingual features inherent in the data model. The text you see in the user interface
screens is stored in database tables and is retrieved at connection time:
Field and group box labels
Menu options
Screen titles
Application messages
Function names
Button text
Etc.
To localise the user interface, you must extract the text from the various tables into an
ASCII text file, translate it and return the translated text (character strings) to the
appropriate tables in the database.
The following sections describe:
The contexts in which localised text can be used.
Implementation from the database point of view.
Facilities for administrating localised text.
Data display text All format screen text, Domain screen denom
particularly the financial
format text
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 106
For a graphical view of the relevant tables and the relationship between them, use the
Silverrun application, delivered with Triple'A Plus Core. Look, in particular, at the
metadictionary and the appl_message and appl_msg_txt tables.
You will need some understanding of the application and the main structure of the data
model to follow this chapter.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 107
14.4.1 Metadictionary tables
A lot of metadictionary terms are defined in the dict_label entity. The dict_label entity
(dictionary label) contains multilingual labels related to instances of entities in the
metadictionary. Every instance in the metadictionary can be stored in the dict_label entity.
If an instance for the defined language is not stored in dict_label, Triple'A Plus Core uses
the attribute name of the corresponding entity as the default.
The dict_label text is used for the following Triple'A Plus Core metadictionary entities:
Entities
Attributes
Criteria
Languages
Permitted Values
The following table provides details about how to use the parameters:
Parameter Description
user Triple'A Plus Core database owner as defined in the aaa_install.cfg file (search for
APPL_OWNER).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 108
Parameter Description
language_code Triple'A Plus Core language code as defined in the dict_language table. The procedure
for checking which languages are currently installed is explained below in the Finding
all installed languages section.
output file Name (path and file name) of the output of the down_label script.
input file Name (path and file name) of the file that you want to import into Triple'A Plus Core.
For example, you could call your output (and input) file aaatrans_fr.csv (indicating the
language code in the file name is helpful). The .csv extension is necessary if you are going to
edit the file in Microsoft Excel.
Storing all the multilingual application labels and messages (from dict_label and
appl_message_text) in the ASCII text file simplifies maintenance. The ASCII file is also used
to upload the labels to the database.
When a new version of Triple'A Plus Core is shipped, you must update this translation file in
accordance with any changes made to the software. The tool that extracts the text to
translate clearly indicates the entries that are not translated by inserting the character string
"!!unknown!!".
To extract and translate these messages, etc., do the following:
1. Check which languages are currently installed (described below).
2. On the UNIX host, change directory to $AAAHOME/ddl/bin.
3. Export the text to a file using the down_label script (described below).
4. Open the file and change the language code to the target language.
5. Translate the character strings in the last column. Do not translate the section headers.
6. Save the file and import the file contents to the database using the up_label script
(described below).
code name
ca Catalan
de German
en English
es Spanish
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 109
code name
fr French
he Hebrew
it Italian
jp Japanese
nb Flemish
nl Dutch
no Norwegian
pt Portuguese
ro Romanian
ru Russian
sv Swedish
th Thai
tr Turkish
tw Chinese (Traditional)
zh Chinese (Simplified)
[LANGUAGE]
Example:
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 110
#;
[LANGUAGE];
# dict_language.sqlname_c;"Label"
German;"German"
Us_english;"English"
Spanish;"Spanish"
French;"French"
Italian;"Italian"
Dutch;"Dutch"
Portuguese;"Portuguese"
[FUNCTION]
Example:
##################################
# Extracting dict_function labels
##################################
[FUNCTION];
# dict_function.proc_name;"Label"
Acc_admin;"Accounting Administration"
acc_close;"Acc. Period Closing"
acc_hist;"Accounting History"
acc_plan_valo;"Accounting Plan Valuation"
etc.;
[ENTITY]
Example:
##################################
# Extracting dict_entity labels
##################################
[ENTITY];
# dict_entity.sqlname_c;"Label"
acc_period;"Accounting Period"
acc_period_param;"Accounting Period Parameter"
acc_plan;"Accounting Plan"
acc_plan_element;"Accounting Plan Element"
address;"Address"
adjust_operation;"Adjustment Operation"
admin_manager;"Portfolio Manager"
etc.;
[ATTRIBUTE]
Example:
##################################;
# Extracting dict_attribute labels;
##################################;
[ATTRIBUTE];;
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 111
# dict_entity.sqlname_c;attribute.sqlname_c;"Label"
acc_period;acc_period_param;"Parameters"
acc_period;acc_plan_element;"Element"
acc_period;acc_plan_id;"Account Plan"
acc_period;begin_d;"Begin Date"
acc_period;closing_d;"Closing Date"
acc_period;code;"Code"
etc.;;
[CRITERIA]
Example:
##################################;
# Extracting dict_criteria labels;
##################################;
[CRITERIA];;
# dict_entity.sqlname_c;dict_criteria.prog_n;"Label"
acc_period;1;"Code"
acc_period;5;"Accounting Plan"
acc_period;6;"Begin Date"
acc_period;7;"Final Closing"
acc_period_param;3;"Validity Date"
acc_period_param;4;"Nature"
etc.;;
[PERMITTED VALUE]
Example:
###############################;;
# Extracting dict_perm_value labels;;
##############################;;
[PERMITTED VALUE];;;
#dict_entity.sqlname_c;dict_attribute.sqlname_c;dict_perm_value.perm_val_nat_e;"Label
"
acc_period;final_closing_f;0;"!!unknown!!"
acc_period;final_closing_f;1;"!!unknown!!"
acc_period_param;nature_e;1;"!!unknown!!"
acc_period_param;nature_e;2;"!!unknown!!"
etc.;;;
[MESSAGE]
Example:
##################################;
# Extracting appl_msg_text ;
##################################;
[MESSAGE];;
# appl_message.code;appl_message.nature_e;label
ACCRUED_INTEREST;3;"Accrued Interest"
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 112
ACQUISITION_COST;3;"Acquisition Cost"
ADJUST_PORT_VALUE;3;"Adjusted Portfolio Value"
BTN_...;5;"..."
BTN_Add;5;"Add"
BTN_Adjustment;5;"Adjustment"
BTN_AllLinks;5;"All Links"
etc.;;
Consecutive delimiters are treated as one. Text placed between quotes is not considered as a
separator (last column).
Example:
exec ins_upd_dict_perm_value_usr "operation","status_e",20,"My new status",20
Notes:
The 0 status is mandatory and cannot be deleted.
Similar lines already exist in this file for the statuses 3,5,6,7,8,9. These lines are used
when you first initialise Triple'A Plus Core.
The value of the rank of the new status must be the same as the value of the new
status.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 113
The permitted values for new statuses are from 1 to 255.
File Language
$AAAHOME/ddl/src/dict_label_dat.en.usr.sql English labels
These files must contain the labels for the permitted values defined by the customer. Similar
files for other languages might exist.
Edit the file(s) for your language(s) and add lines corresponding to your new status.
These lines take the following form:
exec ins_upd_dict_label_permval_usr <language>, "operation", "status_e", <new status
value>, <Status label>
Example:
exec ins_upd_dict_label_permval_usr "en", "operation", "status_e", 20, "My new
status"
Where
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 114
Example:
$AAAHOME/ddl/bin/install_ddl.sh aaa aaaaaa sybadm dat dict_perm_value prod
default_charset
Where
Example:
$AAAHOME/ddl/bin/install_ddl.sh aaa aaaaaa sybadm dat dict_label prod default_charset
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 115
exec ins_upd_dict_perm_usr "operation", "status_e", <status value>, <Status default
name>, rank
Example:
exec ins_upd_dict_perm_value_ usr "operation", "status_e", 8, "My status 8", 8
File Language
$AAAHOME/ddl/src/dict_label_dat.en.usr.sql English labels
These files must contain the labels for the permitted values defined by the customer. Similar
files for other languages might exist.
Edit the file corresponding to your language and update the lines corresponding to your new
status label.
These lines take the following form:
exec ins_upd_dict_label_permval_usr <language>, "operation", "status_e", <new status
value>, <Status label>
Example:
exec ins_upd_dict_label_permval_usr "en", "operation", "status_e", 8, "My status 8"
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 116
Where
Example:
$AAAHOME/ddl/bin/install_ddl.sh aaa aaaaaa sybadm dat dict_perm_value prod
Where
Example:
$AAAHOME/ddl/bin/install_ddl.sh aaa aaaaaa sybadm dat dict_label prod
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 117
15 Environment variables
For Triple'A Plus Core to run correctly, you must pre-set the environment variables.
On the UNIX machine, the environment variables are set either in the aaa command
file or the aaaprofile file.
On Windows NT, the environment variables are stored in the Registry.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 118
$AAAHOME for the aaa script and $SYBASE/bin for isql.
15.1 AAATRACEDOMAIN
Before you start the financial server, set the environment variable AAATRACEDOMAIN to 1 on
the command line. This adds the dynamic structure of the domain to the file server.log. If
AAATRACEDOMAIN is set to 0, the domain structure is not added to server.log.
You can change the value of AAATRACEDOMAIN while the server is running using
SqlAdvantage. To do this:
Connect to the server and run the following commands:
setenv "MYVARIABLE","myvalue"
setenv "AAATRACEDOMAIN","1"
If you are connected to a different server, you must use the following syntax:
exec MYSERVER...setenv "MYVARIABLE","myvalue"
exec AAASERV1168... setenv "AAATRACEDOMAIN","1"
An example of the information added to server.log is shown below.
Domain’s dynamic structure was added to server.log
2003/03/28 11:42:59:AAASERV1168 :mca : 5(cli) : Start Valuation on
portfolio list [10] with all instruments
FIELD[ 0] "id " (IdType ) = NULL
FIELD[ 1] "currency_id " (IdType ) = 26
FIELD[ 2] "dim_port_dict_id " (DictType ) = 400
FIELD[ 3] "dim_instr_dict_id " (DictType ) = NULL
FIELD[ 4] "dim_strat_dict_id " (DictType ) = NULL
FIELD[ 5] "user_id " (IdType ) = 45632781
FIELD[ 6] "language_dict_id " (DictType ) = 1
FIELD[ 7] "function_dict_id " (DictType ) = 2
FIELD[ 8] "scenario_id " (IdType ) = NULL
FIELD[ 9] "quote_val_rule_id " (IdType ) = NULL
...
FIELD[180] "ud_rep_check_strat_f " (FlagType ) = 1
FIELD[181] "ud_rep_color_f " (FlagType ) = 1
FIELD[182] "ud_refresh_dom_e " (EnumType ) = 0
FIELD[183] "ud_rep_anonymous_f " (FlagType ) = 0
FIELD[184] "ud_rep_toc_f " (FlagType ) = 1
FIELD[185] "ud_rep_letter_f " (FlagType ) = 1
FIELD[186] "ud_rep_journal_f " (FlagType ) = 1
2003/03/28 11:43:15:AAASERV1168 :mca : 5(cli) : Send Data (set :0 col:132
row:34)
2003/03/28 11:43:27:AAASERV1168 :mca : 5(cli) : Exit Valuation on portfolio
list [10] with all instruments
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 119
15.2 AAAAdvantage.xxx.yyy variables
Variables of the form AAAAdvantage.xxx.yyy are taken into account when you define them
as application parameters.
AAAREPBCP
To define the insertion mode to use for inserting data into the reporting table, use
AAAREPBCP.
Value Description
Undefined Bulk copy is used
AAABCPMOD
To define the insertion mode to use for inserting data into the order and productivity tables
(e.g., ext_operation, ext_strategy_element, case_management, etc.), use AAABCPMOD.
Value Description
Undefined Bulk copy is used
AAAPERFSTORAGEBCP
To define the insertion mode to use for inserting data into the performance data tables (e.g.,
ext_ret_analysis, standard_perf, perf_attrib), use AAAPERFSTORAGEBCP.
Value Description
Undefined Behaviour depends on AAABCPMOD value. If:
Undefined: Bulk copy is not used
1: Bulk copy is used
All other values: Bulk copy is not used
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 120
Value Description
All other values Bulk copy is not used
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 121
16 Directories and files
Triple'A Plus Core files are located in a subtree in parent $AAAHOME. The main files are
located as follows:
File Description
$AAAHOME/aaa Main Triple'A Plus Core program file. It must be combined with
parameters such as GUI, SRV, EXPFMT, IMP, etc.
$AAAMSG/server.log Contains the errors issued by the servers and the business
functions and fusions log.
$AAABIN/ contains the binaries of the software mainly run by the aaa script:
bcp_table Extracts data from Triple'A Plus Core tables in bcp format.
Checkdb.sh Checks the logical and physical consistency of the Triple'A Plus
Core tables by running Sybase utilities (dbcc checktable, dbcc
checkcatalog, dbcc checkalloc). The check is performed on the
Triple'A Plus Core tables and the Adaptive Server Enterprise
(ASE) system tables).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 122
17 Running Triple'A Plus Core
The following section describes how to start the main Triple'A Plus software via the command
"aaa".
You can only use the aaa command on UNIX/Linux systems (or via Cygwin on Windows
platforms).
1. Log into your *nix system.
2. Go to the Triple'A Plus Core home directory.
cd $AAAHOME
3. Run the shell script aaa, which allows you to start, for example, a financial server or the
interface program. It sets the environment and runs the appropriate executable.
If you run the script without arguments, the following usage details are displayed:
usage: aaa [-copy] SRV -S<server_name> -U<username> -P<password>
aaa [-copy] AUDIT arguments
aaa [-copy] ENV
aaa [-copy] EXPACC arguments
aaa [-copy] EXPFMT arguments
aaa [-copy] EXPMSG arguments
aaa [-copy] EXPOBJ arguments
aaa [-copy] EXPORT arguments
aaa [-copy] EXPRULE arguments (CAREFUL : CLASSIF & LIST first !)
aaa [-copy] EXPSCR arguments
aaa [-copy] EXP_CONSTRAINT_TEMPLATE arguments
aaa [-copy] EXP_DATA_PROF arguments
aaa [-copy] EXP_FORMAT_PROF arguments
aaa [-copy] EXP_FUNC_SECU_PROF arguments
aaa [-copy] EXP_SCREEN_PROF arguments
aaa [-copy] EXP_SEARCH_CRITERIA arguments
aaa [-copy] EXP_SEARCH_PROF arguments
aaa [-copy] EXP_REPORT_PROF arguments
aaa [-copy] GUI [-U<username> -P<password>]
aaa [-copy] HOSTDIFF arguments
aaa [-copy] IMP arguments
aaa [-copy] LCI arguments
aaa [-copy] LICENSE -U<username> -P<password>
aaa [-copy] LRADMCMD arguments
aaa [-copy] LRPROPS arguments
aaa [-copy] LRSERV arguments
aaa [-copy] LRSYNC arguments
aaa [-copy] MERCATOR arguments
aaa [-copy] REPTBL arguments
aaa [-copy] ROLIT arguments
aaa [-copy] SUBSCRIPTION arguments
aaa [-copy] sh arguments
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 123
Where:
sh permits running a command (it can be “sh” or “isql”, for example ) with all Triple'A
environment sets.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 124
18 Triple'A Plus Core tools
File Name Usage Description
aaa_audit.sh None This shell script sets up a subscription
audit table.
aaa_expfmt aaa EXPFMT database username This shell script executes a program,
password format_code% which extracts any format, with its
default_charset [out_dir] format_elements and
Main Triple'A Plus Core script_definitions. The results are
database placed into files that can be used by
the interface to load them into another
Username environment. This shell script must
Password only be started by the aaa shell script.
Code of the format (with
possible wild card)
Default_charset
Output directory
aaa_expobj There are two usages for this This shell script executes a program
script: that extracts data from specific
aaa_expobj [object] entities.
[database] [username]
[password] [object_code%]
(entity) (out_dir)
or
$AAAHOME/aaa EXPOBJ
-e entity
-o object
-l logical_attributes
-h history date
-c codification
-d output directory
-f output file name
-w work directory
-x flag
-i insert only
-U user
-P user_password
-M main_database
-z other
aaa_export aaa EXPORT table_name database This shell script allows the export of
username password functions, application parameters,
pattern%|option types, modelling constraints,
[charset|default_charset] [out_dir] comments, and script definitions.
aaa_exprule aaa EXPRULE database username This shell executes a program that
password valuation_rule [out_dir] extracts all data from valuation rules.
The results are placed into a file that
can be used by the interface to load
them into another environment. This
shell script must be started by the
shell script aaa.
Important: The export/import of
CLASSIFICATIONS and LISTS must be
executed before this one.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 125
File Name Usage Description
aaa_expscr aaa EXPSCR username password This shell script generates an import
database screen entity file based on all entities linked to a
[charset|default_charset] [out_dir] specific screen.
“screen” is the screen or group of
screens that you want to build as
an import file. You can use the %
character.
“entity” is the name of the table
to which the screen is attached
(e.g. address).
aaa_license -
aaa_lp_ps2pcl -
aaa_reptbl aaa REPTBL [dbo username] [dbo This shell script manages the report
password] [source db] [target db] tables inherited from the format table.
[{build, check, purge}] [all, format It has three main options:
code|format_profile] "build": drops the report table
[charset|default_charset] and builds it from the format
"check": displays the table
contents grouped by r_dataset_id
"purge": truncates the table
contents
For each of these options, you must
declare the scope:
"all" for all tables in the dedicated
report database
Format code or format profile for
specific report tables
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 126
File Name Usage Description
aaa_subd.sh - This shell script runs the
Subscription daemon.
Triple’A Plus Core includes a number of useful UNIX tools for organising and managing the
database. To run the tools, you enter the command aaa at the UNIX command line followed
by the name of the tool and the relevant parameters. The general syntax is as follows:
aaa TOOLNAME -Uusr -Ppwd [ -Ssrv ] [ -Ddb ]
Where:
And aaa also permits running a command (it can be “sh” or “isql”, for example ) with all
Triple'A environment sets (aaa sh).
Example:
./aaa sh sh
./aaa sh isql -Usa -P …
The main tools are shown in the image below (by entering the commands cd $AAAHOME and
./aaa on the UNIX command line):
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 127
18.1 aaa HOSTDIFF
Note: Since Triple'A Plus Core Release 4.30.3, HOSTDIFF replaced HOSTCOMP.
The host comparison script (aaa_hostdiff) provides a comparison report between:
positions extracted from Triple'A Plus Core at a given date
positions from another system – generally a back office
This script allows you to compare the portfolio positions checking:
the held quantity per instrument
the position currency
the deposit of the position
This service is generally integrated in the batch process - after the End Of Day job - but it
can also be run on demand. All natures of instrument (e.g., stock, fixed income, cash
account, future, forward, deposit) can be reported by the Host Comparison process.
Note that the instrument code and portfolio code are truncated to 20 characters.
If requested, the script can update two user-defined fields: ud_hc_date_d and
ud_hc_diff_e. These fields must be created in Triple'A Plus Core. You can find the complete
way of doing it in $AAAHOME/std_admin/init/ud_fields.sh (including the instructions
dealing with the permitted values, which must added to the dict_perm_value_dat.usr.sql
file). When setting the option ‘-k’ - update kind – the script performs the following updates:
ud_hc_date_d is the position date used in the comparison
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 128
ud_hc_diff_e has the following values:
0 if not checked
1 if in line with host
2 if difference exists
The report contains a specific part displaying inexistent objects (portfolios or instruments).
That means:
When working with the dimension 'all' (portfolio and/or instrument), inexistent
portfolios or instruments extracted from host file are displayed in this specific section of
the report or in the table.
When working with the dimension 'list' (portfolio and/or instrument), inexistent
portfolios or instruments extracted from host file are not displayed in the report or in
the table as they cannot belong to the lists.
If the Hostfile extracted from back-office does not fit the hostdiff requirements, a pre-
handling is made if the script hostdiff_hostfile_rework.sh exists and is executable. The
Given param. are original_host_file, reworked_host_file, portfolio list, and instrument
list.
If you have long codes for instrument or portfolio, you must use both the option -e and
a different format of the host file. In this case, the portfolio code and instrument code
can be stored up to 60 characters. If not specified, the portfolio and instrument code is
stored in 20 characters strings. For more information, see the description about “host
positions file is in fixed format” in the table below.
The following tables explain the usage of hostdiff.sh:
-h host_positions_file mandatory
host_positions_file is in fixed format
-r comparison_results_file mandatory
-d positions_date mandatory
positions_date is in format DD/MM/YYYY
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 129
Switch Argument Comment
-s [positions status to optional - default is 50
retrieve] If there are more than one position per line and more than five
fields per line:
portfolio_code on positions 1-20
instrument_code on positions 21-40
quantity on positions 41-61
pos currency on positions 62-81
pos deposit on positions 82-101
-c Not applicable Allows for the following instrument types to be compared by open
operation, and not by position:
Options
Futures
Outright Forward
FX Swap
Example: Two open option contracts with quantities 5 and 20 will
not be compared by their cumulative quantity 25, but by each
individual open operation.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 130
Notes Description
host positions 1 position by line
file is in fixed 5 fields by line
format
(first 3 are mandatory, other depends on the mode)
If neither flag -e nor flag -q is set, no specific alignment in the zone is required:
1-20: portfolio code
21-40: instrument code
41-61: quantity (e.g. ‘100.000000’)
62-81: position currency
82-101: position deposit
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 131
Notes Description
portfolio list code Portfolios positions not included in the dimension ‘List / All portfolios’ are not
extracted from AAA, but ALL host file positions are taken into account.
In this case, the report displays:
a non-zero position for the Host
a zero position for Triple'A Plus Core.
Note: The script uses the composition of the lists. This implies that the lists must be
built and up-to-date.
Note: Positions of portfolios not included in the dimension list/all portfolios are not
displayed in the report.
instrument list The script uses the composition of the Triple'A Plus Core instrument lists. This
code implies that the lists must be built and up-to-date.
Note: Instrument positions that are not included in the dimension ‘List / All
instruments’ are not displayed.
Positions of portfolios not included in the dimension list/all instruments are not
displayed in the report.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 132
Notes Description
work directory This is a temporary directory, which is used when creating the temp files.
Example:
-rw-rw-r-- 1 aaa triple-a 558 Jan 5 13:50 hostdiff-0105_27206-hst-lis
-rw-rw-r-- 1 aaa triple-a 665074 Jan 5 13:50 hostdiff-0105_27206-aaa-lis
-rw-rw-r-- 1 aaa triple-a 665632 Jan 5 13:50 hostdiff-0105_27206-all-lis
-rw-rw-r-- 1 aaa triple-a 764 Jan 5 13:50 hostdiff-0105_27206-awk
-rw-rw-r-- 1 aaa triple-a 621512 Jan 5 13:50 hostdiff-0105_27206-dif-lis
-rw-rw-r-- 1 aaa triple-a 465 Jan 5 13:50 hostdiff-0105_27206-tmp
-rw-rw-r-- 1 aaa triple-a 0 Jan 5 13:50 hostdiff-0105_27206-tmp.diff_full
drwxrwxr-x 2 aaa triple-a 10 Jan 5 13:50 .
These files are deleted at the end of the process.
Example: aaa HOSTDIFF -w /usr/tmp/nbo -h /usr/tmp/nbo/nbo_hc_file -r
nbo_hc.rep -d 29/12/2008
Note: This is not the directory where the Host File is stored – just a temp folder.
Examples
hostdiff.sh -h my_pos_file -r the_result_file -d 29/02/2008
compare the positions of all the portfolios
on 29/02/2008
Host positions file is 'my_pos_file',
Comparison made on portfolio / instrument key
Results file is 'the_result_file'
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 133
ksh -x hostdiff.sh -h NBO_poscd_exact_20080218 -r NBO_poscd_exact_20080218_1.rep -d
18/02/2008 -m 4 -l NBO_HC_test
18.2.1 Overview
The tool in question (EXPOBJ or IMP) exports and imports strategies and grids. When you run
an export you must specify the entity you want to export. In this case, the entity can be grid
for grids or strat for strategies. Once you have specified the entity you must specify the code
of the records that you want to export. Note that the tool automatically checks if it has to
export a list or an object from the code. If a list of strategies (or list of grids) has the same
code as a strategy (or a grid), the tool will only export the list and its contents.
The tool also exports some of the related entities. You cannot export all the entities linked to
a strategy or a grid because they are linked to too many other entities for this to be
practical. In the case of strategies, linked entities means:
Strategy history and strategy elements
Grids with linked classifications, lists and market segments
Strategy links
These linked entities are automatically exported. Other linked records such as portfolios,
currencies and instruments are not exported. If they are already in the database, the
process will find those linked entities by using their business keys. If they are not in the
database, the command will fail and you will receive an error message.
In the case of grids, related entities mean:
Linked classifications
Lists
Market segments
Note that a strategy can be linked to another strategy. It can be linked by the parent-child
relationship or by a link with the nature strategy. In this case, you must import the
strategies in the right order:
1. Import the parent.
2. Import the child or children.
18.2.2 Usage
When you run aaa expobj without arguments, the following usage details are displayed:
AAAHOME is /oams/d_tap_dvp/aaa/current
Executing /oams/d_tap_dvp/aaa/current/bin/AIX/aaa_expobj
aaa_expobj: Invalid number of arguments
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 134
Usage: Parameters can be entered in two ways:
1) Using position for parameters
where
object is
[list.sh | classif.sh | grid.sh | strat.sh | modelling_constraint.sh]
> object_code is mandatory
> entity, used in case of list, is by default 'instrument'
or [market_structure | market_structure_subset]
> object_code is mandatory
> no entity
or [rule]
> object_code is mandatory
> entity is optional, is the entity on which the rule is
based
or [defval | inpctrl | filter | update | function ]
> object_code is optional
values in { GUI | batch | both } depending on what we
want to export. If not specified : "both"
> no entity
database is the database name
username is the Triple'A user's name
password is the Triple'A user's password
out_dir specifies the destination folder. By default, all files will
be created under /oams/d_tap_dvp/aaa/current/tmp. You must define the "entity"
argument if you specify a destination folder
/oams/d_tap_dvp/aaa/current/aaa EXPOBJ
-e entity -o object -l logical_attributes -h history date -c
codification
-d output directory -f output file name -w work directory -x -i
-U user -P user_password -M main_database -z other
where
entity is the entity to be exported (mandatory)
See valid entities and logical attributes hereunder.
object is the object to be exported. A pattern with % may be used.
(optional)
no object defined will export all objects of the entity
logical attributes indicates the logical attributes to export
(optional)
ALL allows to export all the logical attributes
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 135
history_date is the history date for valuation rules or ft
convention (optional)
codification is the codification in the case of sector or rating
entity (optional)
output directory is the directory where the importation file is placed
(optional. default is current directory)
output file name is the output file name
(optional. default is {entity}.imp )
-x flag (optional )
if set, then the importation file is splitted in the
different logical attributes
Files are: One [output_file_name] for the main part
and several [logical att symbol]_[output_file_name], one
per logical attribute
you must use the -l flag when using the -x flag or the
script will exit.
-z other for entering specific parameters, depending of the entity
o for entity type, contains
'entity_of_type.attribute_of_type' (see example)
user password is the user password used to export the data
(mandatory)
main database is the main database of Triplea (mandatory)
-i : optional means insert only : if specified, generate CMD INSERT
command in output import file.
CMD INSUPD
otherwhise.
VALID ENTITIES:
===============
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 136
o ICP: Instrument composition, IDP: Instrument deposit, INC: Income
event
o INT: Interest rate condition, ISS: Issue redemption events, NOT:
Notepad
o OPE: Operation (without communication)
o PRI: Instr price, PSP: Perf storage parameters, RAT: Rating
attribution
o RGL: Return grid link (no extraction of the grids)
o SCT: Sector Attribution, SYN: Synonym, TER: Term event, TRC: Trading
currency
o TRP: Trading place
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 137
/var/tmp/OPE_JPF.imp with the operations of portfolios beginning
by JPF
/var/tmp/SYN_JPF.imp with the synonyms of portfolios beginning by
JPF
aaa EXPOBJ -e val_rule -o BEL% -d tmp -h 29/10/2007
to create importation file val_rule.imp in the directory tmp (against
current directory)
with valuation_rule_history of 29/10/2007 only
aaa EXPOBJ -e case_msg_template -f case_msg_template.imp -d tmp -w tmp -U
<User> -P<Password> -M <main DB >
export all the case_msg_template of the database in the file
/oams/d_tap_dvp/aaa/current/tmp/case_msg_template.imp
aaa EXPOBJ -e type -o MFR -z instrument.ud_recomm_type_id
to create importation file type.imp with type 'MFR',
where MFR is a type for attribute ud_recomm_type_id on entity
instrument.
aaa EXPOBJ -e data_dependency -o % -d /tmp -U <User> -P<Password> -M <main
DB >
export all the data_dependency of the database in the file
/tmp/data_dependency.imp
aaa EXPOBJ -e data_secu_prof -o % -f data_secu_prof.imp -d /tmp -U <User>
-P<Password> -M <main DB >
aaa EXPOBJ -e data_profile -o PROD_% -f data_profile.imp -d /tmp -U <User>
-P<Password> -M <main DB >
aaa EXPOBJ -e business_entity -o BE_% -f business_entity.imp -d /tmp -U
<User> -P<Password> -M <main DB >
Grid context
.cla_cmp Contains the classification compositions of the classifications in the .cla file
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 138
Strategy entity
Depending on the parent_market segment and the bench_entity_dict_id, the generated file
can take one of the following extensions:
Depending on the parent_market segment and the dim_grid_object_id, the generated file
can take the following extension:
18.2.4 Imports
To import the strategies, grids, lists of strategies or lists of grids of grids, run the following
command from the $AAAHOME directory:
For 32-bits version:
aaa IMP -U<user> -P<password> -S<Sql server name> < /usr/tmp/<Command file>
or
For 64-bits version:
aaa IMP64 -U<user> -P<password> -S<Sql server name> < /usr/tmp/<Command file>
Where
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 139
18.2.5 Troubleshooting tips
Hierarchical elements, that is, elements included in other elements in a parent-child
relationship, present specific problems and require the procedures described below for
successful imports and exports.
Let us assume that all the relevant data required to import a strategy or grid is already in
the database: instruments, portfolios, data profiles and currencies linked to the strategy or
grid.
You cannot import a child strategy or grid before you import the parent strategy or
grid. This is because the parent strategy_id is linked to the parent strategy. When you
import such strategies or grids, make sure you import the parent first and then run the tool
again to import the child strategies or grids (and repeat as often as necessary). Respect this
procedure for children of child strategies or grids. Not respecting this procedure generates
errors.
Secondly, when you import data, you are replacing the existing data in the database.
Therefore, any existing strategies or grids in the import environment will be lost. For
example, if you have a list with a given code in your import environment and you import a
grid that uses a list with the same code, the existing list is replaced even if it does not have
the same definition.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 140
keep_files.cfg
keep_files.usr.cfg
# Extraction of Screens
$AAAHOME/aaa EXPSCR $AAAUN $AAAPW $DB $SC $EN
# Installation report
$AAATOOLS/installationreport.sh [ IR.dir ]
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 141
TRIPLE'A PLUS CORE SERVER MANAGEMENT MENU
# Running servers
internal SQL select (not a specific tool)
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 142
18.5 Trace tools
A number of trace tools are included in Triple'A Plus Core. For each trace tool, the description
indicates:
Availability: Version(s) in which the functionality appeared, executables and platforms
informed.
Multithread support (aaa_srv): Some trace information is global: the trace tool must be
used for a single function running on the server at a time (interlaced results give
irrelevant traces)
Procedure to activate the trace. Variables have to be set before the executable is
started: Some variables can be dynamically modified on the server (see "setenv rpc")
Output
In all cases, as well as the specific file of each trace, you need the log, and for aaa_srv,
the server log.
18.5.1 Initialisation
For Windows NT, you can set the environment variables such as AAASQLTRACE,
AAAPERFMON, etc. in two ways.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 143
18.5.1.3 UNIX configuration settings
Set the environment variables before you run your Triple'A Plus Core applications.
Usage: export <variable>=<value>
Example: export AAASQLTRACE=3
Set AAASQLTRACE to 3.
exec AAASERVNAME...setenv "AAAPERFMON", NULL
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 144
18.5.2 Traces
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 145
ct_command() SUCCEED Connect=0 CsCmd=1122234 Mode=RPC Thread=0
Request="get_all_currency" ... 0.040000
with AAASQLTRACEPARAM=1:
ct_command() SUCCEED Connect=1 CsCmd=2b256c8 Mode=LANG
Thread=3b00628 Request="create table #port_synth ( id id_t not null,
portfolio_id id_t not null, initial_d datetime_t null, final_d
datetime_t null ) " ... 0.031000
ct_command() SUCCEED Connect=1 CsCmd=2b256c8 Mode=RPC
Thread=3b00628 Request="init_exd_position_by_domain
@dim_port_dict_id=800,@port_object_id=394802924,@dim_instr_dict_id=NULL,@instr_object
_id=NULL,@min_status_e=4,@max_status_e=4,@zero_qty_f=0,@begin_d="12/31/2000
00:00:00",@end_d="02/28/2001
00:00:00",@function_dict_id=9,@fusion_date_rule_e=0,@pos_val_rule_e=0,@currency_id=27
102060,@port_pos_type_id=NULL,@cons_portfolio_id=NULL,@pps_load_e=0,@pps_type_f=1,@pp
s_cons_pf_f=1,@pps_currency_f=1,@event_gen_nat_e=0,@load_hierarchy_f=0,@load_pos_f=1,
@acc_period_id=NULL,@hist_list_f=1,@data_profile_id=NULL,@load_non_discret_f=0,@dim_e
ntity_dict_id=117" ... 0.031000
ct_command() SUCCEED Connect=1 CsCmd=2b256c8 Mode=RPC
Thread=3b00628 Request="sel_exd_position_by_domain
@dim_port_dict_id=800,@dim_instr_dict_id=NULL,@min_status_e=4,@max_status_e=4,@zero_q
ty_f=0,@non_enum_instr_f=0,@begin_d="12/31/2000 00:00:00",@end_d="02/28/2001
00:00:00",@function_dict_id=9,@fusion_date_rule_e=0,@port_object_id=394802924,@instr_
object_id=NULL,@pos_val_rule_e=0,@duration_f=0,@beta_f=0,@current_return_f=0,@rating_
f=0,@risk_exp_f=0,@grid_id=NULL,@ret_det_level_e=2,@subgrid_f=0,@event_gen_nat_e=0,@l
oad_hierarchy_f=0,@load_pos_f=1,@comp_data_e=9,@acc_plan_id=NULL,@pps_load_e=0" ...
1.141000
ct_command() SUCCEED Connect=1 CsCmd=2b256c8 Mode=LANG
Thread=3b00628 Request="truncate table #dom_port truncate table #dom_position
truncate table #dom_pos truncate table #dom_instr truncate table #vector_id drop
table #port_synth " ... 0.000000
ct_command() SUCCEED Connect=1 CsCmd=2b256c8 Mode=RPC
Thread=3b00628 Request="get_all_type_by_cid @id=28771652,@codif_id=NULL" ... 0.016000
with AAASQLTRACEPARAM=2:
BulkCopy blk_init() table:standard_perf_data column#:16 record#:2 ...
0.062000
BulkCopy blk_bind table:standard_perf_data column#:00 record#:0002 name:id
datatype#:08 : ... BulkCopy : 189286531:0:4#189286532:0:4# ... 0.000000
BulkCopy blk_bind table:standard_perf_data column#:01 record#:0002
name:perf_storage_param_id datatype#:08 : ... BulkCopy :
148500468:0:4#148500468:0:4# ... 0.000000
BulkCopy blk_bind table:standard_perf_data column#:02 record#:0002
name:initial_d datatype#:10 : ... BulkCopy : 00:00:00
:0:8#00:00:00 :0:8# ... 0.000000
BulkCopy blk_bind table:standard_perf_data column#:13 record#:0002
name:return_gross_n datatype#:10 : ... BulkCopy :
0.000000:0:8#0.000000:0:8# ... 0.000000
BulkCopy blk_bind table:standard_perf_data column#:14 record#:0002
name:std_deviation_n datatype#:10 : ... BulkCopy :
0.000000:0:0#0.000000:0:0# ... 0.000000
BulkCopy blk_bind table:standard_perf_data column#:15 record#:0002
name:nb_portfolio_n datatype#:10 : ... BulkCopy :
0.000000:0:0#0.000000:0:0# ... 0.000000
BulkCopy blk_rowxfer() table:standard_perf_data column#:16 record#:2 ...
0.000000
BulkCopy blk_done(ALL) table:standard_perf_data column#:16 record#:2 ...
0.032000
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 146
$AAAHOME/ddl/bin/sqltrace.sh <sql_filename> script can summarise calls:
------------------------------------------------------
File name : /usr/local/triple-a/v3/area/version/appl/msg/sql.z002313
------------------------------------------------------
8 x create ... 0.11 ( 0.0142)
1 x dump_all_codif ... 0.02 ( 0.0210)
1 x dump_meta_dict ... 3.05 ( 3.0469)
1 x get_all_appl_user_by_id ... 0.16 ( 0.1577)
7 x get_all_bal_pos_type_by_id ... 0.03 ( 0.0046)
1 x get_all_currency ... 0.17 ( 0.1660)
9 x get_all_currency_by_id ... 1.28 ( 0.1418)
1 x get_all_grid_by_id ... 0.00 ( 0.0034)
1 x get_all_list_by_id ... 0.01 ( 0.0055)
7 x init_exd_position_by_domain ... 1.01 ( 0.1438)
1 x sel_all_appl_param ... 0.13 ( 0.1251)
786 x sel_all_exch_rate_by_cid_dt ... 7.94 ( 0.0101)
2339 x sel_all_instr_price_by_iid_dt ... 20.95 ( 0.0090)
5 x sel_all_script_def_by_id ... 0.02 ( 0.0049)
1 x sel_exd_classif_compo_by_cfid ... 0.05 ( 0.0501)
7 x sel_exd_position_by_domain ... 2.17 ( 0.3095)
1 x sel_portfolio_id_by_lid ... 0.00 ( 0.0033)
1 x sel_sh_table_modif_stat ... 0.20 ( 0.2037)
1 x sel_sum_format_elem_by_fid_fid ... 0.22 ( 0.2178)
7 x truncate ... 0.02 ( 0.0031)
1 x unlock_event_sched_by_sid ... 0.01 ( 0.0052)
------------------------------------------------------
3227 ... 39.94
With $AAASQLTRACE set to 4, one gets more detailed Sybase sequence calls, especially
the date and time of the Sybase call:
*** 2000/03/13 14:05:53 U=sso H=test1 D=192.168.8.145:0.0 L=sso
ct_results() SUCCEED Connect=-1 CsCmd=4016a4e0 Type=CMD_DONE
*** 2000/03/13 14:05:53 U=sso H=test1 D=192.168.8.145:0.0 L=sso
ct_results() END_RESULTS Connect=-1 CsCmd=4016a4e0 Type=CMD_DONE
*** 2000/03/13 14:05:53 U=sso H=test1 D=192.168.8.145:0.0 L=sso
ct_command() SUCCEED Connect=0 CsCmd=4016a4e0 Mode=RPC
Request="get_sh_appl_user_by_cd"
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 147
Traces for format element evaluation are added to the output file
$AAAMSG/sql.<user_name>.
ct_command() SUCCEED Connect=1 CsCmd=40166f40 Mode=RPC
Thread=4040e710 Request="sel_sum_format_elem_by_fid_fid" ... 0.451725
ct_command() Column:1.002 Connect=1 CsCmd=40166f40 Mode=RPC
Thread=4040e710 Request="sel_all_script_def_by_id" ... 0.005382
ct_command() Column:1.002 Connect=1 CsCmd=40166f40 Mode=RPC
Thread=4040e710 Request="get_all_list_by_id" ... 0.005855
…etc
Script Time (6 rows) Column:1.005 ... 0.000 sec / DEF_VALO_CATEG.filter_f /
DEF_VALO_GRAPHCAT.display_f /
…etc
Format Format_Element
---------------------+------------------------------
DEF_VALO_RBONDS category
DEF_VALO_RCOMM category
DEF_VALO_RSTOCKS category
DEF_VALO_RCATEG category
==========================================================
…etc
Script column: 1.150 shows the dataset and column number (starting from 1).
Note: Several format elements can refer to the same definition. Some definitions can only
require C code time (and no SQL call time):
==========================================================
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 148
Script Column:1.169 Evaluation Time: 0.017 sec
Format Format_Element
---------------------+------------------------------
DEF_VALO_RSTOCKS beta
==========================================================
Around 11MB has been allocated for the AAASERVSSO server. Less than 8MB is currently in
use (out of the 11MB).
Note: The first figure is the maximum memory allocation made since the server was started
(if a large amount of memory has been used for a computation, UNIX cannot use it for
another process even if it has been freed). This amount NEVER decreases (until the server is
stopped). The difference between the amounts is roughly the memory used (minus the
internal memory management data). The free memory is not implemented under SunOS.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 149
The trace supports multi-computation at the same time (the server name is also shown in
the trace).
You must set both the $AAAPERFMON and AAATIMERMASK variables to 1.
The output is copied to in $AAAMSG/pmon.<user_name>.
Example of trace:
2000/04/04 10:23:25:AAASERV842 / Operation List - L:00000.361000 –
C:00000.000000 – F:00001.882000
2000/04/04 10:25:08:AAASERV842 / Strategy Reconciliation - L:00000.000000 –
C:00004.897000 – F:00000.721000
2000/04/04 10:25:34:AAASERV842 / Return Analysis - L:00000.521000 –
C:00001.903000 – F:00000.661000
2000/04/04 10:25:57:AAASERV842 / Valuation - L:00001.001000 –
C:00000.030000 – F:00011.807000
The beginning is formatted with a fixed length: 30 chars for the server name, 25 for the
function name. “L” indicated load time, “C” computing time and “F” format evaluation and
sending time. More detailed information may be added in the future (all separated by “-“).
No script has been currently developed. The result can be imported into Excel, for example,
to compute average, deviation, etc.
Block mode is used in the following functions: fusion, Strategy Reconciliation/ Allocate Order,
synthetic data building, copy operation, modify currency (aaa_srv), import (in block mode)
(aaa_imp) + same for OLI, Order entry, Simulation and Event Generation (Saving
Operations) (GUI), portfolio storage, benchmark storage, etc.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 150
18.5.2.8 Script engine trace
The trace is system-wide.
The following different variables are available to activate script traces:
$AAASCRIPTTRACE
$AAASCRIPTTRACEMASK
$AAASCRIPTTRACETHREAD
In the output file $AAAMSG/scripttrace.<user_name>.
Set the variables $AAASCRIPTTRACE to different values. The available values are:
$AAASCRIPTTRACE=1
AAASCRIPTTRACE=2 or AAASCRIPTTRACE=20
AAASCRIPTTRACE=3
AAASCRIPTTRACE=15
AAASCRIPTTRACE=21
AAASCRIPTTRACE=25
$AAASCRIPTTRACE=1
This trace is very useful for identifying dependencies between default values and rules. It
displays a tree with all the evaluated attributes after modification of an attribute and the
complete script definition as stored in memory.
Example of trace when modifying the operation status:
START <SCPT_AnalyseEntityDefVal(Depend,DefVal)> [2011/11/25 11:47:38.679000]
(Thread:3bb59a0) *******
Evaluated attributes for entity : *buy_operation*
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 151
-> spot_quote_n
| -> acc2_exch_rate
| -> spot_price_n
| -> acc_net_amount_m
| -> acc2_net_amount_m
| | -> op_net_amount_m
| | -> acc_net_amount_m
-> suppl_amount_m
| -> op_gross_amount_m
| | -> op_net_amount_m
| | -> bp_1_amount_m
| | | -> op_net_amount_m
| | | -> bp_1_currency_id
| | | | -> op_net_amount_m
| | -> ud_pool_code
-> acc_net_amount_m
-> acc2_net_amount_m
The above is a tree with all attributes that are evaluated due to the modification of an
attribute. Indented to the right are the dependencies between the evaluated attribute and
other attributes.
******************************************************
* Chronological list of evaluated script definitions *
* (containing default values and rules) *
******************************************************
END
Value before (suppl_amount_m): ""
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 152
BEGIN
{This script implies setting to zero gross amount for FRA Open and Swap Open
ref_nat_e}
IF (ref_nat_e IN(11, 17), 0,
RNDAMT((price_n*quantity_n*instr_id.contract_size_n)+ suppl_amount_m,op_currency_id))
END
Value after (op_gross_amount_m): " 0.00"
The above are complete script definitions for all evaluated attributes as stored in the
memory of the client application. They can be a concatenation of the rule definition and the
default value definition.
To find dependencies between two attributes, such as status_e and bp_1_amount_m, search
for bp_1_amount_m in the output file. Then, follow the tree from right to left starting from
bp_1_amount_m. You will see all attributes that are dependent on bp_1_amount_m.
AAASCRIPTTRACE=2 or AAASCRIPTTRACE=20
Traces the internal script evaluation.
Example of trace:
*** Script analysis on record :
$OBJECT$,BuyOpEnt,$DYNST$,BuyOp
…
***
Script definition:
BEGIN
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 153
*** The script return :
AAASCRIPTTRACE=3
Prints the execution time for the evaluation of default values, input controls, filters, and any
scripts.
Request="(DV)GET_BEST_OBJECT" 0.140000
Request="(DV)buy_operation".expiration_d 0.140000
Request="(DV)GET_APPL_PARAM" 0.016000
Request="(DV)buy_operation".price_n 0.016000
Request="(DV)GET_BEST_OBJECT" 0.015000
Request="(DV)buy_operation".bp_1_type_id 0.015000
Request="(DV)buy_operation".lock_fi_currency_id 0.016000
Request="(DV)GET_BEST_OBJECT" 0.031000
Request="(DV)GET_BEST_OBJECT" 0.016000
Request="(FLT)buy_operation".order_nat_e 0.047000
AAASCRIPTTRACE=15
Similar to AAASCRIPTTRACE=1 and AAASCRIPTTRACE=3
AAASCRIPTTRACE=21
Similar to AAASCRIPTTRACE=2 with more details in the node.
Example of details:
(level 001)--> SCPT_EvalFctNode (IF)
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 154
(level 005)--> SCPT_EvalDataNode
AAASCRIPTTRACE=25
Similar to a merge of AAASCRIPTTRACE=1, AAASCRIPTTRACE=21, and
AAASCRIPTTRACE=3.
If variable $AAASCRIPTTRACEMASK is set, then $AAASCRIPTTRACE is bypassed. The role of
this variable is the same as that of $AAASCRIPTTRACE but the value is a “bit”. Every bit
activates one type of trace. There are four types of traces: (NOTRACE), (DEPEND), (TIMER),
(EVAL) and (EVALIN):
1 (0001) (DEPEND) 1
2 (0010) (TIMER) 3
4 (0100) (EVAL) 2
3 (0011) (DEPEND)|(TIMER) 15
15 (1111) (DEPEND)|(TIMER)|(EVAL)|(EVALIN) 25
If $AAASCRIPTTRACETHREAD is set to a non-null value, there is one trace script per financial
function launched. All trace scripts are stored in the same directory created for one financial
session server.
Example of directory created:
$MSGDIR/scripttrace_20111114140802
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 155
Files stored in this directory are named, for example:
scripttrace_000001_3ba3da0_02.jpp
scripttrace_000002_3ba3da0_02.jpp
scripttrace_001001_3ba3da0_02.jpp
Format filename:
scripttrace_xxxyyy_pppppp_ff.logname
where:
xxx: if several financial functions are launched in parallel, xxx is the count number
parallel.
yyy: incremental number
pppppp: process number
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 156
.
. FIELD[29] to FIELD[174]
.
.
FIELD[175] "ud_rep_overview_f " (FlagType ) = 1
FIELD[176] "ud_rep_det_valo_f " (FlagType ) = 1
FIELD[186] "ud_rep_journal_f " (FlagType ) = 1
2003/03/28 11:43:15:AAASERV1168 :mca : 5(cli) : Send Data (set :0 col:132
row:34)
2003/03/28 11:43:27:AAASERV1168 :mca : 5(cli) : Exit Valuation on portfolio
list [10] with all instruments
Files generated
AAASERV9040_20131029154211_65.xml.gz is generated by the server name AAASERV9040
on 29 October 2013 at 15:42.11. It is a compressed xml file with sections containing
information such as statistics, which positions have been loaded, how they have been
treated, and which positions have been saved.
For Developers only, there is an Import section that allows for the creation of import files for
reproduction and debugging purposes. Only the operations involved are saved and any old
operations are replaced by an init operation (archive operation).
Remarks
The fusion process generally does most computations in mode New. When an incorrect result
is returned, it is possible to redo the computation by launching the fusion process in mode
All, which will load more data than mode New.
In most cases, if a random issue occurs, the simple solution is to enable the fusion trace and
to wait until the issue comes up again. Then, locate the fusion trace file(s) involved (based
on the portfolio code, for example) and provide these files to the helpdesk with the portfolio
code and operation codes. If, however, you decided to launch the fusion process in mode All
and the problem was fixed, also provide this fusion trace to the helpdesk.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 157
When the fusion trace is enabled, many files will be written into the directory $AAAMSG,
which might take up some disk space.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 158
3. Select option 99 to exit.
18.6.2 Limitations
The code is usually a unique business key. As a result, it is not possible to decrease
max_db_len_n if a code with a longer length already exists.
18.7.1 scptgrep.sh
Triple’A Plus Core offers a scripts tool in the directory $AAAHOME/tools for script definition
search. As well, generated files can also be found in $AAAHOME/tools.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 159
19 Operations and positions checks
Triple’A Plus Core offers scripts tools in the directory $AAAHOME/ddl/bin for analysing
whether there are problems related to operation, position, or balance position. Some
problems can be fixed automatically by the script. These script tools, however, perform
many SQL queries, which might affect the system load.
The script tools are:
chk_fusion.sh
chk_fusion_ol.sh
19.1 chk_fusion.sh
The chk_fusion.sh is the command line tool that execute all steps.
A typical launch of a check (user:aaa/pwd:aaaaaa) is:
cd $AAAHOME/ddl/bin
./chk_fusion.sh aaa aaaaaa check iso_1
19.2 chk_fusion_ol.sh
The chk_fusion_ol.sh is the same tool as chk_fusion.sh but is menu driven.
A typical launch of a check (user:aaa/pwd:aaaaaa) is:
cd $AAAHOME/ddl/bin
./chk_fusion_ol.sh aaa aaaaaa iso_1
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 160
QUIT this panel without performing any action ........ 0
--------------------------------------------------------
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 161
20 Export tools
This chapter describes the extract tools for exporting data from Triple'A Plus. These tools are
not migration tools but data export-import tools.
The export tools are run using the aaa services located in the $AAAHOME directory. When
these services are run, the corresponding scripts in $AAAHOME/bin/ are executed and they
run other shell scripts located by default in $AAAHOME/tools/export. These shell scripts
establish connections with the data server through ISQL. Data text files and a cmd file are
then created in a default folder or in a user-defined folder.
By using the generated import files, the extracted data can be imported into another
environment through service aaa imp.
Note: Most of the tools do not export user-defined fields.
20.1.1 Formats
The format entity and related entities are managed by the aaa expfmt service. It uses the
format.sh shell script. It can be used with a wildcard character.
This tool exports the following that are linked to format and format element:
format
format elements
format denomination
format element denomination
format element scripts definitions
format element notepads
messages and message texts
20.1.1.2 Example
The following example shows how to export a format called PCK_PM_VL_BONDS:
>$AAAHOME/aaa expfmt d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa
PCK_PM_VL_BONDS default_charset
AAAHOME is /oams/d_mst_dev/aaa/current
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 162
Executing /oams/d_mst_dev/aaa/current/bin/SunOS/aaa_expfmt d_mst_dev_aaamaindb
d_mst_devaaa d_mst_devaaad_mst_devaaa PCK_PM_VL_BONDS default_charset
DBO_OK
Beginning extraction of format(s) PCK_PM_VL_BONDS ...
export parent format PCK_PM_VL_PARENT...
10/10/14 15:18:26
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma START with
parameters -e format -w /oams/d_mst_dev/aaa/current/tmp -d
/oams/d_mst_dev/aaa/current/tmp -f row_format.21385.tmp -o PCK[_]PM[_]VL[_]PARENT -
Ud_mst_devaaa -Pd_mst_devaaad_mst_devaaa -M d_mst_dev_aaamaindb -s ~
Password:
10/10/14 15:18:26
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma END
10/10/14 15:18:31
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma START with
parameters -e format_element -w /oams/d_mst_dev/aaa/current/tmp -d
/oams/d_mst_dev/aaa/current/tmp -f script_def.21385.tmp -o PCK[_]PM[_]VL[_]PARENT -
Ud_mst_devaaa -Pd_mst_devaaad_mst_devaaa -M d_mst_dev_aaamaindb -s ~
Password:
10/10/14 15:18:31
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma END
10/10/14 15:18:43
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma START with
parameters -e format -w /oams/d_mst_dev/aaa/current/tmp -d
/oams/d_mst_dev/aaa/current/tmp -f row_format.21346.tmp -o PCK[_]PM[_]VL[_]BONDS -
Ud_mst_devaaa -Pd_mst_devaaad_mst_devaaa -M d_mst_dev_aaamaindb -s ~
Password:
10/10/14 15:18:43
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma END
10/10/14 15:18:48
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma START with
parameters -e format_element -w /oams/d_mst_dev/aaa/current/tmp -d
/oams/d_mst_dev/aaa/current/tmp -f script_def.21346.tmp -o PCK[_]PM[_]VL[_]BONDS -
Ud_mst_devaaa -Pd_mst_devaaad_mst_devaaa -M d_mst_dev_aaamaindb -s ~
Password:
10/10/14 15:18:49
/oams/d_mst_dev/aaa/current/tools/export/export_scrdef.sh laudoma END
File Description
FORMAT_CODE.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 163
20.1.2.1 List
For lists, list.sh object runs the list.sh shell script. The list.sh option exports lists
based on any entity depending on the last argument passed through the command (the
default is the instrument list).
With the list.sh option, in the case of a constrained list the tool exports the
list
denomination
notepad
script definition
With the list.sh option, in the case of an enumerated list the tool exports the
list
denomination
notepad
list composition
WARNING: aaa expobj cannot export lists that have the nature "search".
Example
The first example shows how to export an instrument list called T_AI_Bond using the list.sh
option:
>$AAAHOME/aaa expobj list.sh d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa T_AI_Bond
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj list.sh d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa T_AI_Bond
DBO_OK
The second example shows how to export a strategy list called T_AI_STRAT_LIST with the
list.sh option:
>$AAAHOME/aaa expobj list.sh d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
T_AI_STRAT_LIST strategy
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj list.sh d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa T_AI_STRAT_LIST strategy
DBO_OK
Beginning extraction of list(s) T_AI_STRAT_LIST ...
08/02/12 17:50:29
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n list -e strategy -w /tmp -d
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 164
/oams/d_tap_5sp/aaa/current/tmp -f script_def.1134844.tmp -o T[_]AI[_]STRAT[_]LIST -
Ud_tap_5spaaa -Pd_tap_5spaaa -Md_tap_5sp_aaamaindb -s ~
08/02/12 17:50:34
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_STRAT_LIST_LIST.cmd
Generated file
The generated file is saved in the specified output directory or $AAAHOME/tmp by default. The
generated file is:
File Description
<LIST_CODE>_LIST.cmd The cmd file containing all setting, command, and attribute lines specific to a
native import file. It is the main argument of the import command.
20.1.2.2 Classification
For classifications, the classif.sh object runs the classif.sh shell script. The classif.sh
option exports classifications based on all the entities, depending on the last argument
passed through the command (by default, instrument classifications).
The tool exports:
classification
denomination
classification composition
Example
The first example shows how to export an instrument classification called T_AI_CATEGORIES
using the classif.sh option:
>$AAAHOME/aaa expobj classif.sh d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
T_AI_CATEGORIES
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj classif.sh
d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa T_AI_CATEGORIES
DBO_OK
Beginning extraction of classification(s) T_AI_CATEGORIES ...
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_CATEGORIES_CLASSIF.cmd
The second example shows how to export a currency classification called T_AI_CURRENCIES
using the classif.sh option:
>$AAAHOME/aaa expobj classif.sh d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
T_AI_CURRENCIES currency
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj classif.sh
d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa T_AI_CURRENCIES currency
DBO_OK
Beginning extraction of classification(s) T_AI_CURRENCIES ...
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_CURRENCIES_CLASSIF.cmd
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 165
Generated file
The generated file is saved in the specified output directory or $AAAHOME/tmp by default. The
generated file is:
File Description
<CLASSIF_CODE>_CLASSIF.cmd The cmd file containing all setting, command, and attribute lines
specific to a native import file. It is the main argument of the import
command.
20.1.2.3 Grid
There are three different natures of grid: standard grid, market structure grid and market
structure subset grid. There is an object of the aaa expobj tool for each of these natures.
Standard grid
For the standard grid, the grid object runs the grid.sh shell script.
The tool exports the classifications, lists and all the previously linked entities attached to the
specified grid. The grid, grid denomination, market segments and market segment
denominations are also exported.
The parent market segments are exported with the grid.sh option.
Example
The following example shows how to export a standard grid called T_AI_GRID_CATEG with
the grid.sh option:
>$AAAHOME/aaa expobj grid.sh d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
T_AI_GRID_CATEG
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj grid.sh d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa T_AI_GRID_CATEG
DBO_OK
Beginning extraction of grid(s) T_AI_GRID_CATEG ...
20/02/12 14:27:46
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n list -e instrument -w /tmp -d
/oams/d_tap_5sp/aaa/current/tmp -f script_def.1732836.tmp -o T[_]AI[_]Bond -
Ud_tap_5spaaa -Pd_tap_5spaaa -Md_tap_5sp_aaamaindb -s ~
20/02/12 14:27:47
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
20/02/12 14:27:48
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n list -e instrument -w /tmp -d
/oams/d_tap_5sp/aaa/current/tmp -f script_def.1732838.tmp -o T[_]AI[_]Cash -
Ud_tap_5spaaa -Pd_tap_5spaaa -Md_tap_5sp_aaamaindb -s ~
20/02/12 14:27:48
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
20/02/12 14:27:49
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n list -e instrument -w /tmp -d
/oams/d_tap_5sp/aaa/current/tmp -f script_def.1732856.tmp -o T[_]AI[_]Others -
Ud_tap_5spaaa -Pd_tap_5spaaa -Md_tap_5sp_aaamaindb -s ~
20/02/12 14:27:49
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 166
20/02/12 14:27:50
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n list -e instrument -w /tmp -d
/oams/d_tap_5sp/aaa/current/tmp -f script_def.954538.tmp -o T[_]AI[_]Stock -
Ud_tap_5spaaa -Pd_tap_5spaaa -Md_tap_5sp_aaamaindb -s ~
20/02/12 14:27:51
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_GRID_CATEG_GRID.cmd
Generated file
The generated file is saved in the specified output directory or $AAAHOME/tmp by default. The
generated file is:
File Description
<GRID_CODE>_GRID.cmd The cmd file containing all setting, command, and attribute lines specific to a
native import file. It is the main argument of the import command.
Market structure
For the market structure grid, the market_structure object runs the
market_structure.sh shell script.
The tool exports the grid, the grid denomination, the market structure, the market segments
and market segment denominations.
Warning: the standard grids linked to the specified market structure are not exported.
Example
The following example shows how to export a market structure grid called T_AI_MKTSTR1
with the market_structure option:
>$AAAHOME/aaa expobj market_structure d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
T_AI_MKTSTR1
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj market_structure
d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa T_AI_MKTSTR1
DBO_OK
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_MKTSTR1_MSTRUCT.cmd
Generated file
The generated file is saved in the specified output directory or $AAAHOME/tmp by default. The
generated file is:
File Description
<MKTSTR_CODE>_MSTRUCT.cmd The cmd file containing all setting, command, and attribute lines specific
to a native import file. It is the main argument of the import command.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 167
Example
The following example shows how to export a market structure subset called T_AI_MSS_A1
with the market_structure_subset option:
>$AAAHOME/aaa expobj market_structure_subset d_tap_5sp_aaamaindb d_tap_5spaaa
d_tap_5spaaa T_AI_MSS_A1
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj market_structure_subset
d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa T_AI_MSS_A1
DBO_OK
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_MSS_A1_MSTRSUB.cmd
Generated file
The generated file is saved in the specified output directory or $AAAHOME/tmp by default. The
generated file is:
File Description
<MSS_CODE>_MSTRSUB.cmd The cmd file containing all setting, command, and attribute lines specific to
a native import file. It is the main argument of the import command.
20.1.3.1 Example
The following example shows how to export a strategy called T_AI_Asset1_Aggr with the
strat.sh option:
>$AAAHOME/aaa expobj strat.sh d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
T_AI_Asset1_Aggr
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj strat.sh d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa T_AI_Asset1_Aggr
DBO_OK
Beginning extraction of T_AI_Asset1_Aggr asset allocation or model portfolio ...
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_Asset1_Aggr_STRAT.cmd
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 168
20.1.3.2 Generated files
The generated files are saved in the specified output directory or $AAAHOME/tmp by default.
The generated files are:
File Description
<STRAT_CODE>_STRAT.cmd The cmd file containing all setting, command, and attribute lines
specific to a native import file. It is the main argument of the
import command.
<STRAT_CODE>_STRAT.str Contains all the data of the strategies.
<STRAT_CODE>_STRAT.str_hst Contains all the data of the strategy history.
<STRAT_CODE>_STRAT.elem Contains all the data of the strategy elements.
<STRAT_CODE>_STRAT.elem_strat The files containing all details of the strategy composition.
<STRAT_CODE>_STRAT.elem_port
20.1.4.1 Example
The following example shows how to export a script rule called DEF_BUYRULE based on the
buy_operation entity:
>$AAAHOME/aaa expobj rule d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa DEF_BUYRULE
buy_operation
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj rule d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa DEF_BUYRULE buy_operation
DBO_OK
Beginning extraction of rule(s) DEF_BUYRULE ...
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/DEF_BUYRULE_RULE.cmd
File Description
<RULE_CODE>_RULE.cmd The cmd file containing all setting, command, and attribute lines specific to a
native import file. It is the main argument of the import command.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 169
20.1.5.1 Command line
When you run the aaa expscr script without arguments, the following usage details are
displayed:
aaa_expscr: Invalid number of arguments
Usage: aaa_expscr username password database screen entity
[charset|default_charset][out_dir]
where
username is the Triple'A user's name
password is the Triple'A user's password
database is the database name
screen is the screen or the group of screens that you want to build as an
importation file. You can use the % character as wildcard.
entity is the table on which the screen is attached (ex : address)
charset is usually "default_charset"
out_dir specifies the destination folder. By default, all files will be
created under /oams/d_tap_5sp/aaa/current/tmp
20.1.5.2 Example
The following example shows how to export the screen called "T_AI_PM_ORDER_SELL" on
entity "sell_operation":
> $AAAHOME/aaa expscr d_tap_5spaaa d_tap_5spaaa d_tap_5sp_aaamaindb
T_AI_PM_ORDER_SELL sell_operation default_charset
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expscr d_tap_5spaaa d_tap_5spaaa
d_tap_5sp_aaamaindb T_AI_PM_ORDER_SELL sell_operation default_charset
DBO_OK
Screen exportation program
Beginning extraction of screen(s) T_AI_PM_ORDER_SELL ...
18/01/12 17:48:54
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n dict_screen -e sell_operation -w
/oams/d_tap_5sp/aaa/current/tmp -d /oams/d_tap_5sp/aaa/current/tmp -f script_def.dat
-o T[_]AI[_]PM[_]ORDER[_]SELL -Ud_tap_5spaaa -Pd_tap_5spaaa -M d_tap_5sp_aaamaindb -s
~ -q |
18/01/12 17:48:55
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
18/01/12 17:48:56
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
START with parameters -n dict_panel -e sell_operation -w
/oams/d_tap_5sp/aaa/current/tmp -d /oams/d_tap_5sp/aaa/current/tmp -f
script_def_panel.dat -o T[_]AI[_]PM[_]ORDER[_]SELL -Ud_tap_5spaaa -Pd_tap_5spaaa -M
d_tap_5sp_aaamaindb -s ~ -q |
18/01/12 17:48:58
/oams/d_tap_5sp/aaa/current/tools/export/export_scrdef.sh laurs55g.oams.com
END
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp directory ; the cmd
file is /oams/d_tap_5sp/aaa/current/tmp/T_AI_PM_ORDER_SELL_SCREEN.cmd
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 170
File Description
<SCREEN_CODE>_SCREEN.cmd The cmd file containing all setting, command, and attribute lines specific
to a native import file. It is the main argument of the import command.
20.1.6 Messages
The appl_message and appl_msg_text entities are managed by the aaa expmsg service.
This tool uses the messages.sh shell script.
This tool exports messages, including any translated message texts.
20.1.6.2 Example
The following example shows how to export the user messages:
>$AAAHOME/aaa expmsg d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa default_charset
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expmsg d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa default_charset
DBO_OK
Data found
File Description
APPL_MESSAGE.cmd The cmd file containing all setting, command, and attribute lines specific to a
native import file. It is the main argument of the import command.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 171
20.1.7 Valuation rules
The valuation rule and related entities are managed by the aaa exprule service. This tool
cannot be used with a wildcard.
Warning: The lists and classifications on which the valuation rule is build are not exported
with this tool.
This tool exports the valuation rule, the valuation rule notepads, the valuation rule
denominations, the valuation rule history, the valuation rule history elements, the valuation
rule history element notepads and the valuation rule history element denominations.
Remark :
- CLASSIFICATIONS and LISTS must be imported first!
- You can only export valuation rules of nature "P&L rule" (nature_e = 7).
For the other valuation rule natures, you must use the tool :
"aaa expobj" and provide a date (for valuation rule history) to make the tool
work.
Example : aaa expobj -e val_rule -o -d /usr/tmp -U -P -M -h <date>
where <date> is the date of valuation_rule_history ( dd/mm/yyyy )
20.1.7.2 Example
The following example shows how to export the TEST_RULE valuation rule:
>$AAAHOME/aaa exprule d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa TEST_RULE
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_exprule d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa TEST_RULE
DBO_OK
Beginning extraction of valuation rule for TEST_RULE
The valuation rules are generated in /oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vr.dat
/oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vrh.dat
/oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vre.dat
/oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vrd.dat
/oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vrn.dat
/oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vred.dat
/oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_vren.dat
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 172
The command file is generated in /oams/d_tap_5sp/aaa/current/tmp/TEST_RULE_VR.cmd
File Description
<VAL_RULE_CODE>_VR.cmd Contains all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
20.1.8 Map
The shell script map.sh exports the map entity. The following usage description is displayed
if you run $AAAHOME/tools/export/map.sh without arguments:
Usage: map.sh [output_dir] [database] [username] [password] [object | % for wildcard]
Where:
<output_dir> is the complete path of the directory where the generated files are created, e.g:
/usr/tmp
<database> is the Triple'A Plus Core main database
<username> is the Triple'A Plus Core user name
<password> is the Triple'A Plus Core user password
<object> is the code of the map
20.1.9 Subscription
The shell script subscription.sh exports the subscription, map and script_definition
entities. The following usage description is displayed if you run
$AAAHOME/tools/export/subscription.sh without arguments:
Usage: subscription.sh [output_dir] [database] [username] [password] [object | % for
wildcard]
Where:
<output_dir> is the complete path of the directory where the generated files are created, e.g:
/usr/tmp
<database> is the Triple'A Plus Core main database
<username> is the Triple'A Plus Core user name
<password> is the Triple'A Plus Core user password
<object> is the code of the subscription
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 173
20.1.10 Default value and input control
20.1.10.1 Example
The first example shows how to export the user default values:
>$AAAHOME/aaa expobj defval d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj defval d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa
DBO_OK
Beginning extraction of default values ...
The second example shows how to export the user input controls:
>$AAAHOME/aaa expobj inpctrl d_tap_5sp_aaamaindb d_tap_5spaaa d_tap_5spaaa
AAAHOME is /oams/d_tap_5sp/aaa/current
Executing /oams/d_tap_5sp/aaa/current/bin/AIX/aaa_expobj inpctrl d_tap_5sp_aaamaindb
d_tap_5spaaa d_tap_5spaaa
DBO_OK
Beginning extraction of input control ...
The generated files are under the /oams/d_tap_5sp/aaa/current/tmp/ directory ; the
cmd file is /oams/d_tap_5sp/aaa/current/tmp/inpctrl.cmd
File Description
defval.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
defval.dat Contains all the script definitions of the user default values.
inpctrl.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
inpctrl.dat Contains all the script definitions of the user input control.
20.1.11.1 Example
The following example shows how to export a trading constraint called T_AI_CMC_TC1:
>$AAAHOME aaa expobj -e trading_constraint -Uv_gen_51_1aaa -
Pv_gen_51_1aaav_gen_51_1aaa -o T_AI_CMC_TC1
AAAHOME is /oams/v_gen_51_1/aaa/current
Executing /oams/v_gen_51_1/aaa/current/bin/AIX/aaa_expobj -e trading_constraint -
Uv_gen_51_1aaa
NOTICE: no -x flag, continuing script.
03/04/12 15:52:24
/oams/v_gen_51_1/aaa/current/tools/export/export_trading_constraint.sh
laurs55j.oams.com START with parameters -Uv_gen_51_1aaa -
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 174
Pv_gen_51_1aaav_gen_51_1aaa -Mv_gen_51_1_aaamaindb -o T_AI_CMC_TC1 -d
/oams/v_gen_51_1/aaa/current -f trading_constraint.imp -w
/oams/v_gen_51_1/aaa/current/tmp
Number of templates: 0
03/04/12 15:52:27
/oams/v_gen_51_1/aaa/current/tools/export/export_scrdef.sh laurs55j.oams.com
START with parameters -U v_gen_51_1aaa -P v_gen_51_1aaav_gen_51_1aaa -M
v_gen_51_1_aaamaindb -n trdcst -o T_AI_CMC_TC1 -d /oams/v_gen_51_1/aaa/current/tmp -f
export_trading_constraint.27983984.trdcst_scrdef
03/04/12 15:52:27
/oams/v_gen_51_1/aaa/current/tools/export/export_scrdef.sh laurs55j.oams.com
END
03/04/12 15:52:27
/oams/v_gen_51_1/aaa/current/tools/export/export_denomination.sh
laurs55j.oams.com START with parameters -U v_gen_51_1aaa -P
v_gen_51_1aaav_gen_51_1aaa -M v_gen_51_1_aaamaindb -e trading_constraint -o
T_AI_CMC_TC1 -d /oams/v_gen_51_1/aaa/current/tmp -f
export_trading_constraint.27983984.denom
03/04/12 15:52:27
/oams/v_gen_51_1/aaa/current/tools/export/export_denomination.sh
laurs55j.oams.com INFO Importfile is
/oams/v_gen_51_1/aaa/current/tmp/export_trading_constraint.27983984.denom
03/04/12 15:52:27
/oams/v_gen_51_1/aaa/current/tools/export/export_denomination.sh
laurs55j.oams.com END (exit value:0)
03/04/12 15:52:29
/oams/v_gen_51_1/aaa/current/tools/export/export_trading_constraint.sh
laurs55j.oams.com END (exit value:0)
File Description
trading_constraint.imp The importation file containing all setting, command, and attribute lines
specific to a native import file. It is the main argument of the import
command.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 175
table_name can be "dict_function", "appl_param", "type", "model_constraint",
"script_definition"
database is the database name
username is the Triple'A user's name
password is the Triple'A user's password
pattern. You can use the wildcard % character
For the particular case of appl_comment , the pattern is an entity on
which you want to export all the corresponding appl_comment.
charset is usually "default_charset"
out_dir specifies the destination folder. By default, all files will be
created under /oams/d_mst_dev/aaa/current/tmp
20.1.12.2 Example
The following example shows how to export all modelling constraints for portfolio called
"T_AI_AC_PTF1":
>$AAAHOME/aaa export model_constraint d_mst_dev_aaamaindb d_mst_devaaa
d_mst_devaaad_mst_devaaa T_AI_AC_PTF1 default_charset
AAAHOME is /oams/d_mst_dev/aaa/current
Executing /oams/d_mst_dev/aaa/current/bin/SunOS/aaa_export.sh model_constraint
d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa T_AI_AC_PTF1
default_charset
model_constraint d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa
T_AI_AC_PTF1 default_charset
Beginning extraction of modelling_constraint(s) for portfolio T_AI_AC_PTF1 ...
The generated files are under the /oams/d_mst_dev/aaa/current/tmp/directory ; the cmd
file is /oams/d_mst_dev/aaa/current/tmp/T_AI_AC_PTF1_MODELLING_CONSTRAINT.cmd
File Description
<CODE>_MODELLING_CONSTRAINT.cmd The cmd file containing all setting, command, and attribute lines
specific to a native import file. It is the main argument of the
import command.
20.1.13 Comments
The application comments are managed by the aaa export service. This tool uses the
appl_comment.sh shell script. Wildcards are not allowed.
The appl_comment table stores the multilingual comments and links them to any
entity/object in the database.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 176
where
table_name can be "dict_function", "appl_param", "type", "model_constraint",
"appl_comment", "script_definition"
database is the database name
username is the Triple'A user's name
password is the Triple'A user's password
pattern. You can use the wildcard % character
For the particular case of appl_comment , the pattern is an entity on which you
want to export all corresponding appl_comment(currently appl_comment is implemented
only on "type" entity).
ex:aaa export appl_comment d_tap_bdc_aaamaindb d_tap_bdcaaa
d_tap_bdcaaad_tap_bdcaaa type default_charset
For script definition, the pattern could be
system|md_system|system_function|all|function
ex:aaa export script_definition d_tap_bdc_aaamaindb d_tap_bdcaaa
d_tap_bdcaaad_tap_bdcaaa system default_charset
charset is usually "default_charset"
out_dir specifies the destination folder. By default, all files will be
created under /oams/d_tap_bdc/aaa/current/tmp
20.1.13.2 Example
The following example shows how to export all multilingual comments for type entity:
aaa export appl_comment d_tap_bdc_aaamaindb d_tap_bdcaaa d_tap_bdcaaad_tap_bdcaaa
type default_charset
AAAHOME is /oams/d_tap_bdc/aaa/current
Executing /oams/d_tap_bdc/aaa/current/bin/AIX/aaa_export.sh appl_comment
d_tap_bdc_aaamaindb d_tap_bdcaaa d_tap_bdcaaad_tap_bdcaaa type default_charset
appl_comment d_tap_bdc_aaamaindb d_tap_bdcaaa d_tap_bdcaaad_tap_bdcaaa type
default_charset
File Description
appl_comment_type.imp The importation file containing all entity_dict_id, language_dict_id, and
object_id of that particular entity on which appl_comment is implemented.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 177
20.1.14.1 Command line
If you run the aaa export script without arguments, the following usage details are
displayed:
AAAHOME is /oams/d_mst_dev/aaa/current
Executing /oams/d_mst_dev/aaa/current/bin/SunOS/aaa_export.sh
aaa_export.sh: Invalid number of arguments
20.1.14.2 Example
For script definition, the pattern could be system, md_system, system_function, all, or
function.
The following example shows how to export the function script definitions:
*** [email protected]:/oams/d_tap_bdc/aaa/current ***
#aaa export script_definition d_tap_bdc_aaamaindb d_tap_bdcaaa
d_tap_bdcaaad_tap_bdcaaa function default_charset
AAAHOME is /oams/d_tap_bdc/aaa/current
Executing /oams/d_tap_bdc/aaa/current/bin/AIX/aaa_export.sh script_definition
d_tap_bdc_aaamaindb d_tap_bdcaaa d_tap_bdcaaad_tap_bdcaaa function default_charset
script_definition d_tap_bdc_aaamaindb d_tap_bdcaaa d_tap_bdcaaad_tap_bdcaaa function
default_charset
Beginning extraction of functions script definition ...
The generated files are under the /oams/d_tap_bdc/aaa/current/tmp/ directory; the cmd
file is /oams/d_tap_bdc/aaa/current/tmp/function.cmd.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 178
File Description
function.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
20.1.15 Functions
The business functions are managed by the aaa export service. This tool uses the
dict_function.sh shell script. Wildcards are allowed.
20.1.15.2 Example
The following example shows how to export all functions where the name starts with "acc":
>$AAAHOME/aaa export dict_function d_mst_dev_aaamaindb d_mst_devaaa
d_mst_devaaad_mst_devaaa acc% default_charset
AAAHOME is /oams/d_mst_dev/aaa/current
Executing /oams/d_mst_dev/aaa/current/bin/SunOS/aaa_export.sh dict_function
d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa acc% default_charset
dict_function d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa acc%
default_charset
Beginning extraction of dict_function(s) acc% ...
The generated files are under the /oams/d_mst_dev/aaa/current/tmp/ directory ; the
cmd file is /oams/d_mst_dev/aaa/current/tmp/accALL.cmd.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 179
File Description
accALL.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
20.1.16.2 Example
The following example shows how to export all application parameters containing "PAR" in
the name:
>$AAAHOME/aaa export appl_param d_mst_dev_aaamaindb d_mst_devaaa
d_mst_devaaad_mst_devaaa %PAR% default_charset
AAAHOME is /oams/d_mst_dev/aaa/current
Executing /oams/d_mst_dev/aaa/current/bin/SunOS/aaa_export.sh appl_param
d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa %PAR% default_charset
appl_param d_mst_dev_aaamaindb d_mst_devaaa d_mst_devaaad_mst_devaaa %PAR%
default_charset
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 180
20.1.16.3 Generated file
The generated file is saved in the specified output directory or $AAAHOME/tmp by default. The
generated file is:
File Description
ALLPAR%.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
20.1.17 Types
The types are managed by the aaa export service. This tool uses the type.sh shell script.
Wildcards are allowed.
This tool exports data from type and denomination.
20.1.17.2 Example
The following example shows how to export all types containing "AI" in the code:
>$AAAHOME/aaa export type v_gen_71_n_aaamaindb v_gen_71_naaa
v_gen_71_naaav_gen_71_naaa %AI% default_charset
AAAHOME is /oams/v_gen_71_n/aaa/current
Executing /oams/v_gen_71_n/aaa/current/bin/SunOS/aaa_export.sh type
v_gen_71_n_aaamaindb v_gen_71_naaa v_gen_71_naaav_gen_71_naaa %AI% default_charset
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 181
type v_gen_71_n_aaamaindb v_gen_71_naaa v_gen_71_naaav_gen_71_naaa %AI%
default_charset
File Description
ALLAI%.cmd The cmd file containing all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
20.1.18 Profiles
Command line
If you run the aaa EXP_DATA_PROF script without arguments, the following usage details are
displayed:
# aaa EXP_DATA_PROF
AAAHOME is /oams/d_tap_bdc2/aaa/current
Executing /oams/d_tap_bdc2/aaa/current/tools/export/data_prof.sh
data_prof.sh: Invalid number of arguments
Usage: data_prof.sh output_dir database username password <object | % for wildcard>
[charset|default_charset]
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of the data profile
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 182
Example
The following example shows how to export all data profiles containing
"DEF_DATA_PROFILE" in the code:
*** [email protected]:/oams/d_tap_bdc2/aaa/current ***
# aaa EXP_DATA_PROF /usr/tmp d_tap_bdc2_aaamaindb d_tap_bdc2aaa
d_tap_bdc2aaad_tap_bdc2aaa DEF_DATA_PROFILE default_charset
AAAHOME is /oams/d_tap_bdc2/aaa/current
Executing /oams/d_tap_bdc2/aaa/current/tools/export/data_prof.sh /usr/tmp
d_tap_bdc2_aaamaindb d_tap_bdc2aaa d_tap_bdc2aaad_tap_bdc2aaa DEF_DATA_PROFILE
default_charset
Beginning extraction of data profile(s) DEF_DATA_PROFILE ...
The generated files are under the /usr/tmp/directory ; the cmd file is
/usr/tmp/DEF_DATA_PROFILE_PROF.cmd.
*** [email protected]:/oams/d_tap_bdc2/aaa/current ***
#
*** [email protected]:/oams/d_tap_bdc2/aaa/current ***
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
DEF_DATA_PROFILE_PROF.cmd The cmd file that contains all setting, command, and attribute lines
specific to a native import file. It is the main argument of the import
command.
Command line
If you run the aaa EXP_FUNC_SECU_PROF script without arguments, the following usage
details are displayed:
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/func_secu_prof.sh
func_secu_prof.sh: Invalid number of arguments
Usage: func_secu_prof.sh output_dir database username password object |> % for
wildcard> [charset|default_charset]
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of the function security profile
Example
The following example shows how to export all function security profiles containing
"PCK_PM_" in the code:
>$AAAHOME/aaa EXP_FUNC_SECU_PROF /usr/tmp v_gen_71_n2_aaamaindb v_gen_71_n2aaa
v_gen_71_n2aaav_gen_71_n2aaa PCK_PM_% default_charset
AAAHOME is /oams/v_gen_71_n2/aaa/current
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 183
Executing /oams/v_gen_71_n2/aaa/current/tools/export/func_secu_prof.sh /usr/tmp
v_gen_71_n2_aaamaindb v_gen_71_n2aaa v_gen_71_n2aaav_gen_71_n2aaa PCK_PM_%
default_charset
Beginning extraction of function security profile(s) PCK_PM_% ...
List of managed function security profiles:
PCK_PM_FUNC_SEC_PROF
The generated files are under the /usr/tmp/ directory ; the cmd file is
/usr/tmp/PCK_PM_ALL_FUNC_SECU_PROF.cmd.
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
PCK_PM_ALL_FUNC_SECU_PROF.cmd The cmd file that contains all setting, command, and attribute lines
specific to a native import file. It is the main argument of the
import command.
Command line
If you run the aaa EXP_FORMAT_PROF script without arguments, the following usage details
are displayed:
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/format_prof.sh
format_prof.sh: Invalid number of arguments
Usage: format_prof.sh output_dir database username password object|< % for wildcard>
[full | not_full]
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of format profile
- full is optional, not_full by default
and indicates that formats of the specified profile will be exported
Example
The following example shows how to export all format profiles containing "PCK_PM_" in the
code:
>$AAAHOME/aaa EXP_FORMAT_PROF /usr/tmp v_gen_71_n2_aaamaindb v_gen_71_n2aaa
v_gen_71_n2aaav_gen_71_n2aaa PCK_PM_% not_full default_charset
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/format_prof.sh /usr/tmp
v_gen_71_n2_aaamaindb v_gen_71_n2aaa v_gen_71_n2aaav_gen_71_n2aaa PCK_PM_% not_full
default_charset
Beginning extraction of format profile(s) PCK_PM_% ...
List of managed format profiles:
PCK_PM_FMT_PROF
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 184
The generated files are under the /usr/tmp/ directory ; the cmd file is
/usr/tmp/PCK_PM_ALL_FORMAT_PROF.cmd.
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
PCK_PM_ALL_FORMAT_PROF.cmd The cmd file that contains all setting, command, and attribute lines
specific to a native import file. It is the main argument of the import
command.
Command line
If you run the aaa EXP_SCREEN_PROF script without arguments, the following usage details
are displayed:
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/screen_prof.sh
screen_prof.sh: Invalid number of arguments
Usage: screen_prof.sh output_dir database username password object|< % for wildcard>
[full | not_full] [charset|default_charset]
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of screen profile
- full is optional, not_full by default
and indicates that screens of the specified profile will be exported
- charset is optional but if you specify it,
full not_full must be specified
Example
The following example shows how to export all screen profiles containing "T_AI_" in the
code:
>$AAAHOME/aaa EXP_SCREEN_PROF /usr/tmp v_gen_81_1_aaamaindb v_gen_81_1aaa
v_gen_81_1aaav_gen_81_1aaa T_AI_% not_full default_charset
AAAHOME is /oams/v_gen_81_1/aaa/current
Executing /oams/v_gen_81_1/aaa/current/tools/export/screen_prof.sh /usr/tmp
v_gen_81_1_aaamaindb v_gen_81_1aaa v_gen_81_1aaav_gen_81_1aaa T_AI_% not_full
default_charset
Beginning extraction of screen profile(s) T_AI_% ...
List of managed screen profiles :
T_AI_SCR_COMPO_OMGT
The generated files are under the /usr/tmp/ directory ; the cmd file is
/usr/tmp/T_AI_ALL_SCREEN_PROF.cmd.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 185
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
T_AI_ALL_SCREEN_PROF.cmd The cmd file that contains all setting, command, and attribute lines
specific to a native import file. It is the main argument of the import
command.
Command line
If you run the aaa EXP_SEARCH_CRITERIA script without arguments, the following usage
details are displayed:
# aaa EXP_SEARCH_CRITERIA
AAAHOME is /oams/d_tap_bdc2/aaa/current
Executing /oams/d_tap_bdc2/aaa/current/tools/export/search_criteria.sh
search_criteria.sh: Invalid number of arguments
Usage: search_criteria.sh output_dir database username password object|< % for
wildcard> [charset|default_charset]
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of the search criteria
*** [email protected]:/oams/d_tap_bdc2/aaa/current ***
Example
The following example shows how to export all search criteria containing "PCK_DS" in the
code:
*** [email protected]:/oams/d_tap_bdc2/aaa/current ***
# ./aaa EXP_SEARCH_CRITERIA /usr/tmp d_tap_bdc2_aaamaindb d_tap_bdc2aaa
d_tap_bdc2aaad_tap_bdc2aaa PCK_DS% default_charset
AAAHOME is /oams/d_tap_bdc2/aaa/current
Executing /oams/d_tap_bdc2/aaa/current/tools/export/search_criteria.sh /usr/tmp
d_tap_bdc2_aaamaindb d_tap_bdc2aaa d_tap_bdc2aaad_tap_bdc2aaa PCK_DS% default_charset
Beginning extraction of search criteria(s) PCK_DS% ...
List of managed search criteria:
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 186
PCK_DS_SC_CLIENT_ADM
PCK_DS_SC_DOM_ADMIN
PCK_DS_SC_DOM_REPORT
PCK_DS_SC_INSTR_ADMI
PCK_DS_SC_INSTR_PERF
PCK_DS_SC_INSTR_RKM
PCK_DS_SC_PTF_ADM
PCK_DS_SC_STRAT_ADMI
PCK_DS_SC_STRAT_PERF
02/05/14 12:09:52
/oams/d_tap_bdc2/aaa/current/tools/export/export_scrdef.sh laurs55b.oams.com
START with parameters -n search_defval -w /usr/tmp -d /usr/tmp -f
script_def1.6357110.tmp -o PCK[_]DS% -Ud_tap_bdc2aaa -Pd_tap_bdc2aaad_tap_bdc2aaa -M
d_tap_bdc2_aaamaindb -s ~
Password:
02/05/14 12:09:53
/oams/d_tap_bdc2/aaa/current/tools/export/export_scrdef.sh laurs55b.oams.com
END
02/05/14 12:09:53
/oams/d_tap_bdc2/aaa/current/tools/export/export_scrdef.sh laurs55b.oams.com
START with parameters -n search_filter -w /usr/tmp -d /usr/tmp -f
script_def2.6357110.tmp -o PCK[_]DS% -Ud_tap_bdc2aaa -Pd_tap_bdc2aaad_tap_bdc2aaa -M
d_tap_bdc2_aaamaindb -s ~
Password:
02/05/14 12:09:53
/oams/d_tap_bdc2/aaa/current/tools/export/export_scrdef.sh laurs55b.oams.com
END
The generated files are under the /usr/tmp/directory ; the cmd file is
/usr/tmp/PCK_DSALL_SC.cmd.
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
PCK_DSALL_SC.cmd The cmd file that contains all setting, command, and attribute lines specific to a
native import file. It is the main argument of the import command.
Command line
If you run the aaa EXP_SEARCH_PROF script without arguments, the following usage details
are displayed:
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/search_profile.sh
search_profile.sh: Invalid number of arguments
Usage: search_profile.sh [output_dir] [database] [username] [password] [object | %
for wildcard] {full | not_full} {charset|default_charset}
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 187
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of the search profile
- full is optional, not_full by default
and indicates that formats of the specified profile will be exported
- charset is optional but if you specify it,
full not_full must be specified
Example
The following example shows how to export all search profiles containing "T_AI_" in the
code:
>$AAAHOME/aaa EXP_SEARCH_PROF /usr/tmp v_gen_71_n2_aaamaindb v_gen_71_n2aaa
v_gen_71_n2aaav_gen_71_n2aaa T_AI_% not_full default_charset
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/search_profile.sh /usr/tmp
v_gen_71_n2_aaamaindb v_gen_71_n2aaa v_gen_71_n2aaav_gen_71_n 2aaa T_AI_% not_full
default_charset
Beginning extraction of search profile(s) T_AI_% ...
List of managed search profile:
T_AI_CMC_CI
The generated files are under the /usr/tmp/directory ; the cmd file is
/usr/tmp/T_AI_ALL_SEARCH_PROF.cmd.
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
T_AI_ALL_SEARCH_PROF.cmd The cmd file that contains all setting, command, and attribute lines
specific to a native import file. It is the main argument of the import
command.
Command line
If you run the aaa EXP_REPORT_PROF script without arguments, the following usage details
are displayed:
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/report_prof.sh
report_prof.sh: Invalid number of arguments
Usage: report_prof.sh [output_dir] [database] [username] [password] [object | % for
wildcard]
where : - output_dir is the complete path of the directory where the
generated files are created,
e.g: /usr/tmp
- object is the code of the report profile
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 188
Example
The following example shows how to export all report profiles containing "PROF" in the code:
>$AAAHOME/aaa exp_report_prof /usr/tmp v_gen_71_n2_aaamaindb v_gen_71_n2aaa
v_gen_71_n2aaav_gen_71_n2aaa %PROF%
AAAHOME is /oams/v_gen_71_n2/aaa/current
Executing /oams/v_gen_71_n2/aaa/current/tools/export/report_prof.sh /usr/tmp
v_gen_71_n2_aaamaindb v_gen_71_n2aaa v_gen_71_n2aaav_gen_71_n2aaa %PROF%
Beginning extraction of report profile(s) %PROF% ...
List of managed report profiles:
DEF_REPORT_PROF
T_DUMMY_RPT_PROF_01
T_DUMMY_RPT_PROF_02
The generated files are under the /usr/tmp directory ; the cmd file is
/usr/tmp/ALLPROF%_PROF.cmd.
Generated file
The generated file is saved in the specified output directory. The generated file is:
File Description
ALLPROF%.cmd The cmd file that contains all setting, command, and attribute lines specific to a native
import file. It is the main argument of the import command.
20.1.19.1 Example
The following example shows how to export a business_entity for which the code starts with
'TE':
>$AAAHOME/ aaa expobj -e business_entity -o TE% -f business_entity.imp -d /tmp -U
d_mst_baaaa -P d_mst_baaaa2104 -M d_mst_ba_aaamaindb
…
>>> Importation file is: /tmp/business_entity.imp
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 189
21 User-defined fields
21.1.1 Syntax
To create a new user-defined field, use the following syntax:
modif_ud_field.sh aaa_owner aaa_passwd sa_passwd environ_name table_name add
ud_field_name "gui_name" datatype_name physical|non_physical
"default_value"|no_default_value "parent_entity"|no_parent_entity
"parent_attrib"|no_parent_attrib null|not_null fk_table_name|no_fk_table_name
charset_name|default_charset search|no_search quick_search|no_quick_search
compile|no_compile|compile_only max_db_length default_display_length
Where:
<aaa_owner> is the Triple'A Plus Core Application owner (can be found in the
$AAAHOME/install/aaa_install.cfg file).
<owner_passwd> is the Triple'A Plus Core Application owner password.
<sa_passwd> is the Sybase System Administrator password.
<environ_name> is the environment name in the aaa_install.cfg file.
<table_name> is the table where the user-defined field will be added.
<add> is optional. Adds a user-defined field.
<ud_field_name> is the name of the UD field in the database. The name must begin with the
string ud_. Also, it must end with the recommended extension (see
datatype_name below) for script language shortcuts to apply, especially
with the _id and _dict_id extensions.
<“gui_name”> is the name of UD field for GUI (for 'add' only). Text label in English of the
user-defined field. The name must be enclosed in double quotes (" ") if it is
more than one word.
<datatype_name> is the datatype name of UD field (for 'add' only). The possible datatypes
are listed in the table below.
<physical> or indicates whether the UD field exists physically in the database (for 'add'
<non_physical> only) or not
<"default_value"> or is the default value for the field or not (for 'add' only). default_value
<no_default_value> must be a script expression. You must enclose it in double quotes (" ") if it
includes more than one word.
<"parent_entity"> or is the parent entity for the UD field (for 'add' only).
<no_parent_entity>
<"parent_attrib"> or is the parent attribute for the UD field (for 'add' only). Be careful to enter
<no_parent_attrib> parent_attrib and not parent_attribute, otherwise the
modif_ud_field.sh command will not work.
<null> or <not_null> indicates whether the field can have a null value (in other words, whether
it is mandatory (not_null) or not (null)). Note that for the enum_t and
flag_t datatypes, the user-defined field must be mandatory for all
attributes other than the logical fields (in other words, you must use the
not_null argument) (for 'add' only).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 190
<fk_table_name> or defines whether the user-defined field is a foreign key to another table or
<no_fk_table_name> not. Check the data model for the exact syntax of the table name (for 'add'
only).
<charset_name> is the name of charset (e.g., iso_1, default_charset = default charset of
platform).
<quick_search> or defines Quick Search or not (for 'add' only).
<no_quick_search>
<compile>, <no_compile> determines whether to compile or not the procedures and views (for 'add'
or <compile_only> only), or to compile only (for existing UD fields only). If you add several
user-defined fields to a table, you can use the compile option for the last
one and no_compile for the previous fields. This means that the
procedures linked to this table will only be recompiled once at the end.
max_db_length is the maximum length of the code_t or name_t field stored in the
database. If 0 is entered, the default of 20 is applied. This is used only for
code_t and name_t types; for other types, null is applied.
default_display_length is the default length of the code_t or name_t field displayed in the GUI. If 0
is entered, the default of 20 is applied. This is used only for code_t and
name_t types; for other types, null is applied.
ud_field_name
The possible tables for option table_name are:
Datatypes
The possible datatypes are:
code_t varchar(20) _c
date_t Datetime _d
datetime_t Datetime _d
enum_t Tinyint _e
flag_t tinyint _f
info_t varchar(80) _c
int_t int _i
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 191
Datatype name Native ASE datatype Recommended extension
longamount_t numeric(21,7) _m
longname_t varchar(30) _c
name_t varchar(20) _c
note_t varchar(255) _c
number_t numeric(21,9) _n
percent_t numeric(9,5) _p
phone_t varchar(21) _c
shortinfo_t varchar(40) _c
sysname_t varchar(30) _c
(To check directly in the meta-dictionary table you can use the following SELECT statement:
select * from dict_entity where cust_auth_f = 1
in the main Triple'A Plus Core database. This is the check that is made in
modif_ud_field.sh command to allow the creation of user-defined fields.)
When you add a user-defined field with a link to a foreign table, the datatype must be
id_t.
The permitted values for flag_t datatypes, 0 for No and 1 for Yes, must be defined in
the file $AAAHOME/ddl/src/dict_perm_value_dat.usr.sql.
The permitted values for the enum_t and flag_t datatypes must be defined in the file
$AAAHOME/ddl/src/dict_perm_value_dat.usr.sql.
For all the datatypes, you must define attribute details and labels in the following files:
$AAAHOME/ddl/src/dict_attribute_dat.usr.sql
$AAAHOME/ddl/src/dict_label_dat.en_usr.sql
$AAAHOME/ddl/src/dict_label_dat.fr_usr.sql
etc.
For datetime_t: You can create a long date field. Instead of the datetime_t type you
must enter the datetime_full parameter. For DATETIME: datetime_t => display only the
date in screen; datetime_full => display of the date and the hour.
fk_table_name
This is mandatory for all user-defined fields of datatype id_t. You can define the user-
defined field as a foreign key to one of the following tables:
third_party type
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 192
Default_value
The modif_ud_field.sh script only sets the existing records with the default value set
to the new user-defined field but not the Sybase default value that can be applied to
new records. With default values, the policy is to use Triple'A Plus Core default values
that you can edit from the GUI.
When adding a default value for a new user-defined field that is a foreign key, you need
to provide the business key (the code in most cases) of the foreign entity as the
default value. For example, if you add a new field that is a foreign key on table
"dict_language", the default_value can be "en" (which is the code for English
language).
There is an exception however for the entity "type"; the script cannot handle default
values on user-defined fields that are foreign keys on "type". You must not specify a
default value when adding the user-defined field. Instead, manually run a Sybase SQL
command after the user-defined field has been created. For example, the following is an
SQL command that updates all values for a user-defined field:
update ud_instrument set ud_my_field = "my value" where ud_my_field is null
21.1.2 Notes
All users must be logged out and all servers stopped before you execute the
modif_ud_field.sh command. That is, before a user-defined field is created, all
Triple'A Plus Core users must disconnect from the databases used by Triple'A Plus Core,
which means all Financial, Fusion, Dispatch, and Report Servers must be shut down, all
GUI processes must be stopped, and no other connection to the Triple'A Plus Core
databases (such as ISQL) is allowed. The Database Server, however, must be running.
A maximum of 16 user-defined fields in the whole system can have a foreign key to the
same table. For example, you can create a maximum of 16 user-defined fields with the
type table as the foreign table.
Regarding the maximum number of user-defined fields, there are several limitations
set by Sybase and by Triple'A Plus Core. For more information, see section User-defined
field restrictions.
It is highly recommended that you make a database backup before adding a new
user-defined field so you can return to the previous version if you see that the user-
defined field does not fit your requirements. It is also mandatory to restore a database
backup when the modif_ud_field.sh command fails for any reason (e.g. kill of
process, power and network disruptions, script interruption).
User-defined fields in the Domain are sent to the financial server. This is useful for
reports (Triple'A Plus Reporting) where the information can be used directly in the
report itself. It is also useful for standard Triple'A Plus Core functions since the
information can be retrieved using the DOMAIN() keyword.
Error message after adding a new user-defined field:
Difference between received column number ( ) and Dyn. Struct columns ( )
for dyn struct xxxx
appears when a user-defined field is created in a table and the procedures linked to the
table have not been recompiled. One of the usual causes is that the environ_name
parameter in the modif_ud_field.sh command is incorrect.
Solution 1: Restart the modif_ud_field.sh procedure using the correct
environ_name and the compile_only option.
Solution 2: Recompile the procedures linked to this table using the install_ddl.sh
procedure located in $AAAHOME/ddl/bin/. install_ddl.sh takes the following
parameters:
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 193
$AAAHOME/ddl/bin/install_ddl.sh aaa_owner aaa_passwd sa_passwd p table_name
environ_name
Make sure to execute the procedure exec check_meta_dict on the main database
after the modif_ud_field.sh execution is over. You should have no messages and a
return status = 0. This will alert you when there are missing permitted values on an
enumeration typed user-defined field, or when there are missing labels, for example. In
case of such errors, the Design Studio meta-dictionary recompilation will fail.
It is strongly recommended to end the field name with the correct extension (refer to
the tables in section Datatypes). These extensions are used by the Reporting
framework and by the Script Language. For example, an enumeration field should be
called "ud_enum_e" and not "ud_enum".
21.2.1 Prerequisites
You must ensure the following before you run drop_ud_field.sh:
A full backup of the database (main).
Audit turned off.
No user logged in to the SQL server. Also stop the financial servers.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 194
There is enough space in the main database (1.4 times the size of the table, 2.4 times if
the table is the operation table).
Check the usage of the transaction log (must be empty, if possible, and large enough).
21.2.2 Usage
The drop_ud_field.sh script uses the following syntax:
drop_ud_field.sh aaa_owner aaa_passwd sa_passwd aaahome environ_name ud_field_name
table_name charset [compil_mode]
Where
<aaa_owner> is the Triple'A Plus Core Application Owner
<aaa_passwd> is the Triple'A Plus Core Application Owner Password
<sa_passwd> is the Sybase System Administrator Password
<aaahome> is the home directory of Triple'A Plus Core Application
<environ_name> is the environment name of Triple'A Plus Core in the aaa_install.cfg file
<ud_field_name> is the user-defined field to be deleted
<table_name> is the table to be deleted
<Charset> is the charset_name = name of charset e.g. iso_1, default_charset = default
charset of target platform
<compil_mode> is the compilation mode. This parameter is optional and by default, it is set to
"compile", which will recompile all views, procedures, and triggers. Use
"no_compile" to drop several user-defined fields faster, but be careful to drop the
last user-defined field using the "compile" option.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 195
The maximum number of columns retrieved by a view is 1024. As an entity is, from the
standpoint of Triple'A Plus, the conjunction of two tables, for example, operation and
ud_operation, the 1024-field limitation applies to the view.
Maximum length of one row will depend on Sybase page size. You can find this value
via SQL command:
select @@maxpagesize
The minimum value required is 4K for Release 13 and higher versions. The only way to
bypass this limit is to change the logical page size in the dataserver configuration. This
change is applied system wide and affects all databases and tables installed on the
dataserver. The possible page size values are 4Ko (4096 bytes), 8Ko (8192 bytes), or
16Ko (16384 bytes). The page size modification forces you to migrate all data on the
client site. For more information, refer to the Triple’A Plus Database nkMigration and
Cloning Technical Guide.
Say that all the UDFs between 303 and 501 have been dropped in the operation table. The
next UDF is assigned the number 1004503.
Check the maximum identification number on your environment by running the above query.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 196
22 User-defined entities (UDEs)
A Triple'A Plus Core user-defined entity (UDE) provides an extension of the Triple'A Plus Core
standard data model with a new entity. The objective is to have Triple'A Plus treat these
custom entities like standard ones. This includes:
Administration in the GUI.
Data importation through the Triple'A Plus Core interface processing.
Data exportation through the procedure exec_sel_export_data_by_cd.
Back-end services accessible from the WUI.
Supporting default values and input controls.
Accessible by the script keywords GET_OBJECT, AUTOCREATE, GET_GEST_OBJECT and
GET_OBJECT_ARRAY.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 197
2. Move the file into the directory $AAAHOME/ddl/md/ds. The import file in this directory
must contain all of the UDEs. If an entity is missing, it will not be visible in the
application. It will, however, still be present in the database.
Note: It is recommended that you put all user files in the directory
$AAAHOME/ddl/md/ds only. All of these files should contain the pattern ".usr.".
3. The target segment of the physical table and the indexes are defined by Triple’A Plus
Core default values, but it is possible to create an import file to override these values.
For example, to modify the segment of the table udt_mytable:
REM ##############################################
REM This file contains exception regarding default values of
xd_entity.segment_dict_id and xd_entity.idx_segment_dict_id
REM The physical table and index will be placed on this segment of the corresponding
database
REM ##############################################
SET SEPARATOR ;
SET QUOTE NONE
SET DATAFORMAT DELIMITED
SET DATEFORMAT DD-MM-YYYY
SET AUTOMATIC xd_entity OFF
SET AUTOMATIC xd_attribute OFF
4. Do the following:
a) Before you run the script, stop all GUI Clients and all Open Servers. No connections
to the Triple'A Plus Core databases are permitted.
b) Run the script $AAAHOME/ddl/bin/install_ddl.sh to update your database.
Ensure that the Triple'A Plus Core owner runs the script.
The command is:
install_ddl.sh <aaa_owner> <aaa_pwd> <sa_pwd> tb ds <environment> default_charset
Where:
5. Restart the Triple'A Plus Core GUI Clients and Open Servers.
Note: The segments that we can define in the import file are described in the installation file
$AAAHOME/install/aaa_install.cfg.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 198
The entity sql name must start with "udt_" or "ude_".
To use the script keyword GET_OBJECT, it is mandatory to have the primary key ("id" is
mandatory) on the first position and the business key ("code" is also mandatory) on the
second position of the entity.
The following attributes are reserved for Triple'A Plus Core functionalities:
id: Identity of the primary key attribute.
code: If exists, must be the only attribute of the business key.
denom: Contains the default denomination.
denomination: Denomination by language.
name: Contains the name.
script_control: Input control management; logical attribute automatically
generated by the generator.
data_secu_prof_id: Security behaviour.
data_secu_prof2_id: Security behaviour.
delete_right_f: Security behaviour.
auth_delete_f: Security behaviour.
update_right_f: Security behaviour.
auth_update_f: Security behaviour.
active_f: Deactivation of the record (not yet supported).
codification_id: Synonym behaviour (not yet supported).
synonym: Synonym behaviour (not yet supported).
autocreated_f: Auto creates management (not yet supported).
type_id: Type references (not yet supported).
subtype_id: Sub-type references (not yet supported).
notepad: Notepad management.
SET SEPARATOR ;
SET QUOTE NONE
SET DATAFORMAT DELIMITED
SET DATEFORMAT DD-MM-YYYY
SET AUTOMATIC xd_entity OFF
SET AUTOMATIC xd_attribute OFF
REM ##############################################
REM ##### Add security attributes
REM ##############################################
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 199
CMD INSUPD xd_entity
ATT sqlname_c security_level_e
DAT ude_test_table;1
REM ##############################################
REM ##### Add security attributes
REM ##############################################
CMD INSUPD xd_entity
ATT sqlname_c security_level_e
DAT <entity sqlname>;1
Note: The attribute disp_rank_n of the entity xd_attribute defines the order in the database
and in the meta-dictionary.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 200
The foreign key defined by the couple entity_dict_id and object_id are not supported.
The primary key must be the only attribute that has the sql name "id".
It is not possible to create a user- defined logical attribute (represented by a button in
the GUI) pointing to a user-defined entity (UDE). It is, however, possible to create a
user-defined foreign key on a UDE.
SET SEPARATOR ;
SET QUOTE NONE
SET DATAFORMAT DELIMITED
SET DATEFORMAT DD-MM-YYYY
SET AUTOMATIC xd_entity OFF
SET AUTOMATIC xd_attribute OFF
REM ##############################################
REM ##### MAIN ENTITY/ATTRIBUTES DROPPING
REM ##############################################
and the data will remain in the extended meta-model (xd_*) with a status set to "physically
deleted" (xd_status_e=5).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 201
23 Questionnaire
Questionnaire provides an extension of the Triple'A Plus Core standard data model with new
entities. The generation of these new entities are driven by the definition done in the entitie
questionnaire definition and related sub-entities.
The name of the generated questionnaire entities are the code of the definition prefixed by
"qu_". They are the container of the responses of a specific questionnaire and are associated
with the entity "questionnaire_histo" containing all responses of all questionnaires. For more
details about questionnaires, refer to the Triple’A Plus Core User Guide.
Only questionnaires with status below "Validated" (e.g., “In progress”; “To validate”) will be
generated.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 202
24 Stored procedures
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 203
Entity Attribute Range
manager wui_profile_e 1 to 255
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 204
exec ins_upd_dict_perm_value_usr "<entity>","<attribute>",enumerated
value,"name",rank
go
Where:
d) Restart the Triple'A Plus Core GUI Clients and Open Servers.
The above script only drops one permitted value at a time. It is also possible to drop all
permitted values for a given attribute by using the following command:
exec del_dict_perm_value_by_attr "<entity>","<attribute>"
go
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 205
The Triple'A Plus Core owner must run the script.
The command is:
install_ddl.sh <aaa_owner> <aaa_pwd> <sa_pwd> usr dict_perm_value <environment>
default_charset
Where
4. Restart the Triple'A Plus Core GUI Clients and Open Servers.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 206
To create a new sub function, you must edit the file dict_function_dat.usr.sql located in
the $AAAHOME/ddl/src directory. As Triple'A Plus Core Administrator, add the following line
to the appropriate section of the file:
exec ins_upd_dict_function_usr id , "sub function name" , "sub function coded name" ,
"parent function name" , "related help file" , "icon name"
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 207
Generating new sub-functions
After you have modified the dict_function_dat.usr.sql file as Administrator, you must
generate the new function. To do this, run the install_ddl.sh script located in the
$AAAHOME/ddl/bin directory.
The arguments are:
database owner
database owner’s password
database Administrator’s password
metadictionary table to modify
environment name
default charset
Example:
install_ddl.sh aaa aaaaaa sybase usr dict_function demo default_charset
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 208
Where proc_name (enclosed in double quotes) references the sub-function you want to
delete.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 209
25 Running functions from the GUI
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 210
26 Running functions from batch script
You can use the stored procedures described below to call the financial server. The
procedures let you:
Run fusions
Build list contents
Compute instrument chronological data
Copy operations
Modify the reference currency
Execute financial functions
dim_port_sqlname_c sysname_t
port_object_code code_t
begin_d datetime_t
fusion_scope_f flag_t
synchronous_f flag_t
Example:
start_manual_fusion_by_cd NULL,NULL,NULL,0
runs a fusion on All Portfolios at the current date in the New mode in asynchronous mode.
This procedure executes the start_fusion RPC procedure to inform the financial server that a
fusion process must be started. It checks that the AAA_MIGRATION_FLAG system parameter is
not enabled.
The argument synchronous_f is optional and does not need to be set. The default value is 0
(asynchronous treatment). Synchronous treatment is only permitted for the list dimension.
entity_sqlname_c sysname_t
list_cd code_t
all_list_f flag_t
force_f flag_t
del_f flag_t
hist_f flag_t
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 211
date_d datetime_t=null
Example:
build_list_compo "portfolio",NULL,1,0,0,0,NULL
executes the RPC procedure build_list_compo. The last argument, the server name, is
optional. If building new lists to include new codifications, you must restart the financial
server.
entity_sqlname_c sysname_t,
object_code code_t,
nature_e enum_t,
calc_d datetime_t,
force_f flag_t,
delete_f flag_t,
Example:
compute_instr_chrono "instrument" 224181
executes the compute_instr_chrono RPC procedure. The last argument, the server name, is
optional.
from_portfolio_cd code_t,
to_portfolio_cd code_t,
from_date datetime_t=null,
pps_currency_cd code_t=null,
pps_type_cd code_t=null,
pps_cons_port_cd code_t=null,
srv_name sysname_t=null
Example:
copy_operation PTF_1234 PTF_1234_001.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 212
copies all operations from portfolio PTF_1234 to portfolio PTF_1234_001. The to_portfolio_cd
must already exist in the Triple'A Plus Core database.
entity_sqlname_c sysname_t,
object_code code_t,
port_modif_e enum_t,
old_currency_code code_t,
new_currency_code code_t,
pps_currency_code code_t,
pps_type_code code_t,
pps_cons_port_code code_t,
old_sys_currency_code code_t,
new_sys_currency_code code_t,
srv_name sysname_t=null
Example:
currency_modif "instrument","238164",0,"NLG","EUR",NULL,NULL,NULL,NULL,NULL
changes the reference currency of the instrument 238164 from NLG to EUR.
currency_code code_t,
dim_port_sqlname_c sysname_t,
dim_instr_sqlname_c sysname_t,
dim_strat_sqlname_c sysname_t,
user_code code_t,
language_code code_t,
function_name sysname_t,
scenario_code code_t,
quote_val_rule_code code_t,
exch_val_rule_code code_t,
port_object_code code_t,
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 213
instr_object_code code_t,
strat_object_code code_t,
report_code code_t,
acc_period_id id_t,
function_result_code code_t,
grid_code code_t,
acc_plan_code code_t,
book_portfolio_code code_t,
cons_portfolio_code code_t,
port_pos_type_code code_t,
market_segment_id id_t,
cash_currency_code code_t,
buy_order_rule_code code_t,
sell_order_rule_code code_t,
fusion_date_rule_e enum_t,
fusion_rule_e enum_t,
min_status_e enum_t,
max_status_e enum_t,
fund_split_rule_e enum_t,
zero_qty_f flag_t,
risk_exp_f flag_t,
option_risk_rule_e enum_t,
underly_f flag_t,
port_cons_rule_e enum_t,
status_fus_f flag_t,
close_pos_f flag_t,
pos_logical_e enum_t,
from_date_comp_rule_c info_t,
till_date_comp_rule_c info_t,
strat_date_comp_rule_c info_t,
freq_date_comp_rule_c info_t,
freq1_n tinyint_t,
freq1_unit_e enum_t,
freq2_n tinyint_t,
freq2_unit_e enum_t,
def_curr_f flag_t,
def_lang_f flag_t,
default_f flag_t,
port_quote_retr_f flag_t,
def_fusion_date_rule_f flag_t,
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 214
debt_f flag_t,
load_pos_f flag_t,
fus_sub_nat_f flag_t,
strat_link_nat_e enum_t,
force_link_f flag_t,
checked_portfolio_f flag_t,
min_link_priority_n int_t,
max_link_priority_n int_t,
conv_factor_n number_t,
pos_val_rule_e enum_t,
event_oper_status_e enum_t,
event_gen_nat_e enum_t,
event_flow_nat_e enum_t,
event_flow_sub_nat_e enum_t,
event_flow_mask mask_t,
from_acc_number code_t,
till_acc_number code_t,
closing_nat_e enum_t,
strat_detail_nat_e enum_t,
comp_data_e enum_t,
disp_result_f flag_t,
ref_date_comp_rule_c info_t,
valo_seq_no_n tinyint_t,
list_hist_e enum_t,
event_pl_rule_e enum_t,
ret_det_level_e enum_t,
subgrid_f flag_t,
pps_load_e enum_t,
pps_type_f flag_t,
pps_cons_pf_f flag_t,
pps_currency_f flag_t,
load_hierarchy_f enum_t,
order_nat_e enum_t,
gen_global_order_e enum_t,
order_alloc_nat_e enum_t,
obj_weight_cont_p percent_t,
obj_weight_cont_marg_p percent_t,
qty_alloc_nat_e enum_t,
cash_alloc_nat_e enum_t,
cash_obj_weight_p percent_t,
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 215
check_strat_e enum_t,
order_status_e enum_t,
event_date_rule_e enum_t,
op_search_c note_t,
extop_search_c note_t,
hist_list_f flag_t,
min_order_amount_m amount_t,
min_order_amnt_curr code_t
mkt_sgt_rebalancing_f flag_t,
instr_list_definition_t note_t,
port_list_definition_t note_t,
load_global_order_e enum_t,
load_non_discret_f flag_t,
check_trading_f flag_t,
execution_details_f flag_t,
rounding_method_e enum_t,
dim_entity sysname_t,
bench1_entity sysname_t,
bench1_object code_t,
bench2_entity sysname_t,
bench2_object code_t,
bench3_entity sysname_t,
bench3_object code_t,
risk_free_instr code_t,
return_analysis_e enum_t,
perf_attrib_method_e enum_t,
perf_attrib_freq_e enum_t,
calc_from_d datetime_t,
calc_till_d datetime_t,
calc_strat_d datetime_t,
calc_freq_d datetime_t,
calc_ref_d datetime_t,
calc_from code_t,
calc_till code_t,
calc_strat code_t,
calc_freq code_t,
calc_ref code_t,
format code_t,
output_type_e enum_t,
report_server code_t,
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 216
func_result_status_e enum_t,
comp_level_e enum_t,
buy_port_classif code_t,
sell_port_classif code_t,
derivation_e enum_t,
dynamic_weight_f flag_t,
constr_nature_e enum_t,
ext_pos_list code_t,
data_profile_id id_t,
psp_position_data code_t,
pl_method_e enum_t,
auth_online_periods_n int_t,
unmatched_exec_search_c note_t,
purge_order_method_e enum_t,
file_name_c note_t,
cash_flow_mgt_e enum_t,
dummy_min_status_e enum_t,
dummy_max_status_e enum_t,
func_res_list_def_t note_t,
dim_func_result_dict_id dict_t
case_mgmt_search_c note_t,
generate_case_f flag_t
Example:
To run Check Strategy in batch mode, use the following command:
exec_fin_analysis_all_domain "CHF","portfolio",NULL,"strategy","MFR","en","Check
Strategy",NULL,NULL,NULL,"MFR_JOCK",NULL,"MFR_JOCK_alloc",NULL,NULL,NULL,NULL,NULL,0,
0,4,4,0,1,0,0,0,2,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1,0,NULL,NULL,0,0,NULL,NULL,NULL,2,
1,"mfr_test",1,"24 May 1999",NULL,0,"24 May 1999","24 May 1999","24 May
1999","MFR_CHECK_STRAT_ELEM",0,NULL,0,0,0,1,1,1,0
Remark:
Previously used stored procedure exec_fin_analysis_by_domain is deprecated and should no
longer be used for batch processing. While this stored procedure is still part of the product
catalog, only the new one exec_fin_analysis_all_domain is supported.
Also, this procedure must only be used for batch reporting and not for on-line GUI or WUI
replacement. Also, when a financial function is run in batch mode, there is only minimal
checking of the arguments.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 217
Only the positions/balance positions whose Accounting Status is equal to or greater than the
value of the ACCOUNTING_STATUS system parameter are archived. The others are untouched.
The balance positions with no corresponding opened position in the same portfolio or PPS
with the same instrument at the archiving date are deleted. This does not apply to the
balance positions linked to a portfolio or PPS if there are no associated instruments.
Archiving can also be used in batch mode with the archive_by_cd Remote Procedure Call
(RPC). The parameters are the following:
arc_ent_cd: The name of the archived entity, i.e. "operation"
ent_dict_cd: The containing entity i.e. "portfolio"
dim_ent_cd: The dimension, i.e. "portfolio" or "list"
object_cd: The object code, i.e. ‘MY_PTF’
date_t: The date in Sybase format, i.e. "03/22/2000"
nature_cd: The nature code, i.e. "Purge Only"
all_flag_t: Flag specifying if the archive is created for all operations (1) or only those up
to a specific date (0)
file_name_note_t: The file name where the archive is stored, i.e. "MY_PTF971231.arc"
The parameters that are not used must be assigned the value NULL.
The Remote Procedure Call (RPC) must be called from the Financial Server and not from the
SQL Server. For example, connect to the Financial Server and execute the following
command:
archive_by_cd "operation", "portfolio", "portfolio", "MY_PTF", "03/22/2000",
"Purge Only", 0, NULL
This command archives the MY_PTF portfolio with the Purge Only nature up to the specified
date.
26.8 Purging
If you want to execute the Purge function by batch, use the stored procedure
exec_fin_analysis_all_domain. This procedure is available on the SYBASE server. It is
stored in the main database of Triple'A Plus Core. This procedure accepts any domain
attributes as parameters. None of the attributes is mandatory.
The following is an example of this stored procedure called from the UNIX command line:
$SYBASE/bin/isql -U$APPL_OWNER -P$APPL_OWNER_PASSWORD -S$DSQUERY <<END1
use $MAIN_DB
go
set dateformat dmy
go
exec_fin_analysis_all_domain
@function = 'purge_order',
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 218
@dim_port = 'portfolio',
@port_object = 'OCE1',
@currency = 'CHF',
@calc_from_d = NULL,
@calc_till_d = NULL,
@format = 'PCK_PM_POR_LS_INPUT',
@min_status_e = 0,
@max_status_e = 3,
@load_global_order_e = 2,
@purge_order_method_e=0,
@file_name_c="/users/product/oce/test"
go
END1
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 219
27 Performance and tuning recommendations
27.3 Administration
This section presents some space and time-saving tips.
27.3.1 General
Method Description
Search Avoid performing searches on attributes that are not indexed, e.g. Denomination.
This type of search can take a long time if you are dealing with very large tables.
If necessary, add an index to accelerate the process.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 220
Method Description
Deletion Avoid performing deletes on tables that are potentially referenced by the foreign
keys of other tables, especially large tables like instrument_price,
instrument, operation, position and balance_pos. The worst
candidates for deletes are the type and third_party tables. Deletes performed
on these tables take a very long time and lock the tables.
27.3.2 Instrument
Instrument Description
Valuation rule Use the correct valuation rule for instruments without prices. Set the val_rule_e
attribute to either Price=1 or Price=0. This prevents the Financial Server from
searching the Database Server for non- existent prices.
Accrued interest Avoid the unnecessary computation of accrued interests for bonds and cash
accounts with no accrued interest. Set the accr_inter_f to 0.
Interest rate Store the interest rate condition and the income payment of simple bonds in the
condition and instrument itself instead of their specific tables.
income payment
Term event Store term events of standard derivatives directly in the instruments instead of
the term event table.
Generic instrument Use generic instruments for term deposits and currency forwards. This saves disk
space.
27.3.4 List
List Description
Constrained lists Use constraint criteria on attributes that are indexed.
Validity period Set a positive validity period for Constrained lists. Otherwise the list is rebuilt
each time it is used.
Build list Execute build list composition in a batch process, overnight if possible.
composition
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 221
27.3.5 Batch interface client
Batch Interface Description
Client
Block mode Use the block mode (-b nnn). The block mode is much faster.
Block size Optimise block size to suit the table. Unfortunately, no general recommendation
is possible because each site imports different attributes for the same table.
Parallel imports Avoid parallel imports to the same table. There is no gain.
Migration flag Set the AAA_MIGRATION_FLAG application parameter to 1 when you initially load
the database. It does not update the last modification table.
CMD INSUPD Avoid the INSUPD command because it automatically pre-checks the existence of
objects in the database.
Default values Provide a value for each field in the import file instead of relying on complex
definitions of the default value.
27.3.6 Fusion
Fusion Description
Fusion Do not execute a fusion manually when you import operations. Note that the
automatic fusion is never triggered by the import of operations.
Concurrent fusion Optimise the number of concurrent fusions. See the application parameter in the
chapter.
Fusion size Optimise the number of operations included in a single fusion process. See the
application parameter in the chapter. Use different sizes for the initial fusion
(when you initialise the database) and the day-to-day fusions.
New versus All Use the New fusion instead of the All fusion parameter.
27.3.7 Valuation
Valuation Description
Validity period Do not set too big a validity period for instrument prices, exchange rates,
instrument chronos and currency chronos. For instance, if exchange rates are
entered every day, a validity period of 5 days is enough. The validity period
parameter defines how many daily values are loaded. This makes it possible to
find the most recent value for a given date.
Accrued interest Store accrued interest in (and retrieve it from) the instrument_chrono table.
See the ACCR_INTEREST_CHRONO application parameter.
First call versus The results of some requests are stored in the memory used by the process. On
second call the second call the data is directly retrieved from this cache memory instead of
from the Database Server.
Criteria Carefully choose the computation criteria at the portfolio level (Frequency, Level
of Detail) in accordance with the type of portfolio. Remember that disk space is
required for this data.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 222
27.3.9 Script language
Script Language Description
Data usage Use data from the current hierarchy, e.g. extended_pos, pos_val.
Very large tables Avoid accessing huge tables that are not present in the hierarchy and/or are not
optimised, e.g. operation, instrument_price.
Statistical keywords Use the INSTR_CHRONO keyword instead of direct computation which is resource
consuming.
Use the build instrument chrono batch process to pre-compute data.
27.3.11 Procedure
The Triple'A Plus Core GUI client or the import process first checks if the feature is enabled
or not (see Enabling local load further on). The file name of the local copy of the
metadictionary is the language code plus the extension MD (for example, the English file is
called en.MD).
If the file exists and can be read (there is no update in progress), it is loaded into memory.
The file is tested to see if it is valid as follows:
A checksum is performed to make sure that the file has not been modified
The name of the main database is checked (to avoid using the wrong environment)
No modifications have been made since the last update of the metadictionary (this
check queries table_modif_stat)
If the file is not valid, the metadictionary is loaded from the database as usual and the file is
updated. In this case a message is displayed to the user.
If the file is valid, the last step is to load the function security profile. The metadictionary is
then completely loaded.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 223
Make sure you enter the full path to the local metadictionary file (C:\temp is used as an
example here).
The AAAMDPATH environment variable defines the necessary parameters. You must set this
value to a character string composed as follows: Yes or No, comma, full path to the
metadictionary files. The beginning of the string indicates if the metadictionary must be
loaded from the local file or not (Yes or No). If this variable is not defined, the feature is
disabled.
For example, to store the metadictionary files on a local disk and enable local load, set the
variable as follows:
Yes,C:\tmp
To disable local load, just replace Yes with No:
No,C:\tmp
Note that you can also use the Triple'A Plus Core client starter program to enable local load,
assuming the variable is correctly set in the Windows NT Registry. You can check that the
variable is present in the registry and is correctly set at the following key (regedt32.exe is
the most convenient utility for this):
HKEY_LOCAL_MACHINE/SOFTWARE/Unicible/Starter
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 224
Edit the QA-20 Value:
27.3.13 Recommendations
It is recommended that you analyse your system to determine where you should store the
files. Where you store the files depends on the site configuration. The general rule is that the
file must be shared by a maximum number of users (when an update is needed, only one
user generates the update but the other users can access it). The file must be loaded over a
fast network. Avoid transfers with a slow line.
Use a separate path for each environment (or different main database).
You should also use a different path if different processor families (Intel, Alpha) are used on
your system. The file is a kind of memory dump. Each processor family has its own method
of storing information in memory. An alpha processor computer cannot use a file created on
an Intel machine.
Triple'A Plus Core users must have authorisation to create files in the defined directory.
For help in finding configuration errors, check the local log files.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 225
28 TSL financial function domain key encoding
To allow for more efficient use of the caching mechanism, the domain's field usage is tracked
by the financial server. Each time a request is made by the Triple’A Service Layer (TSL), all
used fields are checked to determine whether the fields are already defined as part of the
key or not. This information, which is kept in table dict_function_attribute, is stored
separately for the financial computation and for each format.
The information can be accessed from menu option Administration > Security > Attribute used
by function, where you can find which of the domain's fields must be used to generate the
key encoding.
For example, the attribute key_encoding_e from table dict_function_attribute will have the
following values:
Yes: The field must be used during key generation.
No: The field must be ignored during key encoding generation.
Undefined: The field has been identified as used by the financial server and action must
be taken to define whether it must be used during key encoding or not. (It is not
possible to import dict_function_attribute with this status).
For more information on how to set up and enable the caching mechanism on TSL, refer to
the section about TSL caches in the Triple’A Plus Web TSL Operating Guide.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 226
29 Administration scripts
For the installation of the administration scripts, refer to the Triple’A Plus Web Installation
Guide. The environment variable $AAA_ADMIN_DIR mentioned below describes where the
administration scripts are deployed (e.g., $AAAHOME/admin, $AAAHOME/client_admin, etc.).
By default, the standard scripts are deployed under $AAAHOME/std_admin, but if you use
them directly, these scripts can be overwritten with a next of fix or release. Therefore, it is
useful to copy the std_admin into your new administration script directory.
29.1 Introduction
You can use the scripts in the following ways:
By using the Triple'A Plus Core menu ($AAA_ADMIN_DIR/scripts/admin_menu_aaa.sh
or $AAA_ADMIN_DIR/scripts/admin_menu_sybase.sh)
By directly launching the scripts located under $AAA_ADMIN_DIR/scripts
Note that the scripts located under the menu directory are not meant to be launched directly
but only be used by the two menus.
Each script that does a modification will ask you for a confirmation before executing the
command.
These menus are identical on UNIX and Windows.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 227
Item Description
Get the version of Triple'A Provides you with the versions of the:
Plus Core components Triple'A Plus Core Open Server
GUI (server side) if installed
import tool (aaa_imp)
operating system
Check a Financial Server Used to verify the status of an individual Triple'A Plus Core server. This
status can be:
Activated: The server is running
Not Activated: The server is stopped or not connected.
You must first choose a Triple'A Plus Core server in the list. This list
comes from the $AAA_ADMIN_DIR/scripts/opensrv.lis file.
Start a Financial Server Used to start an individual Triple'A Plus Core server. At the end of the
start the script checks the status and shows it like this:
Activated: The server has been started successfully.
Not Activated: The server has not started successfully.
You must first choose a Triple'A Plus Core server in the list. This list
comes from the $AAA_ADMIN_DIR/scripts/opensrv.lis file.
Stop a Financial Server Used to stop an individual Triple'A Plus Core server. At the end of the
start, the script checks the status and shows it like this:
Activated: The server has been stopped successfully.
Not Activated: The server has not stopped successfully.
You first have to choose a Triple'A Plus Core server in the list. This list
comes from the $AAA_ADMIN_DIR/scripts/opensrv.lis file.
Check all Financial Servers Similar to the check performed for an individual server, this function
does the check for all servers defined in
$AAA_ADMIN_DIR/scripts/opensrv.lis.
Start all Financial Servers Similar to the start for an individual server, this function does the start
for all servers defined in $AAA_ADMIN_DIR/scripts/opensrv.lis.
Stop all Financial Servers Similar to the stop for an individual server, this function does the stop
for all servers defined in $AAA_ADMIN_DIR/scripts/opensrv.lis.
Enable all GUI Used to re-enable all the GUI connections after the Administrator
disabled them.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 228
Item Description
Disable all GUI Used to disable all the GUI connections. The Administrator can use this
function to ensure that no user can connect when the Administrator
wants to execute some administrative tasks. The Administrator must
re-enable the GUI after completion of the administrative tasks.
This function is based on the date inserted in the table
table_modif_stat for the entitiy_dict_id=1.
All connected users will receive a popup window with a message
explaining that an administrative task requires them to be logged out
of the application.
The message, which is displayed into the pop-up window, can be
modified. The default message is defined in file
appl_message_dat.sql:
exec insupd_message_by_cd "Label_ForcedExit","us_english","Forced
exit",5,"Due to an administration decision, Triple'A will be
terminated."
go
If you want to modify this message, do not change it directly in this file
because this file might be overwritten with a new fix or release.
Instead, use the following procedure:
Execute cd $AAAHOME/ddl/src.
Execute cp -p appl_message_dat.sql
appl_message_dat.usr.sql.
Edit the file appl_message_dat.usr.sql and delete the lines
“exec insupd_message_by_cd …” that you do not want to modify.
In this case keep the line:
exec insupd_message_by_cd "Label_ForcedExit","us_english","Forced
exit",5,"Due to an administration decision, Triple'A will be
terminated."
61Kill all GUI Used to kill all the current connections in the Sybase database and to
ensure that no remaining connection exists in the system when the
Administrator wants to perform a maintenance task.
Kill a user GUI Used to kill all current connections from one user (please note that, if
several people use the same user login, all related GUIs will be killed).
Get the list of connected users Used to list all GUI connections.
Sybase Menu Lets you switch directly to the other Sybase admin menu.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 229
29.3 Sybase Admin menu
This menu is designed to help the Sybase Administrators. You can launch this menu with
your Triple'A Plus Core UNIX user:
$AAA_ADMIN_DIR/scripts/admin_menu_sybase.sh
It is recommended to create an alias (e.g., sybmenu) for this user as this menu can be often
used.
Status Description
ACTIVATED Running
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 230
Get the user connections
This screen is like the “Get the connected users” screen in the Triple'A Plus Core
Administration menu. The level of details is higher and all the Sybase connections are listed.
The columns are:
Column Description
Spid Sybase Process number.
Status Sybase process status in the process list (running, waiting for command, locked,
suspended because of no space left on a device).
Program_name Name of the program connected to the Sybase server (aaa_gui* and some aaa_srv
are the Triple'A Plus Core GUI, some aaa_srv are for the Triple'A Plus Core servers and
ctisql is for a batch access to Sybase).
Blocked 0 if OK, number of the Sybase process that block the user.
The display method is “more”. Pressing the [Space] key will display the next screen; “q” will
quit before the end of the list.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 231
Do the bcp out of the tables sysusages, sysdevices, sysdatabases, syslogins,
sysloginroles and sysservers.
Generate the file disk_init.sql and create_db.sql in the $DUMPDIR directory in
order to ease the recreation of the devices and databases.
build_lists.sh Builds all the lists (currency, geographic, sector, strategy, third_party,
portfolio, manager and instrument).
Build_Lists_Per_Entity.sh Builds the list of the entity specified as the first parameter, e.g.
build_entity_lists.sh instrument.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 232
Script Description
build_one_list.sh Builds one list on one entity.
The input parameters are:
list entity
entity name
list_code
Triple'A Plus Core financial server_name
For example, build_one_list.sh instrument AAA_SECT_CONS_STAPLE
DEMO_SERV1
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 233
Script Description
check_procs.sh This script checks if:
all standard Triple'A Plus Core procedures defined in ddl/src files are
installed in Triple'A Plus Core database
all Triple'A Plus Core procedures that exist in Sybase are defined in
the ddl/src files (except UD)
This script does not check:
if the procedure code used in Triple'A Plus Core database
corresponds to the source defined in ddl/src files
if the existing procedures are malfunctioning or not
check_tran_daemon.sh Performs the following checks and display the status of each of them:
check if the start daemon program is running
check if the daemon is running
check the number of existing transaction log files
check if the stop daemon program is running
check_allsrv.sh Checks the status of all Triple'A Plus Core servers defined in
$AAA_ADMIN_DIR/scripts/opensrv.lis.
check_srv.sh Checks the status of the Triple'A Plus Core server given as first
parameter.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 234
Script Description
disable_gui.sh Disables all GUI connections.
If the Administrator wants to execute some administrative tasks, he will
use this functionality to be sure that no user can connect anymore. He
must not forget to re-enable the GUI after.
All the connected users will receive a popup window with a message
explaining that an administrative task requires them to be logged out of
the application.
This function is based on the date inserted in the table table_modif_stat
for the entitiy_dict_id=1.
dump_db_evening.sh Dumps the Sybase databases at the end of the working day:
Stops the daemon that dumps the log every 15 minutes.
Sets the "trunc log on chkpt" database option to true on the Triple'A
Plus Core main database.
Makes the last full dump at the end of the day.
Makes the database compression as per syntax
COMPRESSSTRING="with compression = $COMPRESS_LEVEL"
where COMPRESS_LEVEL is defined in
$AAA_ADMIN_DIR/scripts/initaaa.cfg file as:
COMPRESS_LEVEL=1
export COMPRESS_LEVEL
dump_db_morning.sh Dumps the Sybase databases at the end of the night batch:
Sets the "trunc log on chkpt" database option to false on the Triple'A
Plus Core main database.
Does a dump of the databases.
Starts the daemon, which dump the transaction log every 15 min
during the day.
Makes the database compression as per syntax
COMPRESSSTRING="with compression = $COMPRESS_LEVEL"
where COMPRESS_LEVEL is defined in
$AAA_ADMIN_DIR/scripts/initaaa.cfg file as:
COMPRESS_LEVEL=1
export COMPRESS_LEVEL
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 235
Script Description
dump_tran_daemon.sh Starts the daemon that dumps the Triple'A Plus Core main database
transactions log every 15 minutes. This script is launched by the
dump_db_morning.sh. If you have to launch it manually, please look at
the command in the file dump_db_morning.sh in order to start it in
“nohup” and “background”.
enable_gui.sh Re-enables all the GUI connections after the Administrator disabled
them.
Forever.sh Never used on its own. It is only used when the Triple'A Plus Core server
is started in a “forever” mode. The “forever” mode consists of trying to
start the Triple'A Plus Core server not only once but for $MAXRETRYFORV
times. This variable is defined in the
$AAA_ADMIN_DIR/scripts/initaaa.cfg file.
fusion_new.sh Runs a fusion on all portfolios in “new” mode. This is used often during
the night batch if the AUTOMATIC_FUSION parameter is not set to 1.
gen_sybase_info.sh Generates all required Sybase information for a dump or load into
another data server. It extracts the following files:
login_db_name.out: name of the AAALOGINDB
db_name.out: name of all the databases
syslogins.bcp: the content of the table syslogins
sysloginroles.bcp: the content of the table sysloginroles
sysservers.bcp: the content of the table sysservers
sysusages.bcp: the content of the table sysusages
sysdevices.bcp: the content of the table sysdevices
sysdatabases.bcp: the content of the table sysdatabases
server_connect.bcp: the content of the table
AAALOGINDB..server_connect
sp_helpdb_and_helpdevice.out: the output of the commands
sp_helpdb and sp_helpdevice
sp_help_$db.out: one file per database that corresponds to the
output of the sp_helpdb on each database
dataserver_info.out: it contains the version, the page size, the
default charset and the sort order information
disk_init.sql: the script to create all required devices (the paths
can be changed if needed before launching it)
create_db.sql: the script to create the databases
interfaces: copy of the $SYBASE/interfaces file
RUN_* files: copy of the files $SYBASE/$SYBASE_ASE/install/RUN*
Sybase cfg file
get_tab_sizes.sh Displays the reserved space used by each table and its indices, sorted by
table reserved size, in each Triple'A Plus Core database.
Note: Only tables with a reserved size over 1 MB are displayed.
initaaa.cfg Contains all the variables required for the admin script to run
(AAA_ADMIN_DIR must be declared at the session level like .profile of
environment variable)
kill_gui.sh Kills either all the GUIs or the current GUI connections based on 1 user
login name.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 236
Script Description
load_db.sh Loads the Sybase databases from the DUMPDIR directory defined into the
$AAA_ADMIN_DIR/scripts/initaaa.cfg.
The following databases will be taken into account:
$AAAMAINDB
$AAALOGINDB
$AAAREPDB
$OCSMAINDB
new_build_lists.sh Builds all constrained lists on all existing entities on the current day.
It slightly differs from the script build_all_lists.sh by firtly dropping
indexes on the table list_compo and recreating them after the build list.
This allows us to speed up the process of the build list.
opensrv.lis Contains the list of all Triple'A Plus Core servers that we want to manage.
The format of this file has to be:
No blank line (even at the end)
Each line should contain the Triple'A Plus Core server name and only
1 server name
Example:
AAASERV1
AAASERV2
AAASERV3
When starting or stopping the Triple'A Plus Core server, the order of this
Triple'A Plus Core server list is taken into account.
For 64 bits version, add a space and “64” after the core server name. For
32 bits, add a space and “32” to be explicit (as default is 32).
Examples:
AAASERV1 64
AAASERV2 64
AAASERV3 32
AAASERV4
purge_login_failed.sh Purges the login_history table. It keeps only last month entries of the
login of nature “Login Failed”.
purge_login_history.sh Purges the login_history table. It keeps only last month entries of the
login of nature “Login Succeeded”.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 237
Script Description
purge_repdb.sh Purges (= truncate) all users tables of the Triple'A Plus Core report
database.
Note:
If you do not have Triple'A Plus Core, there is no problem to use this
script.
If you have Triple'A Plus Core Release 1.30, you must not use this
script because it will truncate the table ocs_portfolio_info, which
is used up until Triple'A Plus Core Release 1.20.X.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 238
Script Description
set_no_position_flag.sh Puts the flag no_position_f of tables ext_order, ext_operation, and
execution_qty in phase with the system parameter
NO_OPEN_POSITION_STATUSES. The script set_no_position_flag.sh can
also update the current status of NO_OPEN_POSITION_STATUSES from the
script, i.e. we can add or remove the statuses.
Once launched, the script shows you the current status of the
ACCOUNTING_STATUS and NO_OPEN_POSITION_STATUSES parameters.
Then, it asks you what action you want to perform on
NO_OPEN_POSITION_STATUSES and also tells you how you should enter
the i/p values to add or delete:
Example:
Do you want to insert or drop values from NO_OPEN_POSITION_STATUSES?
Choose any of the following and press Enter:
[A/a] Add values to NO_OPEN_POSITION_STATUSES.
[D/d] Delete values from NO_OPEN_POSITION_STATUSES.
[Any Other Choice] will continue to next step to update
no_position_f.
If you chose the Add or Delete option, the script prompts you to type the
list of parameters separated by a semicolon (;) to add or delete to the
NO_OPEN_POSITION_STATUSES parameter's list.
The script shows the list of NO_OPEN_POSITION_STATUSES statuses that
were added and prompts again to add or delete the values, until the list
of values are finalized.
If you chose the Any Other Choice option, the script continues to the
next part where you can either get all information or update the
no_position_f flag f depending on the current
NO_OPEN_POSITION_STATUSES and ACCOUNTING_STATUS.
The available choices are:
[I/i] to get all the information
[U/u] to update the records
[Any Other Choice] to exit the script
Finally, the script shows you the final log file to provide detailed
information of the actions being taken.
sp_sysmon.sh Launches a Sybase monitoring during 10 minutes and display the output
into the logfile.
You can change the duration by just editing the file and change the
“00:10:00”.
The format is HH:MM:SS.
start_allsrv.sh Starts all Triple'A Plus Core servers defined into the
$AAA_ADMIN_DIR/scripts/opensrv.lis.
Dispatcher server is started after all other servers.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 239
Script Description
start_srv.sh Starts one Triple'A Plus Core server.
You have the following options to start a Triple'A Plus Core server:
./start_srv.sh AAASERV1
./start_srv.sh AAASERV1 fast
./start_srv.sh AAASERV1 fast forever
./start_srv.sh AAASERV1 fast 32
./start_srv.sh AAASERV1 64
Fast: Starts the Triple'A Plus Core server in the background and will not
check and wait that this server is up before launching the next Triple'A
Plus Core server. This is especially useful when starting more than one
server.
Forever: Tries to start the Triple'A Plus Core server not only once but
$MAXRETRYFORV times. This variable is defined in the
$AAA_ADMIN_DIR/scripts/initaaa.cfg file.
32 or 64: Set bits version to launch (default is 32-bits).
If you want to have one server.log per Triple'A Plus Core server, you
can adapt your start_srv.sh script and uncomment the following line:
nohup $AAAHOME/$AAAPRG SRV …
-E$AAAHOME/msg/$SERVERNAME.log &”
stop_allsrv.sh Stops all the Triple'A Plus Core servers defined into the
$AAA_ADMIN_DIR/scripts/opensrv.lis.
stop_srv.sh Stops a Triple'A Plus Core server. The only parameter is the name of the
Triple'A Plus Core server.
Example:
./stop_srv.sh AAASERV1
sybase_parameter_check.sh Checks all required parameters of Sybase (for more information, see
section about installing Sybase ASE in the Triple'A Plus Core Installation
Guide) so as to have a clean Triple’A Plus installation or migration. For
migration, this script is called from pre_aaa_upgrade.sh. In cases where
you need to add a new database after a Triple’A Plus installation by
executing aaa_install.sh, then sybase_parameter.sh should be run.
update_statistics.sh Updates the statistics for all user tables of the login and main Triple'A
Plus Core databases (the list of the tables is extracted dynamically).
In addition, this script performs a few specific “update statistics” on some
tables of the main Triple'A Plus Core database. The parameter
UPDATE_STAT_THRESHOLD is passed as input to the script
update_statistics.sh; if not the value=15 will be considered in the script
(UPDATE_STAT_THRESHOLD=15).
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 240
29.5 Files in $AAA_ADMIN_DIR/init
Note: All files in this init directory are examples and have to be adapted for each
implementation.
Script Description
.bash_profile_win Example of bash profile to use on Windows.
install_license.sh Example of script to load the Triple'A Plus Core licence. Update the
five values (value_n="…") and then launch the scripts. If you are able
to log in through the GUI after having installed the new licence, it
means that the new licence has been successfully loaded.
Attention: Back up the previous values before launching the script
(e.g., with bcp on appl_param, or with a select, or a print screen on
the application parameter through the GUI).
manage_srv The script allows you to start and stop the Sybase dataserver, backup
server and monitor server individually or all of them.
Usage: manage_srv cmd {arg}
post_load.sh The script allows you to change some values after a database load
from another environment. The variables at the beginning of the
script must have been set correctly with the source environment
database names (ORI_MAINDB, ORI_LOGINDB, ORI_REPDB) and the
owner of the Triple'A Plus Core database (ORI_AAAUSER).
The following values can be changed with this script:
Code of the application user (owner of the main database)
Correct the database reference name mentioned in the table
dict_entity, sqr_database and server_connect
Update of the name in server_connect (you have to duplicate this
line in order to consider all Triple'A Plus Core servers)
Recompile all the procedures, views and triggers
Load the Triple'A Plus Core licence
readme.txt Mentions that the files that are present in this directory are examples
and must be adapted for each implementation.
readme_howto_drop_udfield.txt This file describes the procedure how to drop a “ud field”.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 241
Script Description
ud_fields.sh The script allows you to add multiple user-defined fields together with
permitted values and labels.
Path: $AAAHOME/std_admin/init
Execution:
Follow the path: $AAAHOME/std_admin/init
./ud_field.sh <No parameters are required as it is executing
modif_ud_field.sh script>.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 242
30 RGB colour codes
The table below shows the colours you can use and their corresponding RGB code in decimal.
The simplest way to convert the decimal coding to hexadecimal is to use the Windows
calculator. Proceed as follows:
1. Go to Start > Programs > Accessories>Calculator.
2. If it is not already displayed, choose Scientific from the View menu to display the
scientific calculator.
3. From the tables below, choose the colour and RGB decimal values you want.
4. With the Dec option selected in the number base group box, enter the decimal number
in the space provided.
5. Select the Hexa option in the number base group box. The number you entered in the
space provided is now displayed in hexadecimal.
6. Enter the hexadecimal code(s) in the Registry key as described in section Editing the
registry.
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 243
Colour Red Green Blue Colour Red Green Blue
Aliceblue 239 247 255 burlywood4 128 99 65
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 244
Colour Red Green Blue Colour Red Green Blue
darkolivegreen 74 65 23 deepskyblue4 37 88 126
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 245
Colour Red Green Blue Colour Red Green Blue
gray18 37 5 23 gray53 124 121 121
gray24 48 34 38 gray6 21 5 23
gray34 74 67 68 gray7 21 5 23
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 246
Colour Red Green Blue Colour Red Green Blue
gray89 224 224 224 grey26 52 40 44
gray9 21 5 23 grey27 56 45 44
grey0 21 5 23 grey43 98 93 93
grey14 21 5 23 grey5 21 5 23
grey24 48 34 38 grey6 21 5 23
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 247
Colour Red Green Blue Colour Red Green Blue
grey61 147 145 144 grey97 246 246 245
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 248
Colour Red Green Blue Colour Red Green Blue
lemonchiffon4 130 123 96 lightsteelblue 114 143 206
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 249
Colour Red Green Blue Colour Red Green Blue
mediumturquoise 72 204 205 palegreen 121 216 103
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 250
Colour Red Green Blue Colour Red Green Blue
red1 246 34 23 skyblue3 101 158 199
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 251
Colour Red Green Blue
tomato1 247 84 49
tomato2 229 76 44
tomato3 194 62 23
tomato4 126 34 23
transparent 21 5 23
violetred4 125 5 65
yellowgreen 82 208 23
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 252
31 ANNEXES
# Parameters
HOSTFILE=$1
HOSTFILE_RWK=$2
PFLIST=$3
INSTRLIST=$4
WRKDIR=$5
# Variables
TMPFILE=${WRKDIR}/`basename $0`.$$
# Filter based on portfolio list
if [ "$PFLIST" != "" ]
then
# Define the portfolio as first field
cat $HOSTFILE | nawk '
{
pf=substr($0,1,20);
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 253
gsub(" ","",pf);
printf("%s^H^%s\n",pf,$0);
}' >$TMPFILE
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 254
cat ${TMPFILE}.res | sed '1,$s/ //g' >${TMPFILE}.aaa
# Merge files
sort -m -t^ -k1,1 -k2,2 -o$TMPFILE ${TMPFILE}.hst ${TMPFILE}.aaa
HOSTFILE=${TMPFILE}.pf_filtered
fi
# Filter based on instrument list
if [ "$INSTRLIST" != "" ]
then
# Define the instrument as first field
cat $HOSTFILE | nawk '
{
instr=substr($0,21,20);
gsub(" ","",instr);
printf("%s^H^%s\n",instr,$0);
}' >$TMPFILE
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 255
${SYBASE}/${SYBASE_OCS}/bin/isql -U$AAAUSER -P$AAAUSERPWD -b -o ${TMPFILE}.res <<-
ISQL_END
set nocount on
go
set dateformat dmy
go
use $AAAMAINDB
go
select
i.code + "^" + "A" + "^"
from
list_compo lc, list l, instrument i
where
lc.list_id = l.id and
lc.validity_d = NULL and
l.code = '$INSTRLIST' and
l.entity_dict_id = 900 and
lc.object_id = i.id
order by
i.code
go
ISQL_END
ret=$?
# Merge files
sort -m -t^ -o$TMPFILE ${TMPFILE}.hst ${TMPFILE}.aaa
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 256
# File is
# XXXX^A^
# XXXX^H^.....................
# Line with A is always before line with H (sort function)
#
cat $TMPFILE | nawk -F^ '
{
obj=$1
src=$2; # A or H
if ( obj != prev_obj )
{
if ( src == "A" )
current_A_obj=obj;
}
else
{ # same object
if( ( current_A_obj == obj ) && ( src == "H" ) )
print $3;
}
prev_obj=obj;
}' >${TMPFILE}.i_filtered
HOSTFILE=${TMPFILE}.i_filtered
fi
cp $HOSTFILE $HOSTFILE_RWK
rm -f ${TMPFILE}.pf_filtered ${TMPFILE}.i_filtered
exit 0
25 June 2015 Triple’A Plus™ Core 15.06 - System Management Guide 257