×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Joe,
I do not think it is already a table function.
Only the first one returns a row
select *
from qsys2.sysprocs
where routine_name = 'DISPLAY_JOURNAL_ENTRY_INFO';
select *
from qsys2.sysfuncs
where routine_name = 'DISPLAY_JOURNAL_ENTRY_INFO';
select *
from qsys2.sysviews
where table_name = 'DISPLAY_JOURNAL_ENTRY_INFO';
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Joe Pluta
Sent: Tuesday, February 12, 2019 2:11 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Re: Reading the results of a stored procedure with a UDTF and/or a view.
Actually, it's already a table function.
https://www.mcpressonline.com/programming/sql/practical-sql-more-db2-services
You should be able to CREATE VIEW AS SELECT * FROM TABLE() over that.
I think I just saw an article on this but I cannot find it.
Basically I want to use a UDTF and/or a view to read the results of
CALL qsys2.DISPLAY_JOURNAL_ENTRY_INFO ( 2, '#MXJRN', 'BPCS_ALL',
60988586, '#MXJRN','ALLRCV7518','R');
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.