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



Robert

Your select statement knows nothing about RPG variables or DS subfields - it is
completely local to the statement - same column names don't matter at all. Now
the thing you DO need is the host variables -- the ones where you use a colon
ahead of the names.

Were you getting an error or unexpected result, of is this just theory? Because
it is easier than I think you are making it.

HTH
Vern

-------------- Original message --------------
From: Robert Munday <rwmunday@xxxxxxxxxxxxx>

Tommy,


-----Original Message-----
From: Tommy.Holden@xxxxxxxxxxxxxxxxxxxxx

<<< use prefixes on the external DS... >>>

As I said before, that has not worked. Here is what I coded:

* Detail File
D PDTOTDTL E DS ExtName(PDTOTDTL) Prefix(D_)

C/Exec SQL
+ Select Count(D_QCORD#) Into :Count From FPTOTDTL
+ Where D_QCORD# = :$ORDER -- Count Order Records
C/End-Exec


This is the error it generates:

SQL0206 30 431 Position 23 Column D_QCORD# not in specified tables.
SQL0206 30 432 Position 17 Column D_QCORD# not in specified tables.

Is there an interim step or something I'm missing?



Robert Munday
Munday Software Consultants
Montgomery, AL
having SQL fun in Dublin, OH


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

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.