<og:query command="NEW" debug="{@debug}" notfoundMsg="">
		DELETE FROM GF02 
		WHERE SYSTEM_ID = '{@SYSTEM_ID}'
		AND   TBLSYU    = '{@TBLSYU}'
	<og:where startKey="and">
		<og:and value = "TABLE_NAME like '{@TABLE_NAME}%'" />
	</og:where>
</og:query>

<og:query command="NEW" dbid="{@DBID}" maxRowCount="100000">
		select TABLE_NAME,TABLESPACE_NAME,TABLE_NAME AS NAME_JA,
				1000 AS SKENSU,0 AS JKENSU,
				INITIAL_EXTENT/1024 AS INITIAL_EXTENT,
				NEXT_EXTENT/1024 AS NEXT_EXTENT,'' AS COMMENTS,
				'{@TBLSYU}' AS TBLSYU,'{@SYSTEM_ID}' AS SYSTEM_ID
		from USER_TABLES
		<og:where>
			<og:and value = "TABLE_NAME like '{@TABLE_NAME}%'" />
			<og:and value = "INSTR(TABLE_NAME,'$') < 1" />
			<og:and value = "TABLESPACE_NAME IS NOT NULL" />
		</og:where>
		order by TABLE_NAME
</og:query>

<og:tableUpdate
	command		= "ENTRY"
	queryType	= "JDBCTableUpdate"
	selectedAll = "true"
	displayMsg  = "MSG0040"
>
	INSERT INTO GF02
		(TBLSYU,TABLE_NAME,NAME_JA,SKENSU,JKENSU,TABLESPACE_NAME,INITIAL_EXTENT,COMMENTS,
		 SYSTEM_ID,INITIAL_AUTO,
		 FGJ,DYSET,DYUPD,USRSET,USRUPD,PGUPD)
	VALUES
		([TBLSYU],[TABLE_NAME],[NAME_JA],[SKENSU],[JKENSU],[TABLESPACE_NAME],[INITIAL_EXTENT],[COMMENTS],
		 [SYSTEM_ID],16,
		 '1','{@USER.YMDH}','{@USER.YMDH}','{@USER.ID}','{@USER.ID}','{@GUI.KEY}')
</og:tableUpdate>

<og:text>{@DB.COUNT}</og:text>

