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



Try GHENZA.FSHCNP instead of GHENZA/FSHCNP.

HTH,

Joe



On 1/17/2008 at 8:47 AM, in message
<OF1F71BA6E.B6695219-ON852573D3.004D1847-852573D3.0051361A@xxxxxxxxxxxxxx>,
<GUY_HENZA@xxxxxxxxxxxxxx> wrote:

First, thanks.
Second, I added the following to my CL;

CLRPFM FILE(GHENZA/FSHCNP)
QSH CMD('DB2 "INSERT INTO GHENZA/FSHCNP
(CNREP#, CNPLTS, CN$CAB, CNDESN)
SELECT DISTINCT
CNREP#, CNPLTS, CN$CAB, CNDESN
FROM NDSPRDFIL/FSHCNP"')

and I get;
**** CLI ERROR *****
SQLSTATE: 42703
NATIVE ERROR CODE: -206
Column CN not in specified tables.

Message . . . . : Column CN not in specified tables.
Cause . . . . . : CN is not a column of table *N in *N. If the table
is
*N,
CN is not a column of any table or view that can be referenced.
Recovery
.
. . : Do one of the following and try the request again: -- Ensure
that
the column and table names are specified correctly in the statement. --
If
this is a SELECT statement, ensure that all the required tables were
named
in the FROM clause. -- If the column was intended to be a correlated
reference, qualify the column with the correct table designator.


It works when I run it interactively...
Does it not like the CN$CAB field name? I tried to enclose it in double
quotes with the same results and it won't accept single quotes. Any
suggestions?

Regards,

Guy

Opinions expressed are my own and do not necessarily represent the views
of
my employer or anyone in their right mind.




rob@xxxxxxxxx




Sent by: To: Midrange
Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx>
midrange-l-bounces@m cc:


idrange.com Subject: Re: Can I
run an SQL statement inside a CL?




01/17/2008 08:38 AM

Please respond to

Midrange Systems

Technical Discussion









<snip>
QSH CMD('db2 "select * from lib.file FETCH FIRST 12 ROWS ONLY"')
</snip>

First, thanks.
Second, ...



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.