 	select id || ' :: ' || frm from temp_doc_id_raw order by id;
 
 		select id || ' :: ' || frm from temp_doc_id_raw where id not in (select cf_variable from ssrch_field_doc@db_production) order by id;
+
+
+		delete from temp_doc_merge;
+
+
 
 		create table temp_doc_merge (
 			cfvar varchar2(4000),

		<cfquery name="c" dbtype="query">
			select * from d_raw where id='#cfvar#'
		</cfquery>
		<cfset in_docs="">
		<cfset in_code="">
		<cfif p.recordcount gt 0>
			<cfset in_docs=1>
		</cfif>

		<cfif c.recordcount gt 0>
			<cfset in_code=1>
		</cfif>
		<cfset used_in_frm="">
		<cfset rawtags="">

			)
		</cfquery>
	</cfloop>



	<!-----
