× 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.



We have created our own UDF called QCMDEXC.

IBM has a stored procedure called QCMDEXC. It's ok but it's not as easy
to execute from a select. Kinda requires a cursor. See:
http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzajq/rzajqprocqcmdexc.htm?lang=en-us

CALL has long been available and is another way to call QCMDEXC prior to
the arrival of the QCMDEXC stored procedure. This is what Chuck was
referring to in his post.

In addition to the stored procedure QCMDEXC that IBM has graciously
provided it would be really nice if they also provided a function for it
to allow examples like:

<snip>
Select * from qsys2.Retrieve_Journal_Receiver_Attribute
where Saved_Timestamp > Detached_Timestamp

And once you're satisifed with those results:

Select a.*, qcmdexc('DLTJRNRCV JRNRCV(' concat %trim(Receiver_Library)
concat '/' concat %trim(Receiver_Name) concat ')')
from qsys2.Retrieve_Journal_Receiver_Attribute a
where a.Saved_Timestamp > a.Detached_Timestamp
order by 1;

</snip>

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.