Select uco_rcode as ACK_RESOLUTION,uco_desc as ACK_RESOLUTION_DESC from
r5ucodes where uco_rentity='RSLT' and
(case when <param.ACK_OK>='+'  then uco_rcode='AM'
 when <param.ACK_REPAIRSNEEDED>='+' then uco_rcode !='AM' else uco_rcode is null end)
order by  uco_desc
