Maybe someone will know the answers to these questions. We've found recently that there are a few differences in syntax between Queryman and BTEQ. The two most recent ones being:
1. Queryman does not support a "with" clause:
examp:
sel some_nbr
from some_tbl
with sum(some_nbr);
Queryman returns an error <WITH clause not supported. Ignored statement 1>
BTEQ runs the query no problems
2. substring function
examp:
sel substring(some_string,1,5)
from some_tbl;
queryman runs this query no problem
BTEQ will not run until the sel statement is changed to -
sel substring(some_string from 1 for 5)
These are the recent one's we've found. Does anyone know why this happens? (different parsers is my guess) Is there a list which contains the syntax differences between the two products?
(The problem we're running into, is we test individual modules in Queryman, due to ease of use and speed, then combine modules that have run successfully into a batch job to run under BTEQ. Some of these jobs run in excess of 12 hours, so if the job "blows up" at any point during the batch run, the whole process must be reaccomplished)
Any help or suggestions would be greatly appreciated.
1. Queryman does not support a "with" clause:
examp:
sel some_nbr
from some_tbl
with sum(some_nbr);
Queryman returns an error <WITH clause not supported. Ignored statement 1>
BTEQ runs the query no problems
2. substring function
examp:
sel substring(some_string,1,5)
from some_tbl;
queryman runs this query no problem
BTEQ will not run until the sel statement is changed to -
sel substring(some_string from 1 for 5)
These are the recent one's we've found. Does anyone know why this happens? (different parsers is my guess) Is there a list which contains the syntax differences between the two products?
(The problem we're running into, is we test individual modules in Queryman, due to ease of use and speed, then combine modules that have run successfully into a batch job to run under BTEQ. Some of these jobs run in excess of 12 hours, so if the job "blows up" at any point during the batch run, the whole process must be reaccomplished)
Any help or suggestions would be greatly appreciated.