@Lohia wrote:
Hi guys, there is one more thing i wanna discuss.
Problem: Code run to produce a summarized report for top 5 states on top 5 disease.
Currently i'm running 6 codes to produce these stats. One for, to find out the top 5 and then run on them and get whole summary(Using different values and parameter)
Then other 5 codes to generate seperate reports on 5 states(because they have different data/parameter values)
Now i wanna combine these to one, after running for whole i wanna store top 5 states values into a variable and wanna pass it to macro progamm to assign state value one by one and prodce results on different parameter values.
Any suggestion around this problem?
Thanks,
Suggestions:
1) Start a new thread. This question is much more complicated than this thread and deserves a separate thread
2) Post some example of the data you have, the code you are using and what the result looks like
Post data in the form of data step so we don't have to ask what types of values, variable type and such, and the example code all in code boxes using the forum {i} menu icon.
Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712 will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.
3) Likely approaches will involve having a data set that has some of the information related to how to process each state when needed such as dataset names, variables for which role. So you may think about setting that data set up as well if it does not already exist.
... View more