I'm a new user to SAS and am in the process of updating someone elses code, for the most part no issues, except this one which has left me puzzled. I'm running a data step that is adding new fields (only showing one in my example) and applying a formats run earlier as part of a Proc Format process.
Issue: When the process runs, only one of the formats is pickedup. Meaning, all records regardless of bsnss_unt_id get the same format . . . any help would be appreciated
naalr_bnd = naalr_scr;
/* groups naalr band */
if bsnss_unt_id = 702 then do;
format naalr_bnd naalrs.;
else if bsnss_unt_id = 803 then do;
format naalr_bnd naalra.;