BookmarkSubscribeRSS Feed
abhityagi
Obsidian | Level 7

Hi Team,

 

Given below Unix command is not working in SAS eg  with X command. Rest all commands are working fine instead of "archive". Archive is not functioning whenever I am trying to do with SAS eg. However, following command is working fine when I use with the unix editor. Please suggest any solution.

 

find -type f -not -name '*.txt' -mtime +30 -printf '%P\n' | xargs archive

 

Thanks,

Abhishek

2 REPLIES 2
Reeza
Super User
Is XCMD enabled? It's usually off by default.

Run the following and check your log.
proc options option=xcmd;
run;
Tom
Super User Tom
Super User

I don't think archive is an internal command for any Unix shell that I know of.

Perhaps the search path for the Unix session that is running your SAS session does not include the folder where archive command lives?

What does the archive command do? Does it need to interact with a terminal?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 593 views
  • 3 likes
  • 3 in conversation