Never used forums before and this may be pretty easy but I am struggling with this at the moment. Any suggestions are appreciated. Currently Using SAS Studio but might be moving to SAS VIYA in future. I have an inventory of ~100k records that I am joining/merging with another table. The time it takes to run the query is exceeding the allowed amount of time to run against the data tables and the program is being aborted as a result. My goal, is to split my inventory into smaller inventory files of ~10K records and run the query multiple times and set the results back together upon completion. If the record count was the same each time, I could just hard code it. However, the inventory record count could vary daily. Inventory - 111,000 INV_1 = 10k INV_2=10k ... INV11=1K If 1st 10K records, Join FILE_A with INV_1 If 2nd 10K records, Join FILE_A with INV_2 ... If within Last 10k records(1000 in generic example), Join File_A with INV_11 Data final; set INV1, IN2, ...INV11 run; Like I said, I believe this probably pretty easy but cannot think through this. I'll probably dream up a way to code it but struggling at the moment and not very good with macros. Thanks for any assistance you can provide.
... View more