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



YOW!  This is really great, Rob.  I'm going to save this particular tip for
later use.  I have been stuck on numerous machines "without SQL" and could
have used this.

Joe


> -----Original Message-----
> From: rob@dekko.com
>
> Doug,
>
> You have an AS/400.  You are never limited to just Query.
>
> For example on a system with no SQL and no PDM:
> crtpf qtemp/db rcdlen(80)
> upddta qtemp/db
> Select iclas,iid,count(*)
> from iim
> group by iclas,iid
> having count(*)>1
> crtsrcpf qtemp/dbsource
> QSYS/CPYF FROMFILE(QTEMP/DB) TOFILE(QTEMP/DBSOURCE) FROMMBR(DB)
> TOMBR(DBSOURCE) MBROPT(*ADD) FMTOPT(*CVTSRC)
> CRTQMQRY QMQRY(QTEMP/DBSOURCE) SRCFILE(QTEMP/DBSOURCE)
> STRQMQRY QMQRY(DBSOURCE)
> Itm
> Cls  ID     COUNT ( * )
> ---  --  --------------
> 75   IM             30
> 76   IM             97
> ...



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.