Hi, Is there any SHORTER way of writing the below piece of code %if &dsn. = pavan and (%substr("&ym.",6,2) = 02 or %substr("&ym.",6,2) = 03 or %substr("&ym.",6,2) = 05 or %substr("&ym.",6,2) = 06 or %substr("&ym.",6,2) = 08 or %substr("&ym.",6,2) = 09 or %substr("&ym.",6,2) = 11 or %substr("&ym.",6,2) = 12) %then %do; Here ym and dsn are macro variables.
... View more