hey all,
i'm trying to run a QM query from a CLP, passing it replacement variables.
the manual only gives examples using replacement variable while comparing
to numeric fields - here is the sample they gave:
SELECT DEPT, NAME, JOB, SALARY, COMM
FROM &TABLE
WHERE DEPT > &COND1
ORDER BY DEPT, NAME
- dept is numeric, the replacement variable = '10'.
i'm trying to pass a char value ('CRI301'), and compare to an alpha field
in the file like this:
...
and ORIGORG = &A5
..or..
and ORIGORG = '&A5'
if I put quotes around the variable, it treats it as a constant and
compares the field to '&A5'.
if i don't put quotes, it replaces the value, but the sql interpreter
treats it as if it's a column in the file.
can someone tell me how this is done?
Thanks,
Rick