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



Hello,

A co-working and I set up some SQL in Operations Navigator to delete
duplicate records leaving the first duplicate record intact in a file.
Works fine in Operations Navigator and Planet Java's WOW Tool. But when I
run it from the iSeries Command Line via STRSQL or RUNSQLSTM it fails to
run. I wish to put this job in the Advanced Job Scheduler to run once a day
looking for Dups. Below is the code and the generated error message. Any
help would be appreciated. We are running V5R4 on our iSeries if that
matters.




5722SS1 V5R4M0 060210 Run SQL Statements DELDUPS

Record *...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+...
7
1 DELETE FROM HORVATAL/SHIPMENTS

2 WHERE TRACK00002 > ' ' AND TRACK00002 IN (

3 SELECT TRACK00002 FROM HORVATAL/SHIPMENTS

4 GROUP BY TRACK00002

5 HAVING COUNT(RRN(HORVATAL/SHIPMENTS)) > 1)

6 AND NOT RRN(HORVATAL/SHIPMENTS) IN(

7 SELECT MIN(RRN(HORVATAL/SHIPMENTS)) AS MINID FROM
HORVATAL/SHIPMENTS
8 GROUP BY TRACK00002

9 HAVING COUNT(RRN(HORVATAL/SHIPMENTS)) > 1)

* * * * * E N D O F S O U R C E * * * *
*
SQL5001 30 5 Position 22 Column qualifier or table SHIPMENTS

undefined.









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.