<?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 Referencing datasets and proc sql create table query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555882#M154765</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written the following code but I have two error messages (highlighted in red below) when:&lt;/P&gt;&lt;P&gt;(1) trying to reference the dataset in the proc sql left join and&lt;/P&gt;&lt;P&gt;(2) when i try to reference the proc sql create table to use for the proc freq.&lt;/P&gt;&lt;P&gt;Can someone please help me out so that I can correctly reference the dataset for the proc sql section and how to reference the table that has been created using proc sql in order to comlete the proc freq section? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data account_analysis;&lt;BR /&gt;set rc.accounts_missing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table portfolio_subsegment_split as&lt;BR /&gt;select a.account_ID, a.month_end, a.utilisation, b.portfolio_subsegment&lt;BR /&gt;from &lt;FONT color="#FF0000"&gt;data=account_analysis as a&lt;/FONT&gt;&lt;BR /&gt;left join mod.output_v_2019 as b&lt;BR /&gt;on a.account_id = b.account_id and a.month_end = b.month_end&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;proc freq data=portfolio_subsegment_split&lt;/FONT&gt;;&lt;BR /&gt;tables portfolio_subsegment*utilisation / nocum out=want;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 10:48:08 GMT</pubDate>
    <dc:creator>jeremy4</dc:creator>
    <dc:date>2019-05-03T10:48:08Z</dc:date>
    <item>
      <title>Referencing datasets and proc sql create table query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555882#M154765</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written the following code but I have two error messages (highlighted in red below) when:&lt;/P&gt;&lt;P&gt;(1) trying to reference the dataset in the proc sql left join and&lt;/P&gt;&lt;P&gt;(2) when i try to reference the proc sql create table to use for the proc freq.&lt;/P&gt;&lt;P&gt;Can someone please help me out so that I can correctly reference the dataset for the proc sql section and how to reference the table that has been created using proc sql in order to comlete the proc freq section? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data account_analysis;&lt;BR /&gt;set rc.accounts_missing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table portfolio_subsegment_split as&lt;BR /&gt;select a.account_ID, a.month_end, a.utilisation, b.portfolio_subsegment&lt;BR /&gt;from &lt;FONT color="#FF0000"&gt;data=account_analysis as a&lt;/FONT&gt;&lt;BR /&gt;left join mod.output_v_2019 as b&lt;BR /&gt;on a.account_id = b.account_id and a.month_end = b.month_end&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;proc freq data=portfolio_subsegment_split&lt;/FONT&gt;;&lt;BR /&gt;tables portfolio_subsegment*utilisation / nocum out=want;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 10:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555882#M154765</guid>
      <dc:creator>jeremy4</dc:creator>
      <dc:date>2019-05-03T10:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing datasets and proc sql create table query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555884#M154767</link>
      <description>Remove 5 characters from PROC SQL:&lt;BR /&gt;&lt;BR /&gt;data=&lt;BR /&gt;&lt;BR /&gt;That should correct both errors.</description>
      <pubDate>Fri, 03 May 2019 10:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555884#M154767</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-05-03T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing datasets and proc sql create table query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555888#M154769</link>
      <description>Thanks for your help!</description>
      <pubDate>Fri, 03 May 2019 11:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Referencing-datasets-and-proc-sql-create-table-query/m-p/555888#M154769</guid>
      <dc:creator>jeremy4</dc:creator>
      <dc:date>2019-05-03T11:12:58Z</dc:date>
    </item>
  </channel>
</rss>

