I'm trying to functionise some of my SAS operations
I have a bunch of tables which all have the same index (id) and the same number of rows
Each time I call the function that I want to write, the number of tables can differ. I intend to store the names of the tables in a dataset to loop over them. Sometimes there will only be 3 tables, but sometimes there could be hundreds
How do I write an automatic join to all the tables, but only keep one column of the "ID" - the ID exists in all tables so I would like to drop them all apart from the first table I join