<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bulk Download all my files from SAS Ondemand in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714194#M622</link>
    <description>&lt;P&gt;I just did a test run on my On Demand account; I only replaced the base paths (/folders/myfolders) with the path to my On Demand home directory, and successfully created a zip file with the .sas program files that I have there.&lt;/P&gt;
&lt;P&gt;Everything worked fine, I could extract the two .sas files after downloading to my laptop.&lt;/P&gt;
&lt;P&gt;Please take a close look at your log; for each .sas file found, you should have this from the ZIP step:&lt;/P&gt;
&lt;PRE&gt; NOTE: CALL EXECUTE generated line.
 1         + data _null_; infile "/home/XXX/programs/zip_all.sas"; file out("/home/XXX/programs/zip_all.sas"); 
 input; put _infile_; run;
 
 NOTE: The infile "/home/XXX/programs/zip_all.sas" is:
       Dateiname=/home/XXX/programs/zip_all.sas,
       Besitzername=XXX,Gruppenname=oda,
       Zugriffsberechtigung=-rw-r--r--,
       Zuletzt geändert=26. Jänner 2021 09.39 Uhr,
       Dateigröße (Byte)=312
 
 NOTE: The file library OUT is:
       Directory=/home/XXX/all.zip
 
 NOTE: The file OUT("/home/XXX/programs/zip_all.sas") is:
       Filename=/home/XXX/all.zip,
       Member Name=/home/XXX/programs/zip_all.sas
 
 NOTE: 18 records were read from the infile "/home/XXX/programs/zip_all.sas".
       The minimum record length was 0.
       The maximum record length was 62.
 NOTE: A total of 18 records were written to the file library OUT.
       The minimum record length was 0.
       The maximum record length was 62.
 NOTE: 18 records were written to the file OUT("/home/XXX/programs/zip_all.sas").
       The minimum record length was 0.
       The maximum record length was 62.
&lt;/PRE&gt;
&lt;P&gt;(home path redacted)&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 08:46:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-01-26T08:46:38Z</dc:date>
    <item>
      <title>Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/712727#M613</link>
      <description>&lt;P&gt;I taught my class last semester using SAS Ondemand and now I want to download all the files we used to archive them.&amp;nbsp; Please tell me I do not have to click on each file one at a time.&amp;nbsp; I have spent time looking but have yet to find away to download all my files from SAS Ondemand to my local machine without clicking each one.&amp;nbsp; My question is, how can one download all ones files from SAS Ondemand for Academics without having to download them one at a time?&amp;nbsp; I am a professor and I was using SAS studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 19:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/712727#M613</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-20T19:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/712884#M614</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38972"&gt;@LauraRK&lt;/a&gt;&amp;nbsp;. I hate to be the bearer of bad news. There isn't a facility to do this right now. I'm sorry.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Randy&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 20:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/712884#M614</guid>
      <dc:creator>RandyMullis</dc:creator>
      <dc:date>2021-01-20T20:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713037#M615</link>
      <description>&lt;P&gt;Thank you Randy.&lt;/P&gt;&lt;P&gt;I asked in the programming section if there is away to zip directories and keep directory structures.&amp;nbsp; Given I am teaching I set up examples and exercises in lots of folders.&amp;nbsp; I wish I had realized this earlier as I would never have used SAS OnDemand to set up the class.&amp;nbsp; I would have just kept everything local.&amp;nbsp; This is a pretty big workflow challenge.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 11:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713037#M615</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-21T11:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713038#M616</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree, Laura, it's a big need. The operations team tells me it's on their futures list. I think it would be a great challenge for a good SAS programmer. I've seen several programs that do this, but not in the kind of robust way that would be generally usable. I'm sorry this is an obstacle for you. Best to you in your upcoming teaching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Randy&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 12:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713038#M616</guid>
      <dc:creator>RandyMullis</dc:creator>
      <dc:date>2021-01-21T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713049#M617</link>
      <description>I think other potential ways would be github integration or integrate with dropbox, or someway a person can save files and have a project workflow and then download that work. One of the biggest challenges in teaching and programming is workflow.&lt;BR /&gt;Minimally, I think SAS should have a warning that one should not plan on easily downloading their files in the set up documents for SAS ondemand.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jan 2021 12:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713049#M617</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-21T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713062#M618</link>
      <description>&lt;P&gt;What kind of files to you need to add to the ZIP archive? If it's only SAS programs (text), there might be a not-so-complicated way.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 13:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713062#M618</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-21T13:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713063#M619</link>
      <description>&lt;P&gt;I just cobbled together a method to create an archive that contains all program files in a directory tree.&lt;/P&gt;
&lt;P&gt;First, I used a program created by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;that is a very ingenious way of recursively scanning a directory tree in one data step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data filelist;
  length dname filename $256 dir level 8 lastmod size 8;
  format lastmod datetime20.;
  input dname;
  retain filename ' ' level 0 dir 1;
cards4;
/folders/myfolders
;;;;

data filelist;
  modify filelist;
  rc1=filename('tmp',catx('/',dname,filename));
  rc2=dopen('tmp');
  dir = not not rc2;
  if not dir then do;
    fid=fopen('tmp','i',0,'b');
    lastmod=input(finfo(fid,foptname(fid,5)),NLDATM100.);
    size=input(finfo(fid,foptname(fid,6)),32.);
    fid=fclose(fid);
  end;
  else do;
    dname=catx('/',dname,filename);
    filename=' ';
    lastmod=input(dinfo(rc2,doptname(rc2,5)),NLDATM100.);
  end;
  replace;
  if dir;
  level=level+1;
  do i=1 to dnum(rc2);
    filename=dread(rc2,i);
    output;
  end;
  rc3=dclose(rc2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, I used the resulting dataset to run a macro repeatedly that adds members to a ZIP archive:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename out zip "/folders/myfolders/all.zip";

%macro write_single(fname);

data _null_;
infile "&amp;amp;fname";
file out("&amp;amp;fname");
input;
put _infile_;
run;

%mend;

data _null_;
set filelist;
where filename ne "" and scan(filename,-1,".") = "sas";
call execute('%write_single('!!catx("/",dname,filename)!!")");
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 14:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713063#M619</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-21T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713064#M620</link>
      <description>If I can minimally do the SAS files and ideally also the directory structure that would be great. I know I have spent more time on this than I would have spent just doing this by hand one at a time, but if I am going to keep using the platform I need to figure out a workflow. I also would love to be able to provide this tool to my students, so they can zip their work after they are done with the class. Thank you so much.</description>
      <pubDate>Thu, 21 Jan 2021 14:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713064#M620</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-21T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713081#M621</link>
      <description>&lt;P&gt;For some reason I could not get it to work on SAS ondemand?&lt;/P&gt;&lt;P&gt;It runs and I get no errors but then my zip file is empty.&amp;nbsp; I do get the file list.&amp;nbsp; I do appreciate so much your help.&amp;nbsp; I have some meetings for the rest of the day but I will work on this more later tonight or tomorrow, and try it locally as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 14:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/713081#M621</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-21T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714194#M622</link>
      <description>&lt;P&gt;I just did a test run on my On Demand account; I only replaced the base paths (/folders/myfolders) with the path to my On Demand home directory, and successfully created a zip file with the .sas program files that I have there.&lt;/P&gt;
&lt;P&gt;Everything worked fine, I could extract the two .sas files after downloading to my laptop.&lt;/P&gt;
&lt;P&gt;Please take a close look at your log; for each .sas file found, you should have this from the ZIP step:&lt;/P&gt;
&lt;PRE&gt; NOTE: CALL EXECUTE generated line.
 1         + data _null_; infile "/home/XXX/programs/zip_all.sas"; file out("/home/XXX/programs/zip_all.sas"); 
 input; put _infile_; run;
 
 NOTE: The infile "/home/XXX/programs/zip_all.sas" is:
       Dateiname=/home/XXX/programs/zip_all.sas,
       Besitzername=XXX,Gruppenname=oda,
       Zugriffsberechtigung=-rw-r--r--,
       Zuletzt geändert=26. Jänner 2021 09.39 Uhr,
       Dateigröße (Byte)=312
 
 NOTE: The file library OUT is:
       Directory=/home/XXX/all.zip
 
 NOTE: The file OUT("/home/XXX/programs/zip_all.sas") is:
       Filename=/home/XXX/all.zip,
       Member Name=/home/XXX/programs/zip_all.sas
 
 NOTE: 18 records were read from the infile "/home/XXX/programs/zip_all.sas".
       The minimum record length was 0.
       The maximum record length was 62.
 NOTE: A total of 18 records were written to the file library OUT.
       The minimum record length was 0.
       The maximum record length was 62.
 NOTE: 18 records were written to the file OUT("/home/XXX/programs/zip_all.sas").
       The minimum record length was 0.
       The maximum record length was 62.
&lt;/PRE&gt;
&lt;P&gt;(home path redacted)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 08:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714194#M622</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-26T08:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714420#M623</link>
      <description>&lt;P&gt;Thank you so much. I got it to work once I moved the files out of my shared folder and into my home directory.&amp;nbsp; I had the correct paths but I think with the shared drive there is some special protection because I was getting a very odd error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very helpful and I appreciate your work on this very much.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 21:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714420#M623</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-26T21:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714498#M624</link>
      <description>&lt;P&gt;Could you show the "very odd error"? This might enable us to point to a solution that does not require moving all the files.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 08:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714498#M624</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-27T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714561#M625</link>
      <description>&lt;P&gt;I should have copied it at the time.&amp;nbsp; When I restarted SAS Ondemand it no longer was there, but I also no longer had write access to my shared drive.&amp;nbsp; I think that perhaps what happens is that since my class ended maybe my permissions to my drive changed in the last couple days?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did figure out is that it will work with the shared drive as long as I use the ~ and do not use the copied path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data filelist;
  length dname filename $256 dir level 8 lastmod size 8;
  format lastmod datetime20.;
  input dname;
  retain filename ' ' level 0 dir 1;
cards4;
 /home/u49xxxxxx/my_shared_file_links/kxxxxxx/sta216
;;;;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;my zip folder is empty.&amp;nbsp; Although, it does create a listing of the files in the folders they do not end up copied into the zip file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data filelist;
  length dname filename $256 dir level 8 lastmod size 8;
  format lastmod datetime20.;
  input dname;
  retain filename ' ' level 0 dir 1;
cards4;
~/my_shared_file_links/kxxxxxx/sta216
;;;;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It completely works.&amp;nbsp; So your solution works great.&amp;nbsp; Next time I will make sure I do this while I still have proper access to my drives.&amp;nbsp; This was my first semester using SAS OnDemand, I am an experienced SAS user but there was a bit of a learning curve with using drives that I could not access directly outside of SAS.&amp;nbsp; I very much appreciate this exercise, and your help on this Kurt.&amp;nbsp; This is nice because I can give this tool to my students to run as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next question is can I do this in reverse?&amp;nbsp; It seems I can, but I would need to have sas create the directories as I unzipped.&amp;nbsp; Perhaps using a libname and dlcreatedir option?&amp;nbsp; I also would love to be able to upload zipped data as well, not just SAS programs and unzip it on SAS Ondemand but I do not see that option yet that I can find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&amp;nbsp; I am very appreciative.&lt;/P&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714561#M625</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-27T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714570#M626</link>
      <description>&lt;P&gt;Maybe they did something weird with the contents of $HOME. The tilde returns the contents of that environment variable.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714570#M626</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-27T13:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714577#M627</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38972"&gt;@LauraRK&lt;/a&gt;&amp;nbsp;. The permissions for a user's write access don't change when the semester ends. There must be something else going on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I definitely endorse the use of the tilde in code. It will make it more portable to your students, Laura.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Randy&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 14:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714577#M627</guid>
      <dc:creator>RandyMullis</dc:creator>
      <dc:date>2021-01-27T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714590#M628</link>
      <description>&lt;P&gt;I am very embarrased but I realized what happened, I have two accounts, one I use to pretend to be a student, and one is my actual teacher account.&amp;nbsp; I was accidentally logged into the wrong account.&amp;nbsp; Nevertheless, it is somewhat of a fortunate error as it allows me to now have a more robust solution and to understand a bit better the file system for SAS Ondemand.&amp;nbsp; &amp;nbsp;It also helps me to be more empathetic, and be reminded that it is easy to make small mistakes when one is thinking about harder issues and does not take a few moments to be mindful of what is going on.&amp;nbsp; &amp;nbsp;I also put a bunch of time into learning Github and integrating it with R-studio cloud, so I think my next goal might be figuring that out with SAS Ondemand,&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2019/01/17/git-in-sas/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2019/01/17/git-in-sas/&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200"&gt;@RandyMullis&lt;/a&gt;&amp;nbsp;do you know if that is possible with SAS Ondemand?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile,&amp;nbsp; I think the tool&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has given us is very nice and I will definitely use it to zip and download my SAS programs in nice neat directories.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 14:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714590#M628</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-27T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714595#M629</link>
      <description>&lt;P&gt;I have made it a habit to always use $HOME for the home directory. That makes code portable.&lt;/P&gt;
&lt;P&gt;And not only that. Anything you can get from environment or automatic macro variables, or other means (e.g. functions) should be defined that way.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 14:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714595#M629</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-27T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714601#M630</link>
      <description>&lt;P&gt;So you want the companion UNZIP macro to go with the ZIP method in the selected solution?&lt;/P&gt;
&lt;P&gt;You could probably remove the references to &lt;A href="https://github.com/sasutils/macros/blob/master/parmv.sas" target="_self"&gt;%PARMV()&lt;/A&gt;&amp;nbsp;macro or get it from github.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro unzip
/*----------------------------------------------------------------------------
Extract files from a ZIP file using only SAS code
----------------------------------------------------------------------------*/
(zipfile    /* Source file */
,outdir     /* Target directory */
,dsname=unzipfiles /* Name of dataset created with filenames */
,createdir=YES  /* Use DLCREATEDIR option to make subdirectories */
);
%local macro parmerr dlcreatedir;
%let macro=&amp;amp;sysmacroname;
%let dlcreatedir=%sysfunc(getoption(dlcreatedir));
%parmv(zipfile,_req=1,_case=n,_words=1)
%parmv(outdir,_req=1,_case=n,_words=1)
%parmv(dsname,_case=n)
%parmv(createdir,_val=0 1)
%if (&amp;amp;parmerr) %then %goto quit;

*-----------------------------------------------------------------------------;
* Get list of members in the ZIP file ;
*-----------------------------------------------------------------------------;
data &amp;amp;dsname ;
  length fileref $8 fileno 8 memname zipfile $256.;
  zipfile = symget('zipfile');
  rc=filename(fileref,zipfile,'zip');
  if rc then call execute('%nrstr(%parmv)(zipfile,_msg=Unable to open file)');
  else do;
    did=dopen(fileref);
    if not did then call execute
       ('%nrstr(%parmv)(zipfile,_msg=Unable to open file as a zip file)')
    ;
    else do;
      do fileno=1 to dnum(did);
        memname=dread(did,fileno);
        output;
      end;
      did=dclose(did);
      rc=filename(fileref);
    end;
  end;
  drop fileref did rc;
run;
%if (&amp;amp;parmerr) %then %goto quit;

*-----------------------------------------------------------------------------;
* Copy members to files in target directory ;
*-----------------------------------------------------------------------------;
%if (&amp;amp;createdir) %then %do;
options dlcreatedir;
%end;
%else %do;
options nodlcreatedir;
%end;
data &amp;amp;dsname ;
  set &amp;amp;dsname ;
  length libref in out $8 outfile $256.;
  retain libref ' ';
  if "&amp;amp;sysscp"='WIN' then sep='\';
  else sep='/';
  rc1=filename(in,zipfile,'zip'
              ,catx(' ','recfm=f lrecl=512','member=',quote(trim(memname))))
  ;
  outfile=symget('outdir');
  rc2=libname(libref,outfile);
  do level=1 to countw(memname,'/')-1;
    outfile=catx(sep,outfile,scan(memname,level,'/'));
    rc2=libname(libref,outfile);
  end;
  rc2x=libname(libref);
  outfile=catx(sep,outfile,scan(memname,level,'/'));
  rc3=filename(out,outfile,,'recfm=f lrecl=512');
  rc4=fcopy(in,out);
  length msg $ 384;
  if rc4 then do;
     msg=sysmsg();
     call symputx('parmerr','1');
     put msg;
  end;
  drop libref in out ;
run;
%if (&amp;amp;parmerr) %then %do;
  %parmv(_msg=Not all files created);
%end;
%quit:
options &amp;amp;dlcreatedir ;
%mend unzip;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714601#M630</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-27T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714608#M631</link>
      <description>So use $HOME instead of ~ . Just to make sure I understand. Thanks.</description>
      <pubDate>Wed, 27 Jan 2021 15:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714608#M631</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2021-01-27T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Download all my files from SAS Ondemand</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714690#M632</link>
      <description>&lt;P&gt;Both will work, but I think the use of $HOME predates the tilde. Since I have almost 4 decades of working with UNIX, call me old school.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 18:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Bulk-Download-all-my-files-from-SAS-Ondemand/m-p/714690#M632</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-27T18:06:50Z</dc:date>
    </item>
  </channel>
</rss>

