Help using Base SAS procedures

Creating a folder using SysTask.

Reply
Contributor
Posts: 42

Creating a folder using SysTask.

Good Afternoon,

I am attempting to create a folder for my exports to be output.

I assumed that systask would do the trick and used the following code given that directories in DOS are created using MD.

systask command md "K:\HappyOutPut\&filedate." taskname=t01;
waitfor t01;
systask kill t01;

Does anyone have any ideas??

Regards,
Scott
Super User
Posts: 5,441

Re: Creating a folder using SysTask.

Posted in reply to Scottcom4
Shouldn't your md be within your quotes?
Also be ware if you have spaces in your search path, se note http://support.sas.com/kb/3/726.html.

/Linus
Data never sleeps
Respected Advisor
Posts: 4,173

Re: Creating a folder using SysTask.

Or just use dcreate:
NewDirectory=dcreate(DirectoryName,'/local/u/abcdef/');

http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002332693.htm
Ask a Question
Discussion stats
  • 2 replies
  • 209 views
  • 0 likes
  • 3 in conversation