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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 578 views
  • 0 likes
  • 1 in conversation