<?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 Prc sql count (distinct USUBJID || AEDECOD) what does the || symbol mean here in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853338#M337270</link>
    <description>&lt;P&gt;What does the code Count (distinct usubjid || aedecod). why concatenation operator (II) given in between usubjid and aedecod? what does concatenation operator mean and when do we write in that way.&lt;/P&gt;
&lt;P&gt;see part of the code below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*******&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table table1 as select distinct COHORTN, &lt;U&gt;count (distinct USUBJID || AEDECOD)&lt;/U&gt; as num, 2 as cat from adae;&lt;/P&gt;
&lt;P&gt;group by COHORTN;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;*******&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 20:01:34 GMT</pubDate>
    <dc:creator>Akter</dc:creator>
    <dc:date>2023-01-11T20:01:34Z</dc:date>
    <item>
      <title>Prc sql count (distinct USUBJID || AEDECOD) what does the || symbol mean here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853338#M337270</link>
      <description>&lt;P&gt;What does the code Count (distinct usubjid || aedecod). why concatenation operator (II) given in between usubjid and aedecod? what does concatenation operator mean and when do we write in that way.&lt;/P&gt;
&lt;P&gt;see part of the code below:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*******&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table table1 as select distinct COHORTN, &lt;U&gt;count (distinct USUBJID || AEDECOD)&lt;/U&gt; as num, 2 as cat from adae;&lt;/P&gt;
&lt;P&gt;group by COHORTN;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;*******&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 20:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853338#M337270</guid>
      <dc:creator>Akter</dc:creator>
      <dc:date>2023-01-11T20:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Prc sql count (distinct USUBJID || AEDECOD) what does the || symbol mean here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853341#M337271</link>
      <description>&lt;P&gt;Why? Ask the person that wrote the code.&lt;/P&gt;
&lt;P&gt;Must have wanted to count the number of combinations of those two variables.&lt;/P&gt;
&lt;P&gt;If you don't know what "concatenation" means it basically means stick things together.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;data example;
   thisvar = "Some text";
   thatvar = "yet more text";
   combined = thisvar||thatvar;
   put combined=;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When? When it does what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 20:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853341#M337271</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-11T20:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Prc sql count (distinct USUBJID || AEDECOD) what does the || symbol mean here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853473#M337334</link>
      <description>&lt;P&gt;probably i got the answer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;"count (distinct USUBJID || AEDECOD)" this counts the distinct number of records for both USUBJID and AEDECOD. If any USUBID has two same AEDECOD (i.e if any subject has two records for Hypotension) it counts One.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 15:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prc-sql-count-distinct-USUBJID-AEDECOD-what-does-the-symbol-mean/m-p/853473#M337334</guid>
      <dc:creator>Akter</dc:creator>
      <dc:date>2023-01-12T15:22:16Z</dc:date>
    </item>
  </channel>
</rss>

