Use a String For a Variable name and convert Dictionaries to DataFrames

do you have a SAS background or something? wondering why u r using a macro. I didn’t read the code as it’s too long.

If you can simplify your problem and make an Minimal Working Example by following this guide

An example is this really easy to follow post on how to ask question to maximize the chances of getting help:

For me, the original is too long and the code is too long. So I just switched and don’t wanna do it. I’d say, the more prep work you do the more likely you will get help in a timely manner.