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 ?
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,"A1|2003-02-20"
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.
"C\Program Files\Cognos\cer1\bin\Impromtu.exe" c:\prfq.imr, ...
It wouldn't hurt to put the second command with quotes, but it not required.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.