<?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: %include difficulties in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272280#M554</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/70161"&gt;@anthfoster&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I access SAS Studio via VMWare Player and I've checked that the VM has the shared folder path of the physical location. &amp;nbsp;I can see the file that I need in Folder Shortcuts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you created a custom shared folder location, besides the myfolders required?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so you access it as:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/software/products/university-edition/faq/shared_folder_access_existing.htm" target="_blank"&gt;http://support.sas.com/software/products/university-edition/faq/shared_folder_access_existing.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last line is key:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To reference this folder shortcut in a SAS program, use &lt;CODE&gt;/folders/myshortcuts/&lt;I&gt;folder-name&lt;/I&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2016 21:57:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-05-21T21:57:16Z</dc:date>
    <item>
      <title>%include difficulties</title>
      <link>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272262#M548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone attended the Macros Essentials course? &amp;nbsp;I'm attempting to access the programs used on the course via SAS Stuidio, which needs a program to run that creates data (cre8data). &amp;nbsp;This program includes the following statements;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let path=s:\workshop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include "&amp;amp;path\setup.sas" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I am unable to put a path in the %let statement which works with the %include, On the course the 's:\workshop' path was used but this was obviously a path that was valid on the machines in the SAS office. &amp;nbsp;I need to change this path to one that can access the files on my machine. &amp;nbsp;I access SAS Studio via VMWare Player and I've checked that the VM has the shared folder path of the physical location. &amp;nbsp;I can see the file that I need in Folder Shortcuts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No matter which paths I try I keep getting the following errors;&lt;/P&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Physical file does not exist,&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;/opt/sasinside/SASConfig/Lev1/SASApp/C:\Users\Anth\Documents\SASUniversityEdition\SAS_Macro\SAS_Macro.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Cannot open %INCLUDE file 'C:\Users\Anth\Documents\SASUniversityEdition\SAS_Macro\SAS_Macro'\setup.sas.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've tried referencing the path of the folder shortcut, in which the setup.sas file is present, and I've tried referencing the actual windows path on my laptop. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas of where I'm going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 18:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272262#M548</guid>
      <dc:creator>anthfoster</dc:creator>
      <dc:date>2016-05-21T18:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: %include difficulties</title>
      <link>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272267#M550</link>
      <description>&lt;P&gt;The error message shows what you are doing wrong. You have given SAS a Windows path, &lt;SPAN&gt;C:\Users\Anth\Documents\SASUniversityEdition\SAS_&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;Macro\SAS_Macro&lt;/SPAN&gt;, but SAS is actually running on the Unix virtual machine. So it does not understand Windows syntax for path names. Hence it thinks you are looking for a file whose name starts with the characters uppercase C and colon and is in the current working directory. Hence the error message: &amp;nbsp;&lt;SPAN&gt;/opt/sasinside/SASConfig/Lev1/SASApp/C:\Users\Anth&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;\Documents\SASUniversityEdition\SAS_Macro\SAS_Macr&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;o.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read the instructions on setting up the folder mapping. &amp;nbsp;Or look for the other 50 times this question has been asked on this site. &amp;nbsp;Or read this KB entry: &amp;nbsp;&lt;A href="http://support.sas.com/kb/53/333.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/53/333.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 20:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272267#M550</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-05-21T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: %include difficulties</title>
      <link>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272280#M554</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/70161"&gt;@anthfoster&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I access SAS Studio via VMWare Player and I've checked that the VM has the shared folder path of the physical location. &amp;nbsp;I can see the file that I need in Folder Shortcuts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you created a custom shared folder location, besides the myfolders required?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so you access it as:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/software/products/university-edition/faq/shared_folder_access_existing.htm" target="_blank"&gt;http://support.sas.com/software/products/university-edition/faq/shared_folder_access_existing.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last line is key:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To reference this folder shortcut in a SAS program, use &lt;CODE&gt;/folders/myshortcuts/&lt;I&gt;folder-name&lt;/I&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 21:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272280#M554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-21T21:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: %include difficulties</title>
      <link>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272333#M555</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;&amp;nbsp; You should NOT tamper with the %include. That program CRE8DATA.SAS is designed to run if these are true:&lt;BR /&gt;1)You unzip ALL the files into a directory location where you have WRITE access (you cannot just unzip the CRE8DATA.SAS program into the folder)&lt;/P&gt;
&lt;P&gt;2) you make a folder called MC1 in that write location&lt;/P&gt;
&lt;P&gt;3) you change the %LET statement (and ONLY the %LET statement in CRE8DATA.SAS) as appropriate for where you have unzipped the files in your&amp;nbsp; system and according to your method of using SAS:&lt;/P&gt;
&lt;P&gt;In class: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let path=s:\workshop;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Windows: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let path= c:\classes\mc1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Unix: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let path= /usr/classes/mc1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;SAS UE using shared folder location:&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; %let path= /folders/myfolders/mc1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;SAS OnDemand: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let path=/home/your_username/mc1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;SAS UE with shortcuts:&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; %let path=/folders/myshortcuts/mc1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp; Here's the ONLY statement you should change in the CRE8DATA.SAS program in the attached screen shot.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;cynthia&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3284i5F90AF3BC9BB8C71/image-size/original?v=v2&amp;amp;px=-1" alt="how_to_change_cre8data_make_files.png" title="how_to_change_cre8data_make_files.png" border="0" /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 21:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/272333#M555</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-05-22T21:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: %include difficulties</title>
      <link>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/274056#M573</link>
      <description>&lt;P&gt;Thanks to everyone for your replies, your suggestions helped me realies that the '\' should have been a '/', which was causing the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 10:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/include-difficulties/m-p/274056#M573</guid>
      <dc:creator>anthfoster</dc:creator>
      <dc:date>2016-05-31T10:12:36Z</dc:date>
    </item>
  </channel>
</rss>

