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



On 25-Jun-2015 08:04 -0600, Smith, Mike wrote:
<<SNIP>>

EXEC SQL
Declare OLDCURS Cursor for
Select OANAME,OAUSR,OAOBJA, OAOPR,OAOMGT,OAEXS,
OAREAD,OAADD,OAUPD,OADLT
From AUTLDETLM
where OANAME not in(:autllist);

<<SNIP>>

Given followup replies, perhaps worth noting, the Host Variable AutlList is a single character _value_ rather than a list [of values], and thus the IN predicate serves as a *synonym* for an equal predicate [same as an equivalence test using the = symbol\character]. The :AUTLLIST does *not* serve as a means to provide a list of comma-separated delimited values that would be interpreted by the SQL; to do that, use dynamic SQL where the SELECT statement is a string and the string of comma-separated asterisk-delimited values are appended after the 'IN (' and closed by the ')' concatenated after.

FWiW the scenario might best be explained by an example, because what is alluded makes little sense; e.g. if the Autl CMDQRY were deleted since the prior quarter, there would already be no entries in the Display Authorization List (DSPAUTL) output for the current quarter so there would be no reason to remove those entries except if OUTMBR(xx *ADD) was used, for which there are other unstated issues.


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.