<og:query command="{@command}" debug="{@debug}" dbid="{@DBID1}" maxRowCount="{@maxRowCount}">
	select '1' WRITABLE, A.TABLE_NAME CLM,A.NAME_JA,0 UNIQ,SYSTEM_ID
	from GF02 A
	where A.SYSTEM_ID in ( '{@SYSTEM_ID1}','{@AST1}')
	and   A.TBLSYU    = '{@TBLSYU1}'
	and   A.FGJ       = '1'
	order by A.TABLE_NAME
</og:query>

<og:query command="{@command}" debug="{@debug}" dbid="{@DBID2}" maxRowCount="{@maxRowCount}" scope="request">
	select '0' WRITABLE, A.CLM, A.NAME_JA, A.UNIQ,SYSTEM_ID
	from GEA08 A
	where A.SYSTEM_ID in ( '{@SYSTEM_ID2}','{@AST2}')
	and   A.LANG      = 'ja'
	and   A.FGJ       = '1'
	ORDER BY A.CLM
</og:query>

<og:tableMerge
	action        = "DIFFERENCE"
	masterScope   = "session"
	masterKeys    = "CLM"
	diffKeys      = "CLM,NAME_JA"
	slaveScope    = "request"
	modifyClms    = "UNIQ"
	display       = "true"
/>

<og:value key="lblKey" value="A" />

<og:hidden name="SQL">
	UPDATE GEA08 SET
			NAME_JA   = [NAME_JA],
			DYUPD     = '{@USER.YMDH}',
			USRUPD    = '{@USER.ID}',
			PGUPD    = '{@GUI.KEY}'
	WHERE SYSTEM_ID  = '{@SYSTEM_ID2}'
	AND   CLM        = [CLM]
	AND   KBSAKU     != '0'
</og:hidden>
