Generate A File Of Prompt Values For Use In The Command Line; Remove Obsolete Prompts - IBM Cognos User Manual

Version 10.1.1
Table of Contents

Advertisement

When you enter a prompt value, the data type is not verified. Entering
15oo, rather than 1500, for a numeric value does not generate an error or
warning even though the value is invalid. PowerCube creation may fail if
you use an invalid value.
4. For each prompt that you want to delete from the query, in the Query Prompts
dialog box, click the row in which the prompt appears and click Remove.
5. Click OK.
Generate a File of Prompt Values for Use in the Command
Line
You can generate an XML command file that includes prompt values for one or
more queries. This file is necessary to provide prompt values in UNIX
environments.
For more information about command line options and this command file, see
Appendix A, "Command Line Options," on page 209.
For each query that requires prompt values, ensure that your selections are
up-to-date with the underlying package or report. "Remove Obsolete Prompts"
Procedure
1. Right-click a prompt and click Create Prompt Specification to create a
command line file for one query or click Create Prompt Specifications For All
Queries to create a command line file for all queries.
2. Choose a folder for the command line file, type a name for the command line
file, and click Save to save the command line file to your computer.

Remove Obsolete Prompts

Cognos Transformer stores prompts and their values in the Cognos Transformer
model and uses this information for data requests and to generate a prompt
specification. A prompt specification is supplied at the command line in batch
mode to override the values stored in the model.
Prompts that are no longer in a package or report are identified as obsolete. This
will occur, for example, if you remove a prompt for the report on which the model
is based and save the report. Then, when you use the Edit Prompts command, that
prompt is identified as obsolete in the Query Prompts dialog box. A prompt may
also be identified as obsolete simply because the underlying report or package is
unavailable. Once the report or package becomes available, the prompt becomes
up-to-date again. Tip: If all or several prompts are marked obsolete, verify the
connection to the server.
To ensure that your prompt selections are up-to-date with the underlying package
or report, for each data source in the model, you must remove any obsolete
prompts.
Procedure
1. In the Data Sources window, right-click the query and click Edit Prompts.
2. In the Query Prompts dialog box, in the Name list, click any obsolete prompts.
Tip: Obsolete prompts are indicated by an icon.
3. Click Remove.
You must repeat these steps for each query.
Chapter 3. Data Sources for Your Model
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents