<?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: Pulling in data from one cohort in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895324#M39803</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where newntm = 'pulmonary control';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The capitalization and spelling and spaces between the words must match exactly, or you won't get the right records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, you have not explained what you see that indicates you are getting the wrong results. Please tell us what you see that is wrong, and what you expect. That will help us get to the right answer quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 18:05:14 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-09-21T18:05:14Z</dc:date>
    <item>
      <title>Pulling in data from one cohort</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895318#M39802</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to pull in data from a REDCap database, but I only want data from one dataset to create a dashboard. Unfortunately, I keep having trouble.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code so far:&lt;/P&gt;&lt;P&gt;Setting the library&lt;BR /&gt;***;&lt;BR /&gt;libname enroll "X:\SPH\Restricted\Winthrop\Current Projects\Biobank OCTRI\SAS";&lt;/P&gt;&lt;P&gt;data pulmcon (keep=id enrolldate birhdate sex hispanic race currentinsurance smoke height heightmeas currentweight currentweightmeas immuneany_enr copd bronch asthma cf othername inhaleenroll_enr pftdate1 fvcraw fvcdate1 fev1raw1 fev1date1 ratiodate1);&lt;BR /&gt;set redcap;&lt;BR /&gt;where newntm = 'pulmonary control';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data I want is the pulmonary control data from newntm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895318#M39802</guid>
      <dc:creator>grhyne</dc:creator>
      <dc:date>2023-09-21T17:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in data from one cohort</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895324#M39803</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where newntm = 'pulmonary control';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The capitalization and spelling and spaces between the words must match exactly, or you won't get the right records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, you have not explained what you see that indicates you are getting the wrong results. Please tell us what you see that is wrong, and what you expect. That will help us get to the right answer quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895324#M39803</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-21T18:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in data from one cohort</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895330#M39804</link>
      <description>Sorry, here are the issues the log is telling me about:&lt;BR /&gt;18279 libname enroll "X:\SPH\Restricted\Winthrop\Current Projects\Biobank OCTRI\SAS";&lt;BR /&gt;NOTE: Libref ENROLL was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: X:\SPH\Restricted\Winthrop\Current Projects\Biobank OCTRI\SAS&lt;BR /&gt;18280&lt;BR /&gt;&lt;BR /&gt;NOTE: No observations in data set WORK.PULMCON.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 4:09.05&lt;BR /&gt;cpu time 4.10 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;18281 data pulmcon (keep=id enrolldate birthdate sex hispanic race currentinsurance smoke height&lt;BR /&gt;18281! heightmeas currentweight currentweightmeas immuneany_enr copd bronch asthma cf othername&lt;BR /&gt;18281! inhaleenroll_enr pftdate1 fvcraw fvcdate1 fev1raw1 fev1date1 ratiodate1);&lt;BR /&gt;18282 set redcap;&lt;BR /&gt;18283 where newntm = 'pulmonary control';&lt;BR /&gt;ERROR: WHERE clause operator requires compatible variables.&lt;BR /&gt;18284 run;&lt;BR /&gt;&lt;BR /&gt;WARNING: The variable enrolldate in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable birhdate in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable hispanic in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable race in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable othername in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable pftdate1 in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable fvcraw in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.PULMCON may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 18 variables.&lt;BR /&gt;WARNING: Data set WORK.PULMCON was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895330#M39804</guid>
      <dc:creator>grhyne</dc:creator>
      <dc:date>2023-09-21T18:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in data from one cohort</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895334#M39805</link>
      <description>&lt;PRE&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/PRE&gt;
&lt;P&gt;So variable&amp;nbsp;&lt;SPAN&gt;newntm&amp;nbsp;must be numeric, and you cannot compare its value to a character string.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Pulling-in-data-from-one-cohort/m-p/895334#M39805</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-21T18:23:07Z</dc:date>
    </item>
  </channel>
</rss>

