in MS-SQL I can do something like this
@myVar AS int;
@myVar = 12;
SELECT * FROM table WHERE field = @myVar;
this totally bombs out in DB2 - and I'm not sure if it's RDBMS specific or if it's because I've FUBAR'd the syntax...
Any help is appreciated