<?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: How do I embed a piece of metadata into Windows Folder Properties? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354744#M83021</link>
    <description>&lt;P&gt;Have you considered saving the PDF repoprts in a Folder/CusomerID subfolder ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You wrote: "&lt;SPAN&gt;the program will know for customerid X that the PDF needs&lt;STRONG&gt; to be placed a location Y.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What information do you hold in "Y" subfolder name ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may consider use Folder/CustomerId/Y or any other combination.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Apr 2017 19:40:18 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-04-29T19:40:18Z</dc:date>
    <item>
      <title>How do I embed a piece of metadata into Windows Folder Properties?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354719#M83012</link>
      <description>&lt;P&gt;Hello -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a program that dynamically creates folders for a select group of customers utilizing the "dcreate" function (the folders need to have a naming convention of "Doe, John".)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I subsequently need to populate reports in those folders for each customer. &amp;nbsp;However, in order to do so, I need their customer ID. &amp;nbsp;Up until now, I have created a lookup table that contains both the customerID and the corresponding folder location. &amp;nbsp;So when I run a report that generates a PDF, the program will know for customerid X that the PDF needs to be placed a location Y.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, managing the look up table has been problematic due to our need to add/remove folders from time to time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way for me to store the customerID within the windows folder properties? &amp;nbsp;That would enable me to connect the customerID to the folder location without the need of an additional look up table. &amp;nbsp;I could then - hopefully - use the DINfo function to pull the customerID associated with the physical folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this ring a bell to anybody? &amp;nbsp;Any ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 16:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354719#M83012</guid>
      <dc:creator>grodman</dc:creator>
      <dc:date>2017-04-29T16:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I embed a piece of metadata into Windows Folder Properties?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354744#M83021</link>
      <description>&lt;P&gt;Have you considered saving the PDF repoprts in a Folder/CusomerID subfolder ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You wrote: "&lt;SPAN&gt;the program will know for customerid X that the PDF needs&lt;STRONG&gt; to be placed a location Y.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What information do you hold in "Y" subfolder name ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may consider use Folder/CustomerId/Y or any other combination.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 19:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354744#M83021</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-04-29T19:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I embed a piece of metadata into Windows Folder Properties?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354762#M83026</link>
      <description>&lt;P&gt;It would be much easier on Unix filesystem. You could create one set of folders using NAME and another as symbolic links using the ID. &amp;nbsp;THen the program that is writing the files and only has the ID value could write to a folder based on the ID value and it would show up in the folder based on the NAME value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lookup ;
   infile cards dsd dlm='|' truncover ;
   input id name $40. ;
cards;
1|Doe, John
2|Smith, Mary
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So your program to create the directory folder could run these Unix commands.&lt;/P&gt;
&lt;PRE&gt;cd /top_level 
mkdir -p "by_name/Doe, John"
mkdir -p "by_name/Smith, Mary"
mkdir -p by_id
cd by_id 
ln -s "../by_name/Doe, John" 1
ln -s "../by_name/Smith, Mary" 2
&lt;/PRE&gt;
&lt;P&gt;Then the program that writes the files could generate the name using the id and the people/programs that look for them by name will see them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2017 01:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-embed-a-piece-of-metadata-into-Windows-Folder/m-p/354762#M83026</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-30T01:16:36Z</dc:date>
    </item>
  </channel>
</rss>

