There are various programming styles. However, data-driven programming is the most versatile as it allows you to alter your programming flow and output based on the data values. One of the key built-in macro functions that can be utilized for data-driven programming is CALL SYMPUT. It assigns a value produced in a data step to a macro variable.
SYMPUT helps create the macro variable if it doesn't already exist. It makes a macro variable assignment when it executes. Hence, be careful when trying to reference the macro variable created by CALL SYMPUT. You might experience a failure to reference the macro variable as the macro variable is only assigned during the macro execution. Hence, you cannot use the macro variable reference to retrieve the value of a macro variable in the same program in which the macro variable is being created via SYMPUT. There...