To use IBM Cognos product documentation, you must enable JavaScript in your browser.

Controlling Processing with Preference Settings or Environment Variables

You can invoke Transformer from the command line to populate models, create cubes, and perform other actions. How and where these actions are performed is determined by information that you provide.

You can control specific operating characteristics of Transformer by creating user preference files or by setting up environment variables, or by overriding either of these from the command line.

The settings contain information such as default directories for various classes of files that Transformer uses or creates.

All preference file settings can be used as environment variables, and you can use multiple preference files.

Transformer searches for settings in the following sequence:

  1. cogtr.xml in the IBM Cognos configuration directory

  2. environment variables

  3. the -d or -f command line option

  4. Note: If the command line contains both -d and -f, Transformer uses the one that appears last.

Environment variables override settings in any preference file, and command line options override environment variable settings.

For example, to override the directory where source files are read, you can include the following UNIX environment variable definition in the *.sh file:

DataSourceDirectory=$HOME/data; export $HOME/data

To use the command line to override the setting for the directory where the source files are read, start Transformer using the following command:

cogtr -dDataSourceDirectory=$HOME/data
Preference Settings and Environment Variables

Consider the following:

Preferences

The following are preference file entries you can set for Transformer.

Note: In the following lists of preferences, path refers to the directory and file name. For non-Windows platforms, the default is the "temp" directory in the installation_location/c8 directory. On Windows platforms, different defaults apply as described below.

Directory

The following setting specifies where Transformer creates the temporary file while you work on your model. The default path is the value of ModelSaveDirectory. The temporary file can be used to recover a suspended model at strategic checkpoints, should a severe error occur during cube creation. This file has the extension .qy?, where the ? is replaced by the character used in your version of Transformer.

<Preference Name="ModelWorkDirectory" Value="
path1;path2;..."/>

The following setting specifies where Transformer creates temporary work files when generating cubes. The default path is the "temp" directory in the installation_location/c8 directory. Transformer creates multiple files automatically, and concatenates them into one logical file, regardless of which drive they are in.

<Preference Name="DataWorkDirectory" Value="path1;path2;..."/>

By distributing the files across multiple drives, you can work around size limitations imposed by your operating system, and reduce disk contention. The location of the files is determined by the list of paths that you specify. The files are created in the order specified in the list of paths.

For data source files other than .iqd-format files, the following setting specifies where Transformer searches for files. The default path is the data subdirectory in the installation_location/c8 directory.

<Preference Name="DataSourceDirectory" Value="path1;path2;..."/>

The following setting specifies where Transformer saves cubes. On Windows, the default is the \Transformer\PowerCubes subdirectory under your home directory. On UNIX and Linux, the default is the temp subdirectory in the installation_location/c8 directory.

<Preference Name="CubeSaveDirectory" Value="path1;path2;..."/>

The following setting specifies where Transformer saves models. On Windows, the default is the \Transformer\Models subdirectory under your home directory. On UNIX and Linux, the default is the temp subdirectory in the installation_location/c8 directory. If you are running Transformer with an .mdl file and you have specified the -s option, a .py? file is created in this directory. (The ? in the extension .py? is replaced by the character used in your version of Transformer, such as .pyj for versions 8.3 and 8.4.)

<Preference Name="ModelSaveDirectory" Value="path"/>
File

The following setting specifies the threshold number of bytes at which Transformer splits its work files. The minimum is 1000000000 and the maximum is 1500000000. The default value is 1500000000.

WorkFileMaxSize

The following setting specifies a value that determines one of the following options:

MultiFileCubeThreshold

This multiple-file cube has one file with the .mdc extension and one or more files with the .mdp (multi-dimension partition) extension. The cube cannot be compressed. The default MultiFileCubeThreshold value is 0, which signifies that multiple file generation is disabled.

Log File

The following settings control where and how Transformer writes information to an ASCII-text log file.

The following setting specifies where Transformer creates the log file. On Windows, the default is the \Transformer\logs subdirectory under your home directory. On UNIX and Linux, the default is the temp subdirectory in the installation_location/c8 directory. If the logs subdirectory does not exist, then the default is the current working directory.

<Preference Name="LogFileDirectory" Value="path"/>

The following setting specifies a file name if you want messages written to a file, rather than displayed on the screen. The file name can include the full path. By default, this file has the same name as the model file, but with a .log extension.

<Preference Name="LogFileName" Value="path"/>

The following setting specifies that the log file is overwritten for each new model or cube. A value of TRUE appends the new log data to the existing log file.

<Preference Name="LogFileAppend" Value="FALSE"/>

The following setting specifies the types of messages that are written to the log file. Choose from the following severity levels:

<Preference Name="LogDetailLevel" Value="4"/>

You can use the log file to check the status of cube creation. The progress of a cube update is indicated by statements in the file, each containing the following fields:

The text of each message includes header information, the ID of the object being processed (in hex notation), and messages about Transformer processes and timing.

Messages marked "Timing" are especially useful to analyze as a series of processing events. You can do this by importing the log file into a spreadsheet application as a tab-and-comma-delimited file. For more information, seeRecommendation - Analyze Processing Bottlenecks Using the Log File.

You can also use the -r command line option to control the types of messages generated.

This setting specifies, in elapsed minutes, how often messages are written to the log file. The default is -1. When the setting is -1, messages are not logged. If it is set to 0, messages are written to the log file whenever they are generated:

<Preference Name="LoggingFrequency" Value="-1"/>
Warning

These settings control whether Transformer issues warnings about potential incremental update problems and ratios between categories and their descendants.

This setting issues warnings when an event is going to take place that will make an incrementally updated cube invalid; for example, deleting a category. The default value of TRUE means that warnings are issued; FALSE disables warnings.

<Preference Name="IncUpdateWarnings" Value="TRUE"/>

This setting issues a warning if the number of child categories for any parent category exceeds the specified value. Valid values are 1 through 16384. The default is 35.

<Preference Name="ChildRatioThreshold" Value="35"/>
Output

This setting specifies how often Transformer creates checkpoints for recovery from severe errors during cube creation. This is defined as the number of records written to a cube before a new checkpoint is created. If your data sources are constructed from a database, this value shouldn't exceed the size of your database rollback journal. The default is 500000.

<Preference Name="MaxTransactionNum" Value="50000"/>
Data Source Attributes

These settings specify various physical attributes of the data source files.

This setting specifies the character used as a decimal point in a data source. The default is a period (.).

<Preference Name="DecimalPoint" Value="."/>

This setting specifies the field delimiter in a delimited-text data file. The default is a comma (,).

<Preference Name="DefaultSeparator" Value=","/>

This setting specifies the character used as a thousands separator in a data source. The default is a comma (,).

<Preference Name="ThousandSeparator" Value=","/>

This setting specifies the cut-off date that determines whether the two-digit year (YY) in a six-digit date is a 20th or 21st century date. Transformer interprets values below the cut-off as 21st century dates and values at or above the cut-off as 20th century dates. The default is 20.

<Preference Name="CenturyBreak" Value="20"/>

Because 00 to 19 are automatically treated as 21st century dates and 20 to 99 as 20th century dates, you only need to change the default if your data source includes dates from 1900 to 1919. For example, the setting CenturyBreak=18 means that the values 00 to 17 are interpreted as 2000 to 2017 and the values 18 to 99 are interpreted as 1918 to 1999.

Date Format

This setting controls the format in which the date is displayed:

<Preference Name="LunarFiscalLabeling" Value="TRUE"/>

It determines whether users will be able to view dates in a cube in lunar year format. The value TRUE indicates that the dates will be displayed in this format. A value of FALSE indicates that dates will be displayed in calendar year format.

Environment Variables

The following sections describe the environment variables you can set for Transformer on UNIX and Linux. Shared library variables, and related database (RDBMS) variables server communication settings are omitted because client-server synchronization is not supported in IBM Cognos 8.

Shared Library Variables

To run Transformer on UNIX or Linux, the loader requires that the library path variable specify the location of the shared libraries. The library path variable for each supported operating system is as follows.

Operating SystemEnvironment Variable
Sun SolarisLD_LIBRARY_PATH
IBM AIXLIBPATH
HP-UXSHLIB_PATH
LinuxSHLIB_PATH

Database Variables

If your data sources make use of one or more relational databases, you must install them before using Transformer. For more information, see the Installation Guide for your version of Transformer.