EasyManuals Logo

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 #237 background imageLoading...
Page #237 background image
Including Cognos Transformer Prompts in an XML Command File
You can include prompts in an XML command file. You must use the following
command line in order for Cognos Transformer to read the file:
cogtr -fcommand file name
where command file name contains a sequence of statements that define prompt
values.
The command file can contain one or more commands for prompts. The command
name is prompt. The value attribute of the command specifies the prompt name.
Each prompt command contains one or more Parameter elements that specify a
query name, prompt attributes and values. The Query Parameter element specifies
the query to which the prompt belongs. The other Parameter elements define the
prompt type and values.
There are several different types of prompts: simple, multi-valued, range, and
MUN.
The following example shows single value, multi-value and range prompts.
Prompts can be included in an XML command file. You must use the following
command line in order for Cognos Transformer to read the file:
cogtr -fcommand file name
where command file name contains a sequence of statements that define prompt
values.
The Command File can contain one or more commands for prompts. The
command name is prompt. The value attribute of the command specifies the
prompt name. Each prompt command contains one or more Parameter elements
that specify a query name, prompt attributes and values. The Query Parameter
element specifies which query the prompt belongs to. The other Parameter
elements define the prompt type and values.
There are several different types of prompts: simple, multi-valued, range, and
MUN.
The following example shows single value, multi-value and range prompts.
<?xml version="1.0" encoding="UTF-8"?>
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Commands>
<!-- SINGLE_VALUE PROMPT -->
<!-- Prompt name -->
<Command Name="prompt" Value="MyPrompt1">
<Parameters>
<!-- A query this prompt belongs to -->
<Parameter Name="Query" Value="Promptmany~1"/>
<!-- SingleValue, MultiValue, Range -->
<Parameter Name="PromptType" Value="SingleValue"/>
<!-- Any type that understood by RS. Optional. Not in use -->
<Parameter Name="PromptValueType" Value ="Integer"/>
<!-- Value -->
<Parameter Name="PromptValue" Value="12345"/>
</Parameters>
</Command>
<!-- MULTI_VALUE PROMPT -->
<!-- Prompt name -->
<Command Name="prompt" Value="MyPrompt2">
<Parameters>
Appendix A. Command Line Options 223

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
DeveloperIBM
Data Sourceflat files
Operating SystemMicrosoft Windows
LicenseCommercial
Input SourcesSQL databases, Excel, CSV
PlatformMicrosoft Windows