|
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;
58
59
60 ***Program: test.mac;
61
62
63 %put >>>%props(AB)<<;
>>>60<<
64 %put >>>%props(CD)<<;
>>>36<<
|