Hi everyone,
I'm trying to use the db2 api on c++ to do an inplace reorg, here is my code :
Code:
struct sqlca sqlca;
activateConnection();
ds << "Reorganizing table " << tableName << "...";
ds.endlds();
db2ReorgStruct paramsTableReorg;
memset(¶msTableReorg, '\0', sizeof(paramsTableReorg));
paramsTableReorg.reorgObject.tableStruct.pTableName = (char*)tableName.c_str();
paramsTableReorg.reorgObject.tableStruct.pOrderByIndex = NULL;
paramsTableReorg.reorgObject.tableStruct.pSysTempSpace = NULL;
paramsTableReorg.reorgType = DB2REORG_OBJ_TABLE_INPLACE;
paramsTableReorg.reorgFlags = DB2REORG_START_ONLINE | DB2REORG_ALLOW_WRITE;
paramsTableReorg.nodeListFlag = DB2REORG_ALL_NODES;
paramsTableReorg.numNodes = 0;
paramsTableReorg.pNodeList = NULL;
int rc = db2Reorg(db2Version812, ¶msTableReorg, &sqlca);
API_SQL_CHECK("Error reorganizing table " + tableName);
So, I keep getting this error : "SQL2032N The "" parameter is not valid."
I've been looking on google a lot and I can't find anything on that error using the db2Reorg API...