Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
kakooo16
Creator
Creator

tDBrow doesn't support ';' ?

Hello ,

Im trying to execute this sql query :

0695b00000EbPLdAAN.png

and its throwing me this error :

Exception in component tDBRow_1 (SQL_File)

java.sql.SQLException: [SQL0104] El{ment syntaxique ; n'est pas correct. El{ments possibles : <FIN-INSTRUCTION>.

at com.ibm.as400.access.JDError.throwSQLException(JDError.java:705)

i think that this componnent with this particular database AS400 is not supporting ';' ?

Thanks

Labels (2)
25 Replies
Prakhar1
Creator III
Creator III

try to execute without ";"

kakooo16
Creator
Creator
Author

yes i tried it it throws an error in Declare

kakooo16
Creator
Creator
Author

here is my query

SET SCHEMA M3FDBSBX ;

DECLARE global temporary table xVariables

(

  x numeric(3),

y varchar(3),

z numeric(8),  

w numeric(8)   

)

with replace ;

gjeremy1617088143

Hi, maybe try to escape them :

\; instead of ;

Send me Love and Kudos

kakooo16
Creator
Creator
Author

Hello jeremy ,

 

I've tried that but always same error now im getting

[SQL0104] Elément syntaxique \ n'est pas correct. Eléments possibles : <FIN-INSTRUCTION>.

 

kakooo16
Creator
Creator
Author

when i get rid of the ; im getting an error in the second line Directly

gjeremy1617088143

ok je crois que je l'ai, c'est parce que j'imagine qu'il faut envoyer une instruction a la fois sans le ;

donc dabord le declare puis dans un autre dbrow la suite.

Il doit y avoir moyen de tricher en regardant comment le code est généré.

bien à vous

gjeremy1617088143

dans advanced settings du TDBRow

Additionnal JDBC Parameters :"allowMultiQueries=true"

ca devrait résoudre le problème.

kakooo16
Creator
Creator
Author

merci pour ton retour rapide ,

Toujours pas .

Mais par contre le faite de splitter les queries dans des différents tdbrow fonctionne et ce que j'essaye de pas faire dés le début .