I'm guessing that the section "pcl.clec_dspch_type_cd = ''ZZZZZZ''" is only there so that the else clause would fire when code ZZZZZZ does not appear. Its way to filter the logic based on the data.