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



You need extra quote marks.  This got translated to
WHERE VARIABLE=AC7100P
when it should be
WHERE VARIABLE='AC7100P'

This is why it was looking for a column of AC7100P

Rob Berendt

==================
A smart person learns from their mistakes,
but a wise person learns from OTHER peoples mistakes.



                    "Kyle J. Rosling"
                    <krosling@glacierba       To:     "Midrange-L@Midrange. Com 
\(E-mail\)" <midrange-l@midrange.com>
                    ncorp.com>                cc:
                    Sent by:                  Fax to:
                    midrange-l-admin@mi       Subject:     strqmqry syntax?
                    drange.com


                    10/09/2001 04:43 PM
                    Please respond to
                    midrange-l






I have a query manager query that when I issue the command:
STRQMQRY QMQRY(mylib/myquery)
it prompts me for the variable needed then completes successfully.

But, if I prompt the command with F4 and set the variable name and variable
value it errors out:

STRQMQRY QMQRY(mylib/myquery) SETVAR((VARIABLE 'AC7100P'))
Column AC7100P not in specified tables.
RUN QUERY command failed with SQLCODE -206.
RUN QUERY command ended due to error.
STRQMQRY command failed.
STRQMQRY command failed.

Am I missing something? Is my syntax wrong?


------------Query source on V4R5------------
H QM4 05 Q 01 E V W E R 01 03 01/10/09 09:30
V 1001 050
V 5001 004 *HEX
SELECT
  ALL       VARIABLE, DSTID, DSTFRQ
  FROM      MYLIB/MYFILE T01
  WHERE     VARIABLE = &VARIABLE



_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
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-Ups:

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.