Do you want to put the string NR_BLH into the variable COLUNA?
So in normal SAS code you want to run the assignment statement:
coluna = "NR_BLH";
To use the macro variable instead of the literal text just replace NR_BLH with a reference to the macro variable, which in your macro is named CAMPO.
"&campo."
But later on you are also trying to use CAMPO (or really the string NR_BLH or DT_OCR_FATO) as part of the name of a variable:
WHERE ind_&CAMPO = 'F'
So do you have variables named IND_NR_BLH and COLUNA ?
... View more