Solved

How to execute rwrun with user parameters?

Posted on 2008-06-16
2
8,238 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Repeat query 13 72
Oracle Insert not working 10 48
Oracle function to insert records? 15 62
why truncate is faster than delete in oracle ? 4 45
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to take different types of Oracle backups using RMAN.

763 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