DATA Step, Macro, Functions and more

Do I need to Delete a Hash Table when I'm done with it?

Reply
Contributor
Posts: 22

Do I need to Delete a Hash Table when I'm done with it?

Just a quick question on Hash tables. I'm currently using some Hash tables in a Data step. Do I need to delete the Hash tables (i.e. h1.Delete() ) before the Run statement of my Data step in order to release the memory my Hash table is using or is the Hash table automatically deleted from memory once the Data step finishes processing. Just trying to understand if I need to cleanup the Hash tables myself to release the memory they're using or if the Data step does it for me.

Thanks!

-Andrew

Valued Guide
Posts: 634

Re: Do I need to Delete a Hash Table when I'm done with it?

My understanding is that the table is cleared from memory when the DATA step is terminated.  I have not heard of any memory bleeds or any that there would be any improvement in the memory clean up by first deleting the hash object.

Contributor
Posts: 22

Re: Do I need to Delete a Hash Table when I'm done with it?

Thanks Art! That's what I was hoping.

How do I mark this as correct? I can't seem to find a way to do that!

Ask a Question
Discussion stats
  • 2 replies
  • 214 views
  • 0 likes
  • 2 in conversation