Solved

How to execute rwrun with user parameters?

Posted on 2008-06-16
2
8,328 Views
Last Modified: 2013-12-19
I have daily/weekly/monthly reports to generate in pdf format.
Currently they are being run via Report Builder 10.1.2.0.2
These reports have 2 User Parameters for dates (START_DATE, END_DATE).

Is there a way to pass the 2 paramenters into the rwrun syntax?
Is rwrun the method to use?
rwrun REPORT=C:\report1.rdf DESTYPE=FILE DESNAME=C:\report1_MMDDYYYY.pdf DESFORMAT=pdf USERID=username/passwd@database

Open in new window

0
Comment
Question by:JayAZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Milleniumaire earned 100 total points
ID: 21792116
While rwrun does work with 10g, you should be using Oracle Reports Server which uses rwclient instead of rwrun.  The syntax for using rwclient is the same as rwrun, however you will have to have a Reports Server configured and running.

Both rwrun and rwclient tend to be run from the o/s command line so getting user defined parameters to them requires a user interface to be built.  This may be as simple as a shell script on unix which prompts the users for the parameters.

To pass the parameters to rwrun or rwclient, simply include the parameter names on the command line, for example, using your sample code:

rwrun REPORT=C:\report1.rdf DESTYPE=FILE DESNAME=C:\report1_MMDDYYYY.pdf DESFORMAT=pdf USERID=username/passwd@database START_DATE=dd-mon-yy END_DATE=dd-mon-yy

Obviously the format of the date values passed to the report depends on how you have defined these parameters in the report.
 

0
 

Author Closing Comment

by:JayAZ
ID: 31467515
date I needed to was in format mm/dd/yyyy
START_DATE="mm/dd/yyyy"     (with quotes)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question