Gracias por seguir contestando BrujoNic.
Mira la tabla se llama "JOB" y el Campo a evaluar se llama "ACTION"
Lo que pongo acontinuacion son las condiciones:
Si JOB.ACTION = HIR entonces Action Code = A
Si JOB.ACTION = XFR con (action_Reason = OVR o Reason = BGA) entonces
Action Code = A
Si JOB.ACTION = TER entonces Action Code = D
Si JOB.ACTION
(distinto de POS y
distinto de HIR y
distinto de (XFR con (ACTION_REASON = OVR o ACTION_REASON = BGA) ) entonces
Action Code = C
y por ejemplo yo interpreto asi la primer linea
Si JOB.ACTION (osea la tabla.campo)tiene el valor "HIR" entonses la variable "Action code" Tendra un valor de "A"
No se si me aya explicado