Sets up standard directory structure

calls %create_directory
%macro create_new_study(studyid=aaa,root=%str(s:));
*%create root directory;
systask command
"md &root.\&studyid" taskname=cdi  status=dstat; waitfor cdi;

*%Create second level directories;
%create_directory(parent=&studyid,child=Raw IT Data Deliverable  Macro PM Stats Functions);

*%create raw and subdirectories;
%create_directory(parent=&studyid\raw,child=audit sasdata saxpt);
%create_directory(parent=&studyid\raw\audit,child=sasdata saxpt);

*%create IT directories;
%create_directory(parent=&studyid\it,child=adhoc imported);
%create_directory(parent=&studyid\data,child=imported);

*create deliverable subdirectories;
%create_directory(parent=&studyid\deliverable,child=docs adam derived sdtm tfl metadata);

%create_directory(parent=&studyid\deliverable\docs,child=ADaM Derived sdtm tfl);
%create_directory(parent=&studyid\deliverable\Adam,child=Production Validation);
%create_directory(parent=&studyid\deliverable\Adam\production,child=data programs output);
%create_directory(parent=&studyid\deliverable\Adam\validation,child=data programs output);
%create_directory(parent=&studyid\deliverable\adam\production\programs,child=log lst);
%create_directory(parent=&studyid\deliverable\adam\validation\programs,child=log lst);
%create_directory(parent=&studyid\deliverable\tfl,child=Production Validation);
%create_directory(parent=&studyid\deliverable\sdtm,child=Production Validation);
%create_directory(parent=&studyid\deliverable\sdtm\production,child=data programs output);
%create_directory(parent=&studyid\deliverable\sdtm\validation,child=data programs output);
%create_directory(parent=&studyid\deliverable\sdtm\production\programs,child=log lst);
%create_directory(parent=&studyid\deliverable\sdtm\validation\programs,child=log lst);
%create_directory(parent=&studyid\deliverable\tfl,child=Production Validation);
%create_directory(parent=&studyid\deliverable\tfl\production,child=data programs output);
%create_directory(parent=&studyid\deliverable\tfl\validation,child=data programs output);
%create_directory(parent=&studyid\deliverable\tfl\production\programs,child=log lst);
%create_directory(parent=&studyid\deliverable\tfl\validation\programs,child=log lst);
%create_directory(parent=&studyid\deliverable\metadata,child=sdtm adam tfl);
%mend;

* example call
%create_new_study(studyid=_test4);

%create_new_study(studyid=_test4);