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


  • Subject: RE: Query
  • From: Roger Boucher <RBoucher@xxxxxxxxxxx>
  • Date: Thu, 3 Jun 1999 10:04:26 -0700

YAY!!!  That's it!!!  Thank you so very much Buck.  Now, when IBM calls
me back again with their next suggestion (it's been about three days now
and they've suggested a few different things that didn't work) I will
tell them to give you a call and you can 'splain it to them.

THANK YOU
   =)


-----Original Message-----
From: Buck Calabro [mailto:mcalabro@commsoft.net]
Sent: Thursday, June 03, 1999 6:27 AM
To: 'MIDRANGE-L@midrange.com'
Subject: RE: Query


Roger,

I think the quotes are the problem.  You have a numeric column in your
table
(PDDOCO) and you're comparing it to a character literal ('00001438')
Try
dropping the quotes from your numeric parameter and passing a string
that
just contains the digits, not the quotes: CHGVAR &DOCO &PSOPT1  Think of
how
it looks to the parsing engine: WHERE 1438 = '00001438'  That's how I
tend
to get them straight (mostly!)

>             DCL        VAR(&PSOPT1) TYPE(*CHAR) LEN(8)
>             DCL        VAR(&PSOPT2) TYPE(*CHAR) LEN(2)
>             DCL        VAR(&QUOTE) TYPE(*CHAR) LEN(1) VALUE('''')
>             DCL        VAR(&DOCO) TYPE(*CHAR) LEN(10)
>             DCL        VAR(&DCTO) TYPE(*CHAR) LEN(4)
>             CHGVAR     VAR(&DOCO) VALUE(&QUOTE *CAT &PSOPT1 *CAT +
>                          &QUOTE)
>             CHGVAR     VAR(&DCTO) VALUE(&QUOTE *CAT &PSOPT2 *CAT +
>                          &QUOTE)
>             STRQMQRY   QMQRY(LINEONE) SETVAR((DOCO &DOCO) (DCTO +
>                          &DCTO))
>
>HERE IS THE QMQRY SOURCE...  (NOTE:  PDDOCO is numeric)
>
>SELECT PDDOCO, PDDCTO, PDSFXO, PDOBJ, PDSUB, PDSBL,
>       PDURRF as Plan, PDPDS2 as Elev
>FROM F4311
>WHERE PDDOCO=&DOCO and PDDCTO=&DCTO and PDLNID=1

Buck Calabro
Billing Concepts Albany, NY
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.