<?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 SAS P1 Lesson 4: pg1.storm_summary issue in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822289#M1126</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is&amp;nbsp;Activity 4.04 with a prepared code:&lt;/P&gt;&lt;P&gt;data storm_length;&lt;BR /&gt;&lt;STRONG&gt;set pg1.storm_summary&lt;/STRONG&gt;;&lt;BR /&gt;drop Hem_EW Hem_NS Lat Lon;&lt;BR /&gt;*Add assignment statement;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The following error pops up if I run this code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASRB_0-1657291611003.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73065i6F19509D43E09EF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASRB_0-1657291611003.png" alt="SASRB_0-1657291611003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         data storm_length;
 74         set pg1.storm_summary;
 75         drop Hem_EW Hem_NS Lat Lon;
 76         *Add assignment statement;
 77         run;
 
 WARNING: The variable Hem_EW in the DROP, KEEP, or RENAME list has never been referenced.
 WARNING: The variable Hem_NS in the DROP, KEEP, or RENAME list has never been referenced.
 WARNING: The variable Lat in the DROP, KEEP, or RENAME list has never been referenced.
 WARNING: The variable Lon in the DROP, KEEP, or RENAME list has never been referenced.
 NOTE: There were 1 observations read from the data set PG1.STORM_SUMMARY.
 NOTE: The data set WORK.STORM_LENGTH has 1 observations and 0 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              743.56k
       OS Memory           29604.00k
       Timestamp           08.07.2022 02:45:58 пп
       Step Count                        115  Switch Count  2
       Page Faults                       0
       Page Reclaims                     89
       Page Swaps                        0
       Voluntary Context Switches        17
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           160
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 91 &lt;/PRE&gt;&lt;P&gt;I found another library with 2 in the end and changed the code accordingly.&lt;/P&gt;&lt;P&gt;set pg1.storm_summary&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;Then the task can be completed.&lt;/P&gt;&lt;P&gt;Just in case if someone faces the same issue or for a QC review if that is the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPD: but there is no Agatha storm in that table:)))&lt;/P&gt;&lt;P&gt;UPD2: but Agatha can be found in&amp;nbsp;PG1.STORM_RANGE:)))&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 15:35:10 GMT</pubDate>
    <dc:creator>SASRB</dc:creator>
    <dc:date>2022-07-08T15:35:10Z</dc:date>
    <item>
      <title>SAS P1 Lesson 4: pg1.storm_summary issue</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822289#M1126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is&amp;nbsp;Activity 4.04 with a prepared code:&lt;/P&gt;&lt;P&gt;data storm_length;&lt;BR /&gt;&lt;STRONG&gt;set pg1.storm_summary&lt;/STRONG&gt;;&lt;BR /&gt;drop Hem_EW Hem_NS Lat Lon;&lt;BR /&gt;*Add assignment statement;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The following error pops up if I run this code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASRB_0-1657291611003.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73065i6F19509D43E09EF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASRB_0-1657291611003.png" alt="SASRB_0-1657291611003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         data storm_length;
 74         set pg1.storm_summary;
 75         drop Hem_EW Hem_NS Lat Lon;
 76         *Add assignment statement;
 77         run;
 
 WARNING: The variable Hem_EW in the DROP, KEEP, or RENAME list has never been referenced.
 WARNING: The variable Hem_NS in the DROP, KEEP, or RENAME list has never been referenced.
 WARNING: The variable Lat in the DROP, KEEP, or RENAME list has never been referenced.
 WARNING: The variable Lon in the DROP, KEEP, or RENAME list has never been referenced.
 NOTE: There were 1 observations read from the data set PG1.STORM_SUMMARY.
 NOTE: The data set WORK.STORM_LENGTH has 1 observations and 0 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              743.56k
       OS Memory           29604.00k
       Timestamp           08.07.2022 02:45:58 пп
       Step Count                        115  Switch Count  2
       Page Faults                       0
       Page Reclaims                     89
       Page Swaps                        0
       Voluntary Context Switches        17
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           160
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 91 &lt;/PRE&gt;&lt;P&gt;I found another library with 2 in the end and changed the code accordingly.&lt;/P&gt;&lt;P&gt;set pg1.storm_summary&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;Then the task can be completed.&lt;/P&gt;&lt;P&gt;Just in case if someone faces the same issue or for a QC review if that is the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPD: but there is no Agatha storm in that table:)))&lt;/P&gt;&lt;P&gt;UPD2: but Agatha can be found in&amp;nbsp;PG1.STORM_RANGE:)))&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 15:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822289#M1126</guid>
      <dc:creator>SASRB</dc:creator>
      <dc:date>2022-07-08T15:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS P1 Lesson 4: pg1.storm_summary issue</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822318#M1127</link>
      <description>&lt;P&gt;The instructions for Activity 4.04:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;***********************************************************;
*  Activity 4.04                                          *;
*    1) Add an assignment statement to create StormLength *;
*       that represents the number of days between        *;
*       StartDate and EndDate.                            *;
*    2) Run the program. In 1980, how long did the storm  *;
*       named Agatha last?                                *;
***********************************************************;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The code I'd write for this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data storm_length;
   set pg1.storm_summary;
   drop Hem_EW Hem_NS Lat Lon;
   *Add assignment statement;
   StormLength =EndDate-StartDate    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;runs without error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: There were 3118 observations read from the data set PG1.STORM_SUMMARY.
NOTE: The data set WORK.STORM_LENGTH has 3118 observations and 9 variables.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And my result contains the storm Agatha:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.STORM_LENGTH" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r header" scope="col"&gt;Obs&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;Season&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;Name&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;Basin&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;Type&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;MaxWindMPH&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;MinPressure&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;StartDate&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;EndDate&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;StormLength&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="r data"&gt;1980&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;na&lt;/TD&gt;
&lt;TD class="l data"&gt;TS&lt;/TD&gt;
&lt;TD class="r data"&gt;35&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;17JUL1980&lt;/TD&gt;
&lt;TD class="r data"&gt;18NOV1980&lt;/TD&gt;
&lt;TD class="r data"&gt;124&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="r data"&gt;1980&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;SP&lt;/TD&gt;
&lt;TD class="l data"&gt;NR&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;998&lt;/TD&gt;
&lt;TD class="r data"&gt;27MAR1980&lt;/TD&gt;
&lt;TD class="r data"&gt;30MAR1980&lt;/TD&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="r data"&gt;1980&lt;/TD&gt;
&lt;TD class="l data"&gt;AGATHA&lt;/TD&gt;
&lt;TD class="l data"&gt;EP&lt;/TD&gt;
&lt;TD class="l data"&gt;TS&lt;/TD&gt;
&lt;TD class="r data"&gt;115&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;09JUN1980&lt;/TD&gt;
&lt;TD class="r data"&gt;15JUN1980&lt;/TD&gt;
&lt;TD class="r data"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;4&lt;/TH&gt;
&lt;TD class="r data"&gt;1980&lt;/TD&gt;
&lt;TD class="l data"&gt;ALBINE&lt;/TD&gt;
&lt;TD class="l data"&gt;SI&lt;/TD&gt;
&lt;TD class="l data"&gt;ET&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;.&lt;/TD&gt;
&lt;TD class="r data"&gt;27NOV1979&lt;/TD&gt;
&lt;TD class="r data"&gt;06DEC1979&lt;/TD&gt;
&lt;TD class="r data"&gt;9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;5&lt;/TH&gt;
&lt;TD class="r data"&gt;1980&lt;/TD&gt;
&lt;TD class="l data"&gt;ALEX&lt;/TD&gt;
&lt;TD class="l data"&gt;WP&lt;/TD&gt;
&lt;TD class="l data"&gt;TS&lt;/TD&gt;
&lt;TD class="r data"&gt;40&lt;/TD&gt;
&lt;TD class="r data"&gt;998&lt;/TD&gt;
&lt;TD class="r data"&gt;09OCT1980&lt;/TD&gt;
&lt;TD class="r data"&gt;14OCT1980&lt;/TD&gt;
&lt;TD class="r data"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;If your PG1 library does not include the pg1.storm_summary data set, try re-running the cre8data.sas program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 17:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822318#M1127</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-07-08T17:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS P1 Lesson 4: pg1.storm_summary issue</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822888#M1129</link>
      <description>&lt;P&gt;Lucky you:)&lt;/P&gt;&lt;P&gt;I have two libriaries and only one can be opened.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASRB_0-1657642539676.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73213iC55FF7CD6119A75A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASRB_0-1657642539676.png" alt="SASRB_0-1657642539676.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASRB_1-1657642576093.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73214i2CAD42BEDEB9ABEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASRB_1-1657642576093.png" alt="SASRB_1-1657642576093.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, for the practice purpose I used storm_summary2.&lt;/P&gt;&lt;P&gt;Thank you for your comment.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 16:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/822888#M1129</guid>
      <dc:creator>SASRB</dc:creator>
      <dc:date>2022-07-12T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS P1 Lesson 4: pg1.storm_summary issue</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/823405#M1130</link>
      <description>&lt;P&gt;If the data set has no observations, it may have been inadvertently damaged during a previous practice exercise or demo click-through. For SAS programming classes, this usually involved re-running a program named &lt;STRONG&gt;cre8data.sas&lt;/STRONG&gt; or &lt;STRONG&gt;setup.sas&lt;/STRONG&gt;. T&lt;SPAN&gt;he "Course Overview and Data Setup (REQUIRED)" instructions you used when you first set up the data for the class will give you the details, which may vary a little depending on if you are using a SAS Virtual Lab, SAS On Demand for Academics, or your own SAS installation with SAS Studio,&amp;nbsp;SAS Enterprise Guide, or the SAS Windowing Environment. Follow those instructions will restore your course SAS data sets to their initial condition, and this should fix the problem for you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 17:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/823405#M1130</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-07-25T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS P1 Lesson 4: pg1.storm_summary issue</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/824203#M1131</link>
      <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;could you please guide me where I can find that "cre8data.sas"? I am using web based SAS Studio and cannot find the file you are referring to.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 19 Jul 2022 17:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/824203#M1131</guid>
      <dc:creator>SASRB</dc:creator>
      <dc:date>2022-07-19T17:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS P1 Lesson 4: pg1.storm_summary issue</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/825308#M1141</link>
      <description>&lt;P&gt;Go to the "Course Overview and Data Setup (REQUIRED)" instructions used to first set up the data for the class. The actual instructions will depend on if you are using a SAS Virtual Lab, SAS On Demand for Academics, or your own SAS installation using&amp;nbsp;SAS Studio,&amp;nbsp;SAS Enterprise Guide, or the SAS Windowing Environment. The name of the program you need to run, and directions on how to find it, are included there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 16:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/SAS-P1-Lesson-4-pg1-storm-summary-issue/m-p/825308#M1141</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-07-25T16:56:45Z</dc:date>
    </item>
  </channel>
</rss>

