|
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("E) TYPE(*CHAR) LEN(1) VALUE('''') > DCL VAR(&DOCO) TYPE(*CHAR) LEN(10) > DCL VAR(&DCTO) TYPE(*CHAR) LEN(4) > CHGVAR VAR(&DOCO) VALUE("E *CAT &PSOPT1 *CAT + > "E) > CHGVAR VAR(&DCTO) VALUE("E *CAT &PSOPT2 *CAT + > "E) > 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 +---
As an Amazon Associate we earn from qualifying purchases.
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.