<og:query command="{@command}" debug="{@debug}" dbid="{@DBID1}" maxRowCount="{@maxRowCount}" quotCheck="false" >
	select SYSTEM_ID,TBLSYU,CLM,count(*) as CNT,'1' as UNIQ
	from  GF05
	where SYSTEM_ID in ( '{@SYSTEM_ID1}','{@AST1}')
	and   TBLSYU    = '{@TBLSYU1}'
	and   FGJ       = '1'
	and   UPPER(CLM)  in ( {@CLMS} )
	and   FGCOM    != '8'
	group by SYSTEM_ID,TBLSYU,CLM
	order by CLM
</og:query>

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

<og:hidden name="names" value=",," />
<og:hidden name="SQL">
	UPDATE GF05 SET
			FGCOM     = '8',
			CDKH      = 'C',
			FGJ       = '1',
			DYUPD     = '{@USER.YMDH}',
			USRUPD    = '{@USER.ID}',
			PGUPD    = '{@GUI.KEY}'
	WHERE SYSTEM_ID = [SYSTEM_ID]
	AND   TBLSYU    = [TBLSYU]
	AND   CLM       = [CLM]
</og:hidden>
