update  categories 
set 
categories_image = '<@SDESCRIPTION@><@WGROUPID@><@EXT@>' ,
parent_id = <@PROCESS@>@select substring(IMP_EXTID from 6 for 12) from IMP_LINK where WGROUPID = <@WPARENTGROUP2ID@> 
and imp_sourceid = <@SOURCEID@> ##,
sort_order = <@WSORTNO@> ,
last_modified = now()
where categories_id = <@KEY@>