Hi,
Nope, still not seeing the big picture here. I don't see why a simple conbine of the two datasets, and then generate some code would not work? What is the purpose of creating X amount of datasets for each loop as well, that doesn't seem to be an efficient way of working - it then means all your further code has to account for lots of datasets - extra work. As I say above collect your thoughts, what are the input datasets (all of them - examples) and what the output should look like. Me, I would create a set of flags in the one dataset for each "test", and then you only have one dataset to work with and selectable flags, but as I mention it is very hard to provide anything as we are only seeing bits and pieces.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.