Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Cognos from a command line

Status
Not open for further replies.

Mez63

MIS
Feb 13, 2003
5
US
I have a COGNOS report that requires 2 prompts <String> <Date>
Can you call a COGNOS report from a command line and pass it the parameters for the prompts ?
If so what is the syntax ?
 
Set up a command line like
c:\Program Files\Cognos\cer2\Bin\Impadmin.exe (space) c:\myfile.imr,&quot;String prompt|2001-12-31&quot;

Regards,

Trev
 
I've tried your command line but still have problems
If I enter :-
C:\Program Files\Cognos\cer1\bin>Impadmin.exe c:\PRFQ.imr
The report runs but asks me for the prompt values.
If I try to add the parameters e.g. :-
C:\Program Files\Cognos\cer1\bin>Impadmin.exe c:\PRFQ.imr,&quot;A1|2003-02-20&quot;
I get a File Not Found Error ?
 
You will have to put the 1st command in quotes, as you have an embedded space. The program parses by spaces, so if you have spaces within the command, it will crash & burn.

i.e.
&quot;C\Program Files\Cognos\cer1\bin\Impromtu.exe&quot; c:\prfq.imr, ...

It wouldn't hurt to put the second command with quotes, but it not required.

Good luck
Bruce
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top