Is your 5GB dataset compressed by any chance? Any time a compressed dataset is recreated typically it has to be decompressed and that includes any associated indexes. The SASUTIL folder is typically where this happens and depending on the compression ratio the utility files can blow out several times larger than the original dataset, but are deleted once the recreation process is complete.
The general recommendation when doing updates/appends to a table with indexes, drop the index and recreate after the update/insert operation.
I think the reason is that SAS needs to update the index record by record during an update, whereas a create index operation can do a single sort through operation. I think this applies to your scenario as well.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.