Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass parameter from flat file (.txt) into query where clause 1

Status
Not open for further replies.

young01

Programmer
Dec 17, 2003
4
US
My first detailed report!!! I have a text file that contains SSNs. I need to pass the SSN to my "where" clause and run the report individually for each SSN. Anyone with ideas on how to do this? Also, can anyone send me details on how to do a 2 page report? My first page contains data from oracle table, second page is just static text. Any help is greatly appreciated.
 
Two pages: put the first page to the main section, the second one to the trailer section.
SSN: create a simple report ( they call it driver report in Oracle Reports) that would call in loop another report and pass each SSN as parameter.
For the first report you may use one of the report triggers (for example, before report trigger) and put your PL/SQL code there that would read the text file and create a loop. You can call your SSN report in the loop using SRW.RUN_REPORT procedure.
 
Am still having a few problems with reading text file and looping. Does anyone have example of pl/sql coded text file read?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top