Running report from command line with multiple value for same parameter
Hey,
I know how to run a report from the command line specifying parameters values each time but I was wondering if someone could tell me how I would go about running the same report multiple times in a batch program but specifying a list of values to pass to a parameter each time.
So for example if a parameter was 'School Number', how could I run a report in a batch program that would pass a school number to the report as a parameter using a list of school numbers generated for a sql statement or something. So if I had 300 school numbers in my list then I would get 300 different reports when the batch program finished.
This leads me to another question. How can I dynamically change the name of the report generated by the batch to use the school number value passed in, so for example if the value 3 was passed in the name would be something like School 3.pdf, if 4 was passed in the name would be School 4.pdf....etc
Any help on this?
Thanks
Hello,
Bursting and Distribution may help you ....
37 Bursting and Distributing a Report
http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_dist.htm
Regards
Similar Messages
-
Create URL with multiple values for one parameter
Post Author: cbamberg
CA Forum: General
While I have no problems to create the URL to open a report with a single value for a parameter from my Java application, I don't know how to format multiple values for a parameter when I want to pass the "&prompt0=" value. The values I want to pass are numbers, not strings.
Anyone can help?Hi gayatri,
you need to select both the product id and custname.put a count on the prodid column and write a condition of count>1 and apply it.
Thanks
Hari -
How to run report on command line with user parameter?
Hi,
How do I run oracle report on command line (batch) with pre-set User Parameter values ? e.g. :P_1 ='SYSDATE' , :P_2 = 'DEPT_NO'
ThanksHello,
If you are using rwrun :
rwrun report=myreport destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
If you are using rwclient , just add server=<reports server name> :
rwclient server=myrepsevrername report=+myreport+ destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
Regards -
Running reports via command-line with /batch option
Hi,
I have created a batch file which runs, and exports the results of 7 different discoverer reports with /batch option.
Contents of batch file:
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
Sample of a cmd file the bacth file runs:....
/connect user/password@oraprd /apps_responsibility "BIS Super User"
/open "H:\Projects\DRP Import Modelling\Dev\Intransit Extract.dis"
/sheet 1 /export xls "H:\Projects\DRP Import Modelling\automation\Intransit Input.xls" /batch
The batch file runs ok and processes each report in sequence, and creates the excel export one after the other.
However, I need to process the 7 reports in parallel, so changed the batch file to process in own thread :
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
The reports kick off at the same time and I can see 7 dis4usr.exe processes running via task manager
Problem:
The first reports runs and exports ok.
All the others dis4usr.exe processing stops with the following error pop-up:
! Could not open file. OK
Question:
Can you only process reports sequentially via command line mode with /batch option?
If not...what am I missing...its driving me insane :)
All asistance is greatly appreciated. ThanksLadies and gentlemen.....I have solved my problemo!
The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
trying to access the same standard log file simultaneously.
I modified each cmd file to write logging info to individual files: eg
/logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
I am definitely having a beer this evening!
Thanks for everyone's input...kept me on the righteous path :) -
To run a report from command line, when using jdbc-odbc bridge
Hi,
How to run a report from command line, when using jdbc-odbc bridge?
Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
Please specify, what is command line arguments for jdbc-odbc bridge driver?
Environment : Oracle 9i Report Builder on WinNT
Database : Sybase
Regards,
RamananHello Ramanan,
Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
JDBC PDS allows user to connect one or more same or different kind of databases.
While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
rwrun eg :
rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
Server eg :
http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
http :
Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
With Regards
Reports Team -
How to run a 10g report from command line ?
Good Afternoon,
Please advise if there is a way to run a 10g report from command line.
We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to address an report server and run a report?
Thank you,
DmitriSteps to take.
(1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
(2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
(a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
or, if it does not work
(b.) Add D:\OracleDevR2\bin to the system env. variable PATH
(3.) Start OC4j
(4.) Now you can access the jobs using URL like:
http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
where 192.161.11.143 is your machine's IP address. -
How to run Ant from command line in Tarantella env?
I am getting Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher error message when I run Ant from tarantella command line. Is this Ant version issue? I can only find Ant with version 1.4.2. Where can I find the correct Ant version (1.6.5) and what class path do I need to specify if I want to run Ant from command line. This works if I run Ant inside of Jdeveloper 11g.
thanksHi
What is the correct Java version? What are the steps to rectify the problem? -
How to passing multiple values for a parameter of discoverer(url parameters
Hi All,
I am trying to pass multiple values for a parameter of disco report. I am trying to include my url for discoverer viewer report. the values has the following
'jeff,mark'
'sfophiee,angela'
Thanks and Regards
VenkatHello Venkat,
I know there are some problems with 10.1.2.0.2, maybe if you haven't done yet you can try with 10.1.2.2, assuming this version should be working for multiple parameter values :
OracleAS Discoverer 10.1.2.2 is installed with the following patch :
Patch 4960210 PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
So, once installed you can try adding your parameter as param_<parameter_name>='sfophiee,angela'
Hope this helps, otherwise feel free to log a Service Request to Support.
Best Regards,
Gianluca -
Hi All:
I am trying to create multiple profiles, using unified profile types, to
store multiple values for same properties. Here my intention of using
'unified profile types' is to create multiple profiles (to store multiple
values for a property). All the properties are stored in the same database
maintained by Personalization server. Also, I am trying to use the same
'USER' ejb as profile class/home/pk/jndi.
The scenerio is,
define unified profile types (Business, Vacation) using Personalization
admin tools, using com.beasys.commerce.axiom.contact.User,
com.beasys.commerce.axiom.contact.UserHome,
com.beasys.commerce.axiom.contact.UserPk,
com.beasys.commerce.axiom.contact.User for Profile Class, Home, Pk class,
JNDI name respectively.
Define Property set 'HotelCommerce' with property
HotelProp as single, restricted, text (valid values Single, Double)
Now you can use the attached jsp files to login as a user and try to set the
property value for HotelProp for each profile. As per my understanding, I
was expecting that I can set different values for the property 'HotelProp'
for each profiles. But unexpectedly, all the profiles get the same value.
Question. is it the correct behavior? if yes, how can I achieve this
functionality?
if not, do you see any problem in my scripts?
your answer asap is appreciated. we need to make decision on using
Personalization server v/s developing our own Personalization server!!!:)
thanks,
-rajesh
PS: I have tried 'Unified Profile Example' type too, but that did not work.
[propsettest.jsp]
[home.jsp]I am trying to create multiple profiles, using unified profile types, to
store multiple values for same properties. Here my intention of using
'unified profile types' is to create multiple profiles (to store multiple
values for a property). All the properties are stored in the same database
maintained by Personalization server. Also, I am trying to use the same
'USER' ejb as profile class/home/pk/jndi.Hello Rajesh,
This is not the purpose of the UUP. The UUP is used to allow existing
database schemas to be aggregated with the existing Weblogic Personalization
Server database schema to provide a single, customized user profile with which
to maintain the user properties (
http://e-docs.bea.com/wlcs/p13n/users.htm#1068901 )
If you want to have properties that change value based on some "profile" or
classification of a user, then you should use classifier rules to change the
user from "OnVacation" to "AtWork" or "AtHome". You can use these classifier
rules to select content for the user or conditionally execute logic (
http://e-docs.bea.com/wlcs/p13n/rules.htm )
Ture Hoefner
BEA Systems, Inc.
1655 Walnut Street; suite 200
Boulder, CO 80302
www.beasys.com -
Multiple values for the Parameter
1. Had any tried the selecting MULTIPLE values for the parameter in Oracle Discoverer Plus Releae 4.1 Version 4.1.37.00.0. If so can please let me know how to implement it.
2. In a Page-Detail Cross Tab workbook, I have to show the weighted average instead of the avg or sum. Any inputs please.
3. I have to compare two periods (TOP) of datapoints. Any inputs please.If you wanted to eliminate the need for users to type in the parameter values, you could create a LOV on the desired column. This will produce a distinct list of all valid values where the user would simply select as the wish. Of course you still need to check the "let user enter multiple values" checkbox if you want them to select more than one.
-DG -
How to run Report Builder Report from Command line
Hello,
Can Oracle Report Builder Report (run time report) run from Command line ( SQL prompt or Shell script).
Quick response will be appreciated.
Thanks,
AtifHi Atif,
please see Note 74648.1 on Metalink.
Monica -
NIMAX generate report from command line
Dear users,
I would like to generate MAX report ("MAX Generate Report.vi") from command line. Does nimax.exe have this capability, or do I have to write a wrapper to vi ?
Regards.
Solved!
Go to Solution.Dear ramjeev
to solve your problem you can try two aproaches
1. instal new verzion of MAX
you can download the newest verzion of MAX from the link
http://joule.ni.com/nidu/cds/view/p/id/2328/lang/en
This distribution includes the following products:
NI System Configuration 1.2.0
NI Measurement & Automation Explorer 4.8.0
NI Network Browser 1.1.0
2. clean up corrupted max database and start with new one
you have a step by step solution on the link
http://digital.ni.com/public.nsf/allkb/86256F0E001DA9FF86256FFD005B827C?OpenDocument
Hope it will help you. -
- I have a Product list box (asp.net) used as multiple selected values for a parameter.
- The Product ID is defined in the Oracle procedure as NUMBER data type.
- In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number. This is the code in my Record Selection Formula for the report:
({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
- In C#, this is my code
List<decimal?> productUnit = new List<decimal?>();
int counter = 0;
decimal prod;
for (int i = 0; i < lstProducts.Items.Count; i++)
if (lstProducts.Items[i].Selected)
if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
productUnit.Add((decimal?)prod);
counter++;
if (counter == 0)
productUnit.Add(-1);
ReportingDAO rDataFactory = new ReportingDAO();
retVal = rDataFactory.GetProductReport(productUnit);
public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
ReportLogon rptLog = new ReportLogon();
rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
retVal.SetParameterValue("p_product_id", productUnit);
I keep having the "Value does not fall within the expected range" when I debug. My question is, is the data type I used for procedure/Crystal report/ and C# correct ? I always have problem with the data type. Any help would be
appreciated
Thank youHi progGirl,
Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
http://forums.sdn.sap.com/forum.jspa?forumID=313
Thank you for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Invoking Forms 6i application from command line with parameters
Hi,
I have a java application that requires to start up and execute an existing Forms 6i application.
I am not a java person, and I could not find any help regarding this. If anyone knows how to execute an fmx(6i) from within a java application, then please let me know. The java application has to pass in parameters so that the the Forms application opens up with the correct data.
One alternative suggested was that the java application execute a command line invocation of the Forms application. I am looking for the correct and complete syntax to do this. The fmx can be invoked from the command line with the following entered at the dos prompt -
c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db>. This works fine and the Forms application is executed.
The requirement is to pass a couple of user defined parameters to the Forms application which can be used by it to query the database and display the correct information when it opens.
Any help on this would be greately appreciated.
Thanks
ShaileshShailesh,
Create a parameter in your form - eg. COUNTRY_CODE and add any startup code.
Then add the parameter to your command line (or put it in a *.bat file)
c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db> country_code=UK
JR -
How can I create a hashmap() with multiple values for the same key?
I am trying to write an application that will us something like a Map() with multiple values but some have the same key. Is this possible?
i had the same question. just create a List, add all the values u want to it, and then put the List into the map like u would a normal single value. e.g.
List list = new ArrayList();
list.add(value1);
list.add(value2);
map.put(key, list);
i bet u r doing the same course as i am =)
Maybe you are looking for
-
PlayBook not able to run "ScoreMobile" app after app update about 1 month back
Hello, need help with the scoremobile app. its worked great until the scoremobile app update came out. NOW when you attempt to use the app. a blank templet of scoremobile appers and no data or fuctions. it a great app and very important. I have attem
-
Is there an easy way to create an portfoliopage on my site?
I like to know how i can do this the best? Im not so good in Dreamweaver. this is my page where i like to put the portfolio in. Ive got a almost 10 documents wich i want to put on my page. i can make thumbnails from the documents for on the page. Loo
-
HT5312 The rescue email address is not correct. How do I change it?
I need to change my rescue email. How do I do it?
-
Since downloading yosemite my photoshop cs5 don't work!
this is the error I get. I have a mac mini 2013. (An unexpected and unrecoverable problem has occurred. Photoshop will now exit.)
-
Just joined cloud computing having trouble accessing premier pro ...help please
just joined cloud computing having trouble accessing premier pro ...help please