EasyManuals Logo
Home>IBM>Transformer>Cognos

IBM Cognos User Manual

IBM Cognos
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #224 background imageLoading...
Page #224 background image
The following example, run from the bin folder where Cognos Transformer is
installed, tests to ensure that your Windows operation ended successfully. If a
non-zero error code is returned, the process failed, or Cognos Transformer
terminated unexpectedly without completing the specified sequence.
cogtr.exe -n2 -s -i -nologo install_dir:\
filename.py? if errorlevel 1 goto error
:noerror echo no error was encountered pause goto end :error echo
Error
pause :end
In the following UNIX/Linux example, a Bourne Shell script is appended to the
cogtr command to perform a second action (b) on successful completion of the first
action (a):
#!/bin/sh if cogtr command_line_options then #perform action a if exit status is 0
else #perform action b fi
Command Line Syntax
To use command line options, you must start the Cognos Transformer executable,
cogtr.exe, from the directory in which it is installed.
The syntax for using command line options with optional arguments is as follows:
cogtr -option
[argument]
filename.py?|filename.mdl
Notes
When using command line options, the following considerations apply:
v On Windows, you can use -n with some options to run Cognos Transformer in
batch mode.
v The option in the command line always starts with a dash (-).
v Command line options are case-insensitive. Arguments are case-sensitive.
v If there are spaces inside any argument, you must enclose the argument in
double quotation marks, for example
cogtr -n -k"field three=CarlosR/pw462" Field3.mdl
v For .py? files, the question mark (?) is replaced by the character that is used in
your version of Cognos Transformer.
v You can use more than one option in a command line. If an option that is used
in a command line is incompatible with an option that appears earlier in the
command line, the earlier option is ignored.
v The filename.py? and filename.mdl syntax applies to Windows only; use the -m
option on other platforms to specify the model file name.
v When entering command line options, you must specify the name of the .mdl
and .py? file at the end of the command line after all the other parameters, for
example,
cogtr -n -s -mmodel.mdl
cogtr -n -s -pmodel.py?
210 IBM Cognos Transformer Version 10.1.1: User Guide

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM Cognos and is the answer not in the manual?

IBM Cognos Specifications

General IconGeneral
BrandIBM
ModelCognos
CategoryTransformer
LanguageEnglish