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



Thx Rob, appreciate the feedback. Just my way of doing things.

That said, Vern is right, no commenting needed, just the CTL-R on the line to run.
Here's a nicer version of the SQL without all the fields and with a row counter.

From ACS SQL:

cl: DSPOBJD OBJ(*all/*ALL) OBJTYPE(*QRYDFN) OUTPUT(*OUTFILE) OUTFILE(abclib/x);
Select Row_Number() over (Order by ODLBNM, ODOBNM) as "Row #",
ODLBNM as "Lib Name", ODOBNM as "Query Name", ODOBTP as "Type", ODOBAT as "Attribute", ODOBTX as "Text"
From abclib.x


Very Respectfully,
Michael Mayer
IBM I on Power System Admin.
IT Operations.
The Florida Bar
651 E. Jefferson St
Tallahassee, Florida 32399-2300
mmayer@xxxxxxxxxxxxxx
https://www.floridabar.org
Office: 850.561.5761
Cell: 518.641.8906

to your reply and change the subject line so it is meaningful.


Today's Topics:

1. RE: SQL View for finding all QRYDFN ? (Rob Berendt)

----------------------------------------------------------------------

message: 1
date: Wed, 17 Feb 2021 19:28:40 +0000
from: Rob Berendt <rob@xxxxxxxxx>
subject: RE: SQL View for finding all QRYDFN ?

Vern,
I find that people coming from SQL Server stuff are seriously big into commenting out the lines.
Not sure if their origins don't have those options like Run SQL Scripts does or what.
Had a vendor Zoomed in and he was doing that on my PC to use SQL Server to update some files for GoAnywhere. It just seemed weird to me but I just let him fly.

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Vern Hamberg
Sent: Wednesday, February 17, 2021 2:18 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Re: SQL View for finding all QRYDFN ?

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


This works fine - you don't need to do all the commenting and
uncommenting - just position cursor in the statement you want to run and
use Ctrl-R, not Ctrl-A or Shift-Ctrl-R.

Now if you use Ctrl-I you will get all the examples - type 'object' in
the upper-left box and you'll see the services related to objects, from
which you should be able to adapt one for listing objects by type.


Regards

Vern

On 2/17/2021 12:48 PM, Mayer, Michael via MIDRANGE-L wrote:
I used this method. Seemed quick and painless. Might not be the best resolution though ...

Using ACS SQL:
Step 1 - uncomment the "cl:" stmt and run it.
--- cl: DSPOBJD OBJ(*all/*ALL) OBJTYPE(*QRYDFN) OUTPUT(*OUTFILE) OUTFILE(abclib/x);

Step 2 - comment out the "cl:" stmt.
- uncomment the "select" stmt and run it.
--- select * from abclib.x


Very Respectfully,
Michael Mayer
IBM I on Power System Admin.
IT Operations.
The Florida Bar
651 E. Jefferson St
Tallahassee, Florida 32399-2300
mmayer@xxxxxxxxxxxxxx
https://www.floridabar.org
Office: 850.561.5761
Cell: 518.641.8906

Please note: Florida has very broad public records laws. Many written communications to or from The Florida Bar regarding Bar business may be considered public records, which must be made available to anyone upon request. Your e-mail communications may therefore be subject to public disclosure.

3. SQL View for finding all QRYDFN ? (Matt Olson via MIDRANGE-L)
4. RE: SQL View for finding all QRYDFN ? (Rob Berendt)


----------------------------------------------------------------------

message: 3
date: Wed, 17 Feb 2021 17:26:01 +0000
from: Matt Olson via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: SQL View for finding all QRYDFN ?

Is there a SQL view that contains all the QRYDFN (Work Query saved querys) ?

Thanks!


------------------------------

message: 4
date: Wed, 17 Feb 2021 17:34:07 +0000
from: Rob Berendt <rob@xxxxxxxxx>
subject: RE: SQL View for finding all QRYDFN ?

Yes. Where did you search and which ones did you think might have been it?

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Matt Olson via MIDRANGE-L
Sent: Wednesday, February 17, 2021 12:26 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Matt Olson <Matt.Olson@xxxxxxxx>
Subject: SQL View for finding all QRYDFN ?

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


Is there a SQL view that contains all the QRYDFN (Work Query saved querys) ?

Thanks!
--
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@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


------------------------------

Subject: Digest Footer

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) digest 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@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


------------------------------

End of MIDRANGE-L Digest, Vol 20, Issue 217
*******************************************

________________________________
Please note: Florida has very broad public records laws. Many written communications to or from The Florida Bar regarding Bar business may be considered public records, which must be made available to anyone upon request. Your e-mail communications may therefore be subject to public disclosure.
--
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@xxxxxxxxxxxxxxxxxxxx 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.

This thread ...


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.