The following command example causes a -204 SQL error
.LIST SYSOUT(X)
.OPTION NOLOG ERRORS ROWLIMIT(999999) MAXCHAR(240)
.CONNECT XXXX
DECLARE GLOBAL TEMPORARY TABLE SESSION.CLNT_LIST
(CLNT_I INTEGER NOT NULL) ;
INSERT INTO SESSION.CLNT_LIST VALUES ( 100066051 ) ;
SELECT * FROM SESSION.CLNT_LIST ;
DSNT408I SQLCODE = -204, ERROR: SESSION.CLNT_LIST IS AN UNDEFINED NAME
DSNT418I SQLSTATE = 42704 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXOTL SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = -500 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'FFFFFE0C' X'00000000' X'00000000'
X'FFFFFFFF' X'00000000' X'00000000' SQL DIAGNOSTIC
INFORMATION
BPA0012E: DB2 SQL/DDL ERROR HAS OCCURRED - ROLLBACK ISSUED.
RETCODE = 8
Release : 20.0
Component : Batch Processor
invalid control options
Add THREADS 1 to the control statement
see below
.CONTROL THREADS(1)
DECLARE GLOBAL TEMPORARY TABLE SESSION.CLNT_LIST
(CLNT_I INTEGER NOT NULL) ;
INSERT INTO SESSION.CLNT_LIST VALUES ( 100066051 ) ;
SELECT * FROM SESSION.CLNT_LIST ;