<?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: Extracting data for certain variables from 7bdat dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858425#M37907</link>
    <description>&lt;P&gt;Certain variables? Most of the analysis procedures you would use either a VAR statement.&lt;/P&gt;
&lt;PRE&gt;Proc univariate data=yourdatsetname;
   var thisvar thatvar othervarname; /* list the variables of interest*/
run;&lt;/PRE&gt;
&lt;P&gt;It sort of depends what type of bivariate analysis you intend. Just counts with Proc Freq you place an * between two variables or groups of variables to do bivariate:&lt;/P&gt;
&lt;PRE&gt;proc freq data=yourdataset;
   tables (thisvar thatvar anothervar)*(somevar someothervar somethingelse);
run;&lt;/PRE&gt;
&lt;P&gt;for example would pair each of the variables in the first set of parentheses with each in the second set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2023 07:27:47 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-02-12T07:27:47Z</dc:date>
    <item>
      <title>Extracting data for certain variables from 7bdat dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858424#M37906</link>
      <description>&lt;P&gt;Using SASstudio and I'm unsure how to extract data from certain variables so I can run uni/bivariate analyses on it. I've never worked with such a large file but it was a 7bdat file I imported to SASStudio and I can't figure out how to create a code that will run only using certain selected variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 05:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858424#M37906</guid>
      <dc:creator>beleeve</dc:creator>
      <dc:date>2023-02-12T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data for certain variables from 7bdat dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858425#M37907</link>
      <description>&lt;P&gt;Certain variables? Most of the analysis procedures you would use either a VAR statement.&lt;/P&gt;
&lt;PRE&gt;Proc univariate data=yourdatsetname;
   var thisvar thatvar othervarname; /* list the variables of interest*/
run;&lt;/PRE&gt;
&lt;P&gt;It sort of depends what type of bivariate analysis you intend. Just counts with Proc Freq you place an * between two variables or groups of variables to do bivariate:&lt;/P&gt;
&lt;PRE&gt;proc freq data=yourdataset;
   tables (thisvar thatvar anothervar)*(somevar someothervar somethingelse);
run;&lt;/PRE&gt;
&lt;P&gt;for example would pair each of the variables in the first set of parentheses with each in the second set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 07:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858425#M37907</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-12T07:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data for certain variables from 7bdat dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858428#M37908</link>
      <description>&lt;P&gt;The statistical procedures have statements in which you define the variables to use, e.g. the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax.htm" target="_blank" rel="noopener"&gt;UNIVARIATE&lt;/A&gt;&amp;nbsp;procedure.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 08:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858428#M37908</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-12T08:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data for certain variables from 7bdat dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858460#M37910</link>
      <description>Is the datasetname referring to the location of the 7bdat file in SAS?</description>
      <pubDate>Mon, 13 Feb 2023 01:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858460#M37910</guid>
      <dc:creator>beleeve</dc:creator>
      <dc:date>2023-02-13T01:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data for certain variables from 7bdat dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858485#M37911</link>
      <description>&lt;P&gt;To use SAS datasets in program steps, you have two ways:.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;have a library defined for the directory where the file resides (LIBNAME statement) and use the&amp;nbsp;&lt;EM&gt;library.dataset&lt;/EM&gt; notation to address it. If you omit the library, the file is assumed to be in the temporary library WORK. The dataset name corresponds to the filename without the .sas7bdat extension.&lt;BR /&gt;This is the preferred method.&lt;/LI&gt;
&lt;LI&gt;or you use the fully qualified pathname of the file, enclosed in quotes.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Extracting-data-for-certain-variables-from-7bdat-dataset/m-p/858485#M37911</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-13T09:22:29Z</dc:date>
    </item>
  </channel>
</rss>

