<?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: Programming 1 - lesson 2: missing data files in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/532996#M210</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;That is odd that the AUTOEXEC doesn't work for you but you can submit the programs sequentially. When you see the programs in the AUTOEXEC process flow, does the program name with _1 appear before the program name that starts with _2?? The AUTOEXEC must have the first program run BEFORE the second program, as shown here: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="important_eg_pg1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26867iD6DBF413F8E5F2BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="important_eg_pg1.png" alt="important_eg_pg1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 16:33:48 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-02-05T16:33:48Z</dc:date>
    <item>
      <title>Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/531685#M207</link>
      <description>&lt;P&gt;In lesson 2, there are several activities relating to accessing non SAS files (Excel, CSV,...). These files are supposed to be in the data folder that was unzipped at the beginning of the course.&lt;/P&gt;&lt;P&gt;I followed the &lt;STRONG&gt;Entreprise Guide&lt;/STRONG&gt; instructions for the data setup, but I can't find any Excel, CSV... files in the folders I unzipped. I've redone the procedure several times, but with the same result. I can only see these two files in the data folder (and not a trace of the necessary files in the other folders either):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS lesson 2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26732i195282C656D1EFF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS lesson 2.JPG" alt="SAS lesson 2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could the original ZIP-file be incomplete?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And as a potential solution/workaround, can I use the files I found in the SAS Studio instructions instead?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS lesson 2 alternative.JPG" style="width: 571px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26733i305C9299B8DFE2DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS lesson 2 alternative.JPG" alt="SAS lesson 2 alternative.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/531685#M207</guid>
      <dc:creator>lietchi</dc:creator>
      <dc:date>2019-01-31T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/531823#M208</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In Enterprise Guide, remember that we make the data fresh, every time you start your project, by running the Autoexec Process Flow. We do this because many EG users CANNOT write to a folder on their SAS server. But we know you can write to WORK. Remember the instructions inside the course???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=pg1._all_ nods;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then in EG, in your PROC CONTENTS results, you should see a VERY long temporary location as the Physical location of the PG1 library. You should see storm summary in that location. Now, you could use that very long path name in your code however, that is prone to typos. So instead, as part of the AUTOEXEC process we make you a helper variable called &amp;amp;PATH and in the instructions for any activity where you need a FILEPATH, we tell EG students to use &amp;amp;PATH, as shown below highlighted in yellow:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eg_activity.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26745i32C0A3BDF7D3C452/image-size/large?v=v2&amp;amp;px=999" role="button" title="eg_activity.png" alt="eg_activity.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your purposes, if you need to code a fully qualified path (not using a LIBNAME statement), then you would use in EG&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data="&lt;FONT color="#FF00FF"&gt;&amp;amp;path&lt;/FONT&gt;/storm_summary.sas7bdat";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR, For University Edition in a Virtual Machine:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data="&lt;FONT color="#FF00FF"&gt;/folders/myfolders/EPG194/data&lt;/FONT&gt;/storm_summary.sas7bdat";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR, For SAS OnDemand for Academics using SAS Studio:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data="&lt;FONT color="#FF00FF"&gt;/home/&lt;EM&gt;userid&lt;/EM&gt;/EPG194/data&lt;/FONT&gt;/storm_summary.sas7bdat";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that &amp;amp;PATH is ONLY used for the Enterprise Guide path, assuming you followed ALL the instructions AND you ran the AUTOEXEC process flow that we instructed you to create as part of the instructions. As shown above, EG students are instructed to use &amp;amp;PATH anytime the code shows the string "FILEPATH" to be replaced. Other students, such as University Edition and OnDemand students use the strings that I have indicated above (assuming they made EPG194/data folders as instructed).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 22:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/531823#M208</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-31T22:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/532952#M209</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;Even when using "&amp;amp;path", I was still getting error messages ("file doesn't exist").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I went through the process (for the fourth or fifth time) of setting up the data according to the instructions. I thought I had found the problem (something to do with the location of the unzipped files and the EGP file).&lt;/P&gt;&lt;P&gt;But when I reopened the EGP file later,&amp;nbsp;I had the same error messages as before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I finally noticed the real problem. Each time I did the data setup, I never had any error messages when executing the two setup programs. But apparently when I reopen the project afterwards, the autoexec doesn't run correctly: part of the code (specifically the libname statement for creating the PG1 library) isn't executed, which blocks the second part of the setup from running correctly (52 error messages). When I rerun the two programs manually, everything runs as it should, problem solved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quite a steep learning curve, I have to say, but I'm glad I'm finally able to move forward with the lessons...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/532952#M209</guid>
      <dc:creator>lietchi</dc:creator>
      <dc:date>2019-02-05T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/532996#M210</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;That is odd that the AUTOEXEC doesn't work for you but you can submit the programs sequentially. When you see the programs in the AUTOEXEC process flow, does the program name with _1 appear before the program name that starts with _2?? The AUTOEXEC must have the first program run BEFORE the second program, as shown here: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="important_eg_pg1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26867iD6DBF413F8E5F2BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="important_eg_pg1.png" alt="important_eg_pg1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/532996#M210</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-02-05T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533165#M211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I've checked and the two programs run in the right order. And there are no errors after running the first one, but the second one has 52 errors showing that the previous program didn't actually run correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="52 errors.JPG" style="width: 498px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26885iC947784DDE9F433E/image-size/large?v=v2&amp;amp;px=999" role="button" title="52 errors.JPG" alt="52 errors.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried again this morning: same issue, and yet again running the first program manually and then the second one solves the problem. I think I'll have a word with the SAS reference person in my organisation, since this doesn't seem to be an issue that is caused by user error?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 08:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533165#M211</guid>
      <dc:creator>lietchi</dc:creator>
      <dc:date>2019-02-06T08:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533224#M212</link>
      <description>&lt;P&gt;Can you take a screenshot of your window like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;has? I think if we see the window and programs that might help is diagnose the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533224#M212</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2019-02-06T13:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533264#M213</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fullscreen part 1.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26895iDE20C96C675BD4AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="fullscreen part 1.JPG" alt="fullscreen part 1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fullscreen part 2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26896iB71B36C8634461B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="fullscreen part 2.JPG" alt="fullscreen part 2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 14:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533264#M213</guid>
      <dc:creator>lietchi</dc:creator>
      <dc:date>2019-02-06T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533297#M214</link>
      <description>&lt;P&gt;What's weird is that from the looks of it you look like you set it up correctly, and you said when you run the programs manually in order everything works correctly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533297#M214</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2019-02-06T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533299#M215</link>
      <description>&lt;P&gt;Yes, that's right, running the programs manually I have no issues and no error messages..&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533299#M215</guid>
      <dc:creator>lietchi</dc:creator>
      <dc:date>2019-02-06T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533327#M216</link>
      <description>&lt;P&gt;Could you double click the 'Autoexec' process flow in the top left, in the &lt;STRONG&gt;Project Tree&lt;/STRONG&gt; pane?&amp;nbsp; You should see a grid with SAS programs and some other objects in the second column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that grid set up, what order do the SAS programs appear from top to bottom (you may need to scroll down to see the second program)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you see the _2 program above the _1 program, then the Autoexec is running the _2 program first, causing the issues.&amp;nbsp; This might have happened when the _2egpg194 and _1egpg194 programs were put into the Project, but rearranging the programs in the &lt;STRONG&gt;Project Tree&lt;/STRONG&gt; pane isn't going to influence the order that the programs are run.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my guess is right, then you should be able to click and drag the _1 program above the _2 program to fix the order, and it should work when you open the project again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26908i8693F0E70DDE6CB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533327#M216</guid>
      <dc:creator>PremS</dc:creator>
      <dc:date>2019-02-06T16:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programming 1 - lesson 2: missing data files</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533534#M224</link>
      <description>&lt;P&gt;Great suggestion, they were indeed in the wrong order (despite being added in the right order during set-up). I've rearranged them and now everything runs as it should when autoexecuting!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 08:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Programming-1-lesson-2-missing-data-files/m-p/533534#M224</guid>
      <dc:creator>lietchi</dc:creator>
      <dc:date>2019-02-07T08:28:52Z</dc:date>
    </item>
  </channel>
</rss>

