Hi David,
This works on our system...
SELECT DIGITS(myfield) || '_' || DIGITS(myotherfield) FROM
mytable
or
SELECT DIGITS(myfield) concat '_' concat DIGITS(myotherfield) FROM
mytable
Rest Begards
Wim
David FOXWELL <David.foxwell@xxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
18/06/2009 09:26
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc
Subject
SQL error causes all batch jobs to fail
Help!!
Just arrived to find that all our nightly jobs that used a particular
application ended in error when they tried to execute some SQL
instructions.
The program prepares a cursor from a request that is calculated, of this
type :
SELECT DIGITS(myfield)!!'_'DIGITS(myotherfield) FROM mytable
Each program gave the same error during preparation of the SQL statement :
Elément syntaxique ! n'est pas correct. Eléments possibles : + - AS
(hope the translation of that is obvious).
In an SQL greenscreen session, if I type the same with | instead of !, I
get the same error.
Now we have rerun manually one of the smaller jobs that ended in error and
it runs fine.
We can't see any changes that have been made to cause the error.
Could something in the system cause the job to interpret differently the
SQL syntax at night ( submitted automatically ) to the one we just ran
manually?
We have a load of jobs to rerun, and we don't know if they'll run OK
tonight or not.
Anyone got any clues as to what might have happened?
Thanks.