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



If you are looking for a "Service" that allows you to analyse
Service-Programs, Modules and Programs ....

I've written a bunch of UDTFs.
If you download our WOPiXX-Package which is indeed free (i.e. no charge) and
which is primarily a software package that allows RPG programmers to develop
web applications without knowing anything about HTML, JavaScript, stateless
Programming, you'll get those UDTFs
WOPiXX consists of 2 schemas/libraries. WOPIX includes everything that is
necessary for the web-programming.
DIRWEB includes everything that can be used everywhere.
Within this DIRWEB schema you'll find a lot of UDTFs (mostly wrappers around
the list APis).

For example: Select * from Table(DWSPGL0600('DWCVT*', 'MYLIB')) x
Will return all exported procedures from all service programs beginning with
DWCVT in the MYLIB schema.

And: Select Distinct SRVNAME, SRVMOD from Table(DWSPGL0100('DWCGI*',
'MYLIB')) x
Where SRVDBase > ''
Will return all Modules within the Service-Programs beginning with DWCGI in
the MYLIB Schema that include embedded SQL.

... as said WOPIXX is free (and includes the DIRWEB schema, so can use all
those UDTFs - even though you may not find a detailed documentation )
http://www.wopixx.com/en/downloads


Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Rob
Berendt
Gesendet: Wednesday, 23.3 2016 20:04
An: Midrange Systems Technical Discussion
Betreff: RE: Find programs and service programs that contain embedded SQL

Some of these services do a pretty good job of masking the complexity of
getting the information, such as the suggested sysprogramstat.
Some of them have a performance advantage of doing it on your own as IBM has
access to internals and might be able to bypass calling an intermediate API
that you and I would have to do instead.
Some of them still run for a long period of time because, while masking the
complexity to you or I, there is still a lot of work to be done.

Some just take an unwieldy amount of time. And, if there's the slightest
chance that you may want to rerun it (like clean up a where, add an order
by, select different columns, etc) then you may want to reevaluate previous
methods. For example Display_Journal vs copying the journal to an output
file and querying that.

I'm not sure where sysprogramstat fits as I didn't end up running it myself.

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





From: Matt Olson <Matt.Olson@xxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 03/23/2016 02:52 PM
Subject: RE: Find programs and service programs that contain
embedded SQL
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



I tried running this, but after about 3.5 minutes of processing gave up.

Is it usually pretty slow to run?

-----Original Message-----
From: Charles Wilt [mailto:charles.wilt@xxxxxxxxx]
Sent: Wednesday, March 23, 2016 1:47 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Find programs and service programs that contain embedded SQL

Sue,

Now that's what I was looking for...

Thank you!

Charles


On Wed, Mar 23, 2016 at 11:35 AM, Sue Romano <slromano@xxxxxxxxxx> wrote:

How about querying QSYS2.SYSPROGRAMSTAT:
The SYSPROGRAMSTAT view contains one row for each program, service
program, and module that contains SQL statements.

Is there some way to identify programs or service programs which have
modules that use embedded SQL?

Thanks!
Charles>


Sue Romano
IBM i SQL Development


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


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.