Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to execute rwrun with user parameters?

Posted on 2008-06-16
2
Medium Priority
?
8,863 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 400 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to take different types of Oracle backups using RMAN.

604 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