I created a script in which I create a stored procedure in which I use an instruction
CREATE GLOBAL TEMPORARY TABLE ...
and then I perform operations on the tables
I use RUNSQLSTM command to execute script:
if the temporary table does not exist RUNSQLSTM return error TABLE xxx not found and the stored procedure is not created
if I create temporary table in QTEMP and I execute script the command ends successfully and the stored procedure is created
is there a way in which I don't have to create the temporary table first ?
Try setting the ERRLVL parameter of RUNSQLSTM higher?
--buck
I created a script in which I create a stored procedure in which I use an instruction
CREATE GLOBAL TEMPORARY TABLE ...
and then I perform operations on the tables
I use RUNSQLSTM command to execute script:
if the temporary table does not exist RUNSQLSTM return error TABLE xxx not found and the stored procedure is not created
if I create temporary table in QTEMP and I execute script the command ends successfully and the stored procedure is created
is there a way in which I don't have to create the temporary table first ?
Thanks
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:42:46 |
Calls: | 6,642 |
Calls today: | 2 |
Files: | 12,190 |
Messages: | 5,325,856 |