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?

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
  • 1013 views
  • 3 likes
  • 3 in conversation