Help using Base SAS procedures

How to move file folder-to-folder

Reply
Occasional Contributor
Posts: 10

How to move file folder-to-folder

Hi Everyone

I am working on SAS Enterprise Guide.

As part of an automation work, I need to move some files from one folder to another folder.

SAS step used is:

options noxwait;
x ‘move c:\temp\*.txt c:\newtemp’;

When I run this step, I get following error:
ERROR: Shell escape is not valid in this SAS session.

Since Enterprise Guide I work on provides a client interface to log in to SAS server located remotely, I found from internet that SAS administrator disables windows cmd commands to avoid their misuses.

Please suggest me ways to move files.

Note: while I want to move, I want to make sure the "date modified" values of files do not change.

Appreciate your co-operation.

Thanks
Shankar
Super User
Posts: 10,514

Re: How to move file folder-to-folder

I would try placing that move command into a Windows command file and having the SAS X command execute that program.
Super Contributor
Posts: 356

Re: How to move file folder-to-folder

You need to enable EG (Workspace server) to perform x cmd's and os tasks. Message was edited by: twocanbazza
Contributor
Posts: 32

Re: How to move file folder-to-folder

I normally use PROC Datasets in SAS enhance editor .. I dont know if this is useful to you ..
Thanks
Ask a Question
Discussion stats
  • 3 replies
  • 1063 views
  • 0 likes
  • 4 in conversation