Focal Point
[SOLVED] Running PL/SQL Procedure from WebFOCUS

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6087051876

August 31, 2015, 05:19 PM
Darryl Maraj
[SOLVED] Running PL/SQL Procedure from WebFOCUS
I searched through the forum but couldn't find a satisfactory answer on the following.

I have a PL/SQL procedure I want to execute before my report is ran. Basically:

begin
-- Call the procedure
dia.gat_rep_margin;
end;

I tried doing it but I get an SQLOUT problem. Any guidance?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.105
Windows/Server 2008 R2
HTML, Excel
September 01, 2015, 07:52 AM
MattC
Try this

 

SQL
CALL Procedure;
-RUN
 



WebFOCUS 8.1.05
September 01, 2015, 10:10 AM
David Briars
quote:
...Any guidance?

Our standard is to create metadata (.mas/.acx) for the stored proc.

Then do a TABLE FILE against the resultant metadata (e.g., TABLE FILE packname_spname).




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
September 01, 2015, 06:00 PM
Darryl Maraj
Thank you very much for all the suggestions.

@MattC I couldn't get the procedure to run using this method. I kept getting FOC errors.

@David Briars
Your suggestion was genius! First I didn't realize the Data Management Console would do metadata on procedures so that was a neat find!

Process for future reference:


Now I can schedule it with report caster and also include it into other WebFOCUS procedures.

Many Thanks!


WebFOCUS 8.105
Windows/Server 2008 R2
HTML, Excel