Have a look at this code ...
SELECT
DECODE ( v_setor
,'1'
,DECODE(:b_controle.fil_filial, '16', 'MONT', '3', 'MONT', '30', 'MONT', 'MONT') <--- este!
,'2'
,'PRE'
,'3'
,'BORD'
,'4'
,'ATEL.'
,'5'
,'COST'
,'6'
,'CORTE')
INTO v_setor
FROM dual;
He checks .. if it is filial 16, it brings Mont ...
if it is of the subsidiary 3, it brings Mont ...
if it is of the subsidiary 30, Brings Mont ...
If it is not any of them ... Bring Mont !!!
Incredible !!!
EiHEHAEUAHEIUAHEIUA