BookmarkSubscribeRSS Feed
DonH
Lapis Lazuli | Level 10

I have a prior client who claims to be having trouble with running out of space when the AGE statement is processing in a PROC DATASETs step.

Since the AGE statement is just renaming datasets in an existing directory (and possibly deleting one), that does not make sense to me.

But I wonder if perhaps there is something about the order of the renames (e.g., adding the .lck suffix) that is somehow causing this.

Has anyone seen this as an issue?

6 REPLIES 6
ChrisNZ
Tourmaline | Level 20

That's weird.

 

Even is this is a concatenated library, no new data is created. What happens then is that tables may not get deleted as expected, but that does not use new space.

DonH
Lapis Lazuli | Level 10

It is not a concatenated library.

And I agree this is weird since new data is not being created.

 

Part of the path for the libname is a Unix shortcut. When running a PROC CONTENTS the path shown in the output is the redirected path. I have no idea if that is an issue as I am grasping at straws to figure this out.

 

LinusH
Tourmaline | Level 20
Try to get some facts, like a log with FULLSTIMER option activated. If you think that this can be caused by some setup in the file system, it would make sense if you could be seconded by an OS admin.
Data never sleeps
DonH
Lapis Lazuli | Level 10

I am trying to get some facts, including the log. This is a former client and I no longer have access to their file system and can't look for myself.

This is also production scheduled job which changes data. So rerunning it with other options like FULLSTIMER is not an option.

I don't believe this is a space issue. And I told my ex-client that. The sole reason for my question was to ask if others had ever experienced a space issue with PROC DATASETS.

ChrisNZ
Tourmaline | Level 20

What's the exact message indicating lack of space?

what's result of the df command on that space?

DonH
Lapis Lazuli | Level 10

As we all speculated, this was not a space issue. As I said in my original question, I was skeptical. The client insisted he was and asked me to check with other (thus my post).

 

They had space issues in the past and jumped to conclusions that the issue was space. I was finally able to get them to send me the log and the message is very clearly a rename error.

 

ERROR: Rename of temporary member for XXXXXXXXXXXXXXXXX_NEW.DATA failed.

 

This is a production job and the above data set was the first one listed. PROC DATASETS is used to replace the prior version with the one that has the _NEW suffix. The rationale being the data step to create the data set runs for a long time and to minimize the remote possibility of contention, the AGE statement is used which only locks the data set for a tiny fraction of a second.

 

AGE XXXXXXXXXXXXXXXXX_NEW XXXXXXXXXXXXXXXXX;

 

Once I got access to the log I told them that it was definitely not a space issue.

 

I have seen this error before (on Unix systems) and the cause at that time was the parent directory was set so files could be created or replaced, but not deleted. The error results because the XXXXXXXXXXXXXXXXX dataset could not be deleted so the XXXXXXXXXXXXXXXXX_BAK dataset could not be renamed.

 

So they are now off checking to see if the parent folder settings in their production environment were reset by someone.

Thanks to everyone for your responses. Once/if the client confirms the issue is the folder not allowing delete, I will update this thread.

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
  • 6 replies
  • 958 views
  • 1 like
  • 3 in conversation