SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
rileyd
Quartz | Level 8

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

2 REPLIES 2
ArtC
Rhodochrosite | Level 12

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.

rileyd
Quartz | Level 8

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!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1188 views
  • 0 likes
  • 2 in conversation