<?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: Unable to write the code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837137#M36133</link>
    <description>libname E11 'U:\STA575\Exam1';&lt;BR /&gt;data one;&lt;BR /&gt;set E11.fish;&lt;BR /&gt;options firstobs = 21 obs = 35;&lt;BR /&gt;keep Species Weight Height;&lt;BR /&gt;run;&lt;BR /&gt;proc contents data = one;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data = one(firstobs = 1 obs = 5);&lt;BR /&gt;run;&lt;BR /&gt;proc print data = one;&lt;BR /&gt;run;&lt;BR /&gt;goptions reset;&lt;BR /&gt;data type1 type2;&lt;BR /&gt;set E11.fish;&lt;BR /&gt;if (Species ='Bream') then output type1;&lt;BR /&gt;if (Species='Roach') then output type2;&lt;BR /&gt;run;&lt;BR /&gt;libname E12 xlsx'U:\STA575\Exam1\Fish.xlsx';&lt;BR /&gt;data E12.Type1;&lt;BR /&gt;set type1;&lt;BR /&gt;run;&lt;BR /&gt;data E12.Type2;&lt;BR /&gt;set type2;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Getting error for question 2d, 2e, 2f</description>
    <pubDate>Thu, 06 Oct 2022 08:51:06 GMT</pubDate>
    <dc:creator>kumaabi</dc:creator>
    <dc:date>2022-10-06T08:51:06Z</dc:date>
    <item>
      <title>Unable to write the code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836594#M36090</link>
      <description>&lt;P&gt;Write a SAS program to do the following in order of the question numbers:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp; a. Create a SAS library, &lt;STRONG&gt;E11&lt;/STRONG&gt; that connects to the folder U:\STA575\Exam1. You must first create a folder &lt;STRONG&gt;Exam1&lt;/STRONG&gt; inside STA575 on your U drive and place &lt;STRONG&gt;fish.sas7bdat&lt;/STRONG&gt; inside the folder.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;b. Include a global options statement, where firstobs = 21 and obs = 35.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &amp;nbsp;c.Write a data step that reads observations from the SAS data set &lt;STRONG&gt;fish&lt;/STRONG&gt; and creates a temporary SAS data set &lt;STRONG&gt;one&lt;/STRONG&gt;. Include an option keep= Species Weight Height in &lt;STRONG&gt;fish.sas7bdat&lt;/STRONG&gt; data set.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; d. By using appropriate procedure on the&lt;STRONG&gt; fish.sas7bdat&lt;/STRONG&gt; data set, answer the following questions:&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Number of variables and the number of observations in the data set,&lt;/LI&gt;&lt;LI&gt;the date the data was created,&lt;/LI&gt;&lt;LI&gt;the size of the data set in kilo bytes, and&lt;/LI&gt;&lt;LI&gt;the number of character variables.&lt;/LI&gt;&lt;LI&gt;e. Using local options, print the first five observations in &lt;STRONG&gt;one.sas7bdat&lt;/STRONG&gt; data set in question c.&lt;/LI&gt;&lt;LI&gt;f. Print the data set &lt;STRONG&gt;work.one&lt;/STRONG&gt;. How many observations are printed? How many observations are in work.one? Explain the reason behind the number of printed observations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2.Write a SAS program to do the following in order of the question numbers:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;a. Reset the global options in question (1b) to their default values.&lt;/P&gt;&lt;P&gt;b. Write a data step that reads observations from the SAS data set &lt;STRONG&gt;fish&lt;/STRONG&gt; and creates two temporary SAS data sets &lt;STRONG&gt;Type1&lt;/STRONG&gt; and &lt;STRONG&gt;Type2&lt;/STRONG&gt;. Include the following ‘if’ statements: If Species = ‘Bream’ then output Type1; If Species=’Roach’ then output Type2;&lt;/P&gt;&lt;P&gt;c.&amp;nbsp; &amp;nbsp;Using XLSX engine, write a libname statement that creates (or links) a new Excel file Fish.xlsx workbook in the folder Exam1 created in question (1a). Use the library reference E12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;d. Using worksheet name Type1, write a data step that reads the &lt;STRONG&gt;Type1&lt;/STRONG&gt; SAS data set in (b) into the Excel workbook Fish.xlsx in 2(c).&lt;/P&gt;&lt;P&gt;e.Using worksheet name Type2, write a data step that reads the &lt;STRONG&gt;Type2&lt;/STRONG&gt; SAS data set in (b) into the Excel workbook Fish.xlsx in 2(c).&lt;/P&gt;&lt;P&gt;&amp;nbsp;f.How many observations are in Type1 and Type 2 data sets in (b)?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 21:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836594#M36090</guid>
      <dc:creator>kumaabi</dc:creator>
      <dc:date>2022-10-03T21:16:53Z</dc:date>
    </item>
    <item>
      <title>Unable to write the code , please help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836596#M36094</link>
      <description>&lt;P&gt;Write a SAS program to do the following in order of the question numbers:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp; a. Create a SAS library,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;E11&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that connects to the folder U:\STA575\Exam1. You must first create a folder&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Exam1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;inside STA575 on your U drive and place&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fish.sas7bdat&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;inside the folder.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;b. Include a global options statement, where firstobs = 21 and obs = 35.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &amp;nbsp;c.Write a data step that reads observations from the SAS data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fish&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and creates a temporary SAS data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;one&lt;/STRONG&gt;. Include an option keep= Species Weight Height in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fish.sas7bdat&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data set.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; d. By using appropriate procedure on the&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;fish.sas7bdat&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data set, answer the following questions:&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Number of variables and the number of observations in the data set,&lt;/LI&gt;&lt;LI&gt;the date the data was created,&lt;/LI&gt;&lt;LI&gt;the size of the data set in kilo bytes, and&lt;/LI&gt;&lt;LI&gt;the number of character variables.&lt;/LI&gt;&lt;LI&gt;e. Using local options, print the first five observations in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;one.sas7bdat&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data set in question c.&lt;/LI&gt;&lt;LI&gt;f. Print the data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work.one&lt;/STRONG&gt;. How many observations are printed? How many observations are in work.one? Explain the reason behind the number of printed observations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2.Write a SAS program to do the following in order of the question numbers:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;a. Reset the global options in question (1b) to their default values.&lt;/P&gt;&lt;P&gt;b. Write a data step that reads observations from the SAS data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fish&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and creates two temporary SAS data sets&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Type1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Type2&lt;/STRONG&gt;. Include the following ‘if’ statements: If Species = ‘Bream’ then output Type1; If Species=’Roach’ then output Type2;&lt;/P&gt;&lt;P&gt;c.&amp;nbsp; &amp;nbsp;Using XLSX engine, write a libname statement that creates (or links) a new Excel file Fish.xlsx workbook in the folder Exam1 created in question (1a). Use the library reference E12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;d. Using worksheet name Type1, write a data step that reads the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Type1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SAS data set in (b) into the Excel workbook Fish.xlsx in 2(c).&lt;/P&gt;&lt;P&gt;e.Using worksheet name Type2, write a data step that reads the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Type2&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SAS data set in (b) into the Excel workbook Fish.xlsx in 2(c).&lt;/P&gt;&lt;P&gt;&amp;nbsp;f.How many observations are in Type1 and Type 2 data sets in (b)?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 21:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836596#M36094</guid>
      <dc:creator>kumaabi</dc:creator>
      <dc:date>2022-10-03T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836600#M36095</link>
      <description>&lt;P&gt;I don't think you are likely to get answers to your homework on this forum.&amp;nbsp; However, you might get some helpful hints if you report what you have tried so far.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 21:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836600#M36095</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-10-03T21:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836644#M36098</link>
      <description>&lt;P&gt;Let us see what you have already done so far. Post your code using the "little running man" button.&lt;/P&gt;
&lt;P&gt;Then tell us where you are stuck, so we can give you advice.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 05:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/836644#M36098</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-04T05:41:03Z</dc:date>
    </item>
    <item>
      <title>getting Error for question 2d, 2e,2f</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837135#M36135</link>
      <description>&lt;P&gt;1. Write a SAS program to do the following in order of the question numbers:&lt;BR /&gt;a. Create a SAS library, E11 that connects to the folder U:\STA575\Exam1. You must first create a folder Exam1 inside STA575 on your U drive and place fish.sas7bdat inside the folder.&lt;BR /&gt;b. Include a global options statement, where firstobs = 21 and obs = 35.&lt;BR /&gt;c. Write a data step that reads observations from the SAS data set fish and creates a temporary SAS data set one. Include an option keep= Species Weight Height in fish.sas7bdat data set.&lt;BR /&gt;d. By using appropriate procedure on the fish.sas7bdat data set, answer the following questions:&lt;BR /&gt;• Number of variables and the number of observations in the data set,&lt;BR /&gt;• the date the data was created,&lt;BR /&gt;• the size of the data set in kilo bytes, and&lt;BR /&gt;• the number of character variables.&lt;BR /&gt;e. Using local options, print the first five observations in one.sas7bdat data set in question c.&lt;BR /&gt;f. Print the data set work.one. How many observations are printed? How many observations are in work.one? Explain the reason behind the number of printed observations.&lt;/P&gt;&lt;P&gt;2. Write a SAS program to do the following in order of the question numbers:&lt;BR /&gt;a. Reset the global options in question (1b) to their default values.&lt;BR /&gt;b. Write a data step that reads observations from the SAS data set fish and creates two temporary SAS data sets Type1 and Type2. Include the following ‘if’ statements: If Species = ‘Bream’ then output Type1; If Species=’Roach’ then output Type2;&lt;BR /&gt;c. Using XLSX engine, write a libname statement that creates (or links) a new Excel file Fish.xlsx workbook in the folder Exam1 created in question (1a). Use the library reference E12.&lt;BR /&gt;d. Using worksheet name Type1, write a data step that reads the Type1 SAS data set in (b) into the Excel workbook Fish.xlsx in 2(c).&lt;BR /&gt;e. Using worksheet name Type2, write a data step that reads the Type2 SAS data set in (b) into the Excel workbook Fish.xlsx in 2(c).&lt;BR /&gt;f. How many observations are in Type1 and Type 2 data sets in (b)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname E11 'U:\STA575\Exam1';&lt;BR /&gt;data one;&lt;BR /&gt;set E11.fish;&lt;BR /&gt;options firstobs = 21 obs = 35;&lt;BR /&gt;keep Species Weight Height;&lt;BR /&gt;run;&lt;BR /&gt;proc contents data = one;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data = one(firstobs = 1 obs = 5);&lt;BR /&gt;run;&lt;BR /&gt;proc print data = one;&lt;BR /&gt;run;&lt;BR /&gt;goptions reset;&lt;BR /&gt;data type1 type2;&lt;BR /&gt;set E11.fish;&lt;BR /&gt;if (Species ='Bream') then output type1;&lt;BR /&gt;if (Species='Roach') then output type2;&lt;BR /&gt;run;&lt;BR /&gt;libname E12 xlsx'U:\STA575\Exam1\Fish.xlsx';&lt;BR /&gt;data E12.Type1;&lt;BR /&gt;set type1;&lt;BR /&gt;run;&lt;BR /&gt;data E12.Type2;&lt;BR /&gt;set type2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837135#M36135</guid>
      <dc:creator>kumaabi</dc:creator>
      <dc:date>2022-10-06T08:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: getting Error for question 2d, 2e,2f</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837136#M36136</link>
      <description>&lt;P&gt;My log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1 libname E11 'U:\STA575\Exam1';&lt;BR /&gt;NOTE: Libref E11 was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: U:\STA575\Exam1&lt;BR /&gt;2 data one;&lt;BR /&gt;3 set E11.fish;&lt;BR /&gt;4 options firstobs = 21 obs = 35;&lt;BR /&gt;5 keep Species Weight Height;&lt;BR /&gt;6 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 55 observations read from the data set E11.FISH.&lt;BR /&gt;NOTE: The data set WORK.ONE has 55 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.04 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;7 proc contents data = one;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;8 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.57 seconds&lt;BR /&gt;cpu time 0.23 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;9&lt;BR /&gt;10 proc print data = one(firstobs = 1 obs = 5);&lt;BR /&gt;11 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 5 observations read from the data set WORK.ONE.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;12 proc print data = one;&lt;BR /&gt;13 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 15 observations read from the data set WORK.ONE.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;14 goptions reset;&lt;BR /&gt;15 data type1 type2;&lt;BR /&gt;16 set E11.fish;&lt;BR /&gt;17 if (Species ='Bream') then output type1;&lt;BR /&gt;18 if (Species='Roach') then output type2;&lt;BR /&gt;19 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 15 observations read from the data set E11.FISH.&lt;BR /&gt;NOTE: The data set WORK.TYPE1 has 15 observations and 4 variables.&lt;BR /&gt;NOTE: The data set WORK.TYPE2 has 0 observations and 4 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;20 libname E12 xlsx'U:\STA575\Exam1\Fish.xlsx';&lt;BR /&gt;NOTE: Libref E12 was successfully assigned as follows:&lt;BR /&gt;Engine: XLSX&lt;BR /&gt;Physical Name: U:\STA575\Exam1\Fish.xlsx&lt;BR /&gt;21 data E12.Type1;&lt;BR /&gt;22 set type1;&lt;BR /&gt;WARNING: FIRSTOBS option &amp;gt; number of observations in WORK.TYPE1.&lt;BR /&gt;23 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 0 observations read from the data set WORK.TYPE1.&lt;BR /&gt;NOTE: The data set E12.Type1 has 0 observations and 4 variables.&lt;BR /&gt;NOTE: The export data set has 0 observations and 4 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.08 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;24 data E12.Type2;&lt;BR /&gt;25 set type2;&lt;BR /&gt;WARNING: FIRSTOBS option &amp;gt; number of observations in WORK.TYPE2.&lt;BR /&gt;26 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 0 observations read from the data set WORK.TYPE2.&lt;BR /&gt;NOTE: The data set E12.Type2 has 0 observations and 4 variables.&lt;BR /&gt;NOTE: The export data set has 0 observations and 4 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.07 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837136#M36136</guid>
      <dc:creator>kumaabi</dc:creator>
      <dc:date>2022-10-06T08:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837137#M36133</link>
      <description>libname E11 'U:\STA575\Exam1';&lt;BR /&gt;data one;&lt;BR /&gt;set E11.fish;&lt;BR /&gt;options firstobs = 21 obs = 35;&lt;BR /&gt;keep Species Weight Height;&lt;BR /&gt;run;&lt;BR /&gt;proc contents data = one;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data = one(firstobs = 1 obs = 5);&lt;BR /&gt;run;&lt;BR /&gt;proc print data = one;&lt;BR /&gt;run;&lt;BR /&gt;goptions reset;&lt;BR /&gt;data type1 type2;&lt;BR /&gt;set E11.fish;&lt;BR /&gt;if (Species ='Bream') then output type1;&lt;BR /&gt;if (Species='Roach') then output type2;&lt;BR /&gt;run;&lt;BR /&gt;libname E12 xlsx'U:\STA575\Exam1\Fish.xlsx';&lt;BR /&gt;data E12.Type1;&lt;BR /&gt;set type1;&lt;BR /&gt;run;&lt;BR /&gt;data E12.Type2;&lt;BR /&gt;set type2;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Getting error for question 2d, 2e, 2f</description>
      <pubDate>Thu, 06 Oct 2022 08:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837137#M36133</guid>
      <dc:creator>kumaabi</dc:creator>
      <dc:date>2022-10-06T08:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: getting Error for question 2d, 2e,2f</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837143#M36137</link>
      <description>&lt;P&gt;OPTIONS is a global statement; all settings you define with it will be effective until you change them (or the end of the SAS session).&lt;/P&gt;
&lt;P&gt;Therefore the&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options firstobs = 21 obs = 35;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is also still in effect when you try to read from TYPE1 which only has 15 observations.&lt;/P&gt;
&lt;P&gt;It is better to use FIRSTOBS= and OBS= dataset options, as these are only valid for the data step where they are used.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 09:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unable-to-write-the-code/m-p/837143#M36137</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-06T09:41:17Z</dc:date>
    </item>
  </channel>
</rss>

