BookmarkSubscribeRSS Feed
Xamius32
Calcite | Level 5

   This is a question that I probably cant get answered, but I am running a complicated algorithim with multiple do loops, that we are trying to make run over and over, dozens to hundreds of times with a macro. Anyways, part of this includes reading in matrixes with IML. We have noticed that after a certain number of times, about 10-15 iterations, some of the IML input datasets seem to get stuck and wont get saved over any more. My plan was to include a sql drop table statement at the end of the loop so it runs after each iteration ends, but the problem still persists. Basically it tells us the table cant be opened because another copy is open for output/update.

Basically, we have no idea why since it works perfectly for a while, after many iterations and rerunning of the macro, and then all of a sudden wont work. Is there a way to do a more forceful drop that will ignore such a warning and force any copies to be closed.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 573 views
  • 0 likes
  • 1 in conversation