Sample 49768: SAS® Drug Development 3.5 Remote API Build 102 Macros - Change versioning in a folder
The code in the Full COde tab illustrates how to change versioning in a SAS® Drug Development 3.5 folder.
Note, the Remote API and Remote API Macros for SAS® Drug Development 3.5 must be installed.
Download site for SAS® Drug Development Remote API Build 102
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
data _null_;
   call symput('_sddremote_',strip(tranwrd("&_sdddav_",'/webdav','/sddremote')));
run;
/* Log on */
%sasdrugdev_login(url=&_sddremote_,sdduserid=&_sddusr_,sddpassword=%nrbquote(&_sddpw_));
/* List the contents of the root folder */
%sasdrugdev_getobjects(sddpath=/SDD/Users/<Your User Name>/_ouput/template, recursive=false,typeDef=*,dsname=work._getobjects_,recursiveLevel=1);
proc print data=work._getobjects_;
title "List of Objects in /SDD/Users/<Your User Name>/_ouput/template";
run;
data num_obs;
   set work._getobjects_;
   if iscontainer ne 1;
run;
data f_objs;
   set num_obs;
   call symput('fpn'||left(_n_),trim(fullpathname));
   call symput('num_f',left(_n_));
run;
%macro loop;
   %do i = 1 %to &num_f;
      %SASDRUGDEV_SETFILEVERSIONING(SDDPATH=&&fpn.&i);
   %end;
%mend loop;
/* Log out */
%sasdrugdev_logout;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
SAS® Drug Development 3.5 Remote API Build 102 Macros - Change versioning in a folder
| Date Modified: | 2014-01-31 11:25:10 |
| Date Created: | 2013-04-26 14:23:02 |
Operating System and Release Information
| SAS System | SAS Drug Development | Microsoft Windows XP 64-bit Edition | | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | | |
| Microsoft® Windows® for x64 | | |
| Microsoft Windows 8 | | |
| Microsoft Windows XP Professional | | |
| Windows 7 Enterprise 32 bit | | |
| Windows 7 Enterprise x64 | | |
| Windows 7 Professional 32 bit | | |
| Windows 7 Professional x64 | | |
| Windows 7 Ultimate 32 bit | | |
| Windows 7 Ultimate x64 | | |
| Windows Vista | | |
| Windows Vista for x64 | | |