For the information you provide, it may be a good idea to a macro as a
function form. When it is called it returns a value. Be careful to
define Global macro var when you have a complicated program. Defining
Global macro vars as needed is always a good idea.
Here is an example.
54 %macro props(sp);
55 %if &sp.=AB %then 60;
56 %if &sp.=CD %then 36;
57 %mend props;
60 ***Program: test.mac;
63 %put >>>%props(AB)<<;
64 %put >>>%props(CD)<<;