<?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 Trying to find the remaining number from table 1 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837841#M36192</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I have created a table which finds the dialled number from confirm_email table. Now I want to find which numbers were left out (not dialled) from the confirm_email table. Here is my code below. Can you please suggest what can I add to find the numbers that were not dialled?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Dialled_numbers as
select distinct
b.dcPhoneNumber /*is the number that was dialled */
from work.confirmed_email as a
inner join DIALFILE.tDiallerCalls as b on a.account_number=b.dcaccountnumber
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 13:00:49 GMT</pubDate>
    <dc:creator>Sandeep77</dc:creator>
    <dc:date>2022-10-11T13:00:49Z</dc:date>
    <item>
      <title>Trying to find the remaining number from table 1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837841#M36192</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I have created a table which finds the dialled number from confirm_email table. Now I want to find which numbers were left out (not dialled) from the confirm_email table. Here is my code below. Can you please suggest what can I add to find the numbers that were not dialled?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Dialled_numbers as
select distinct
b.dcPhoneNumber /*is the number that was dialled */
from work.confirmed_email as a
inner join DIALFILE.tDiallerCalls as b on a.account_number=b.dcaccountnumber
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 13:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837841#M36192</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-10-11T13:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to find the remaining number from table 1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837851#M36193</link>
      <description>&lt;P&gt;Needless to say, this is untested, but something like this will do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Dialled_numbers as
select distinct
b.dcPhoneNumber /*is the number that was dialled */
from work.confirmed_email as a
inner join DIALFILE.tDiallerCalls as b on a.account_number=b.dcaccountnumber
;

create table Not_Dialled_numbers as
select distinct
b.dcPhoneNumber
from work.confirmed_email
where account_number not in (select dcaccountnumber from DIALFILE.tDiallerCalls)
;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2022 13:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837851#M36193</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-10-11T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to find the remaining number from table 1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837880#M36195</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp; I tried running the code as you suggested and still showing error. Please suggest how to correct it.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Dialled_numbers as
select distinct
b.dcPhoneNumber /*is the number that was dialled */

from work.confirmed_email as a
inner join DIALFILE.tDiallerCalls as b on a.account_number=b.dcaccountnumber
;
create table Not_Dialled_numbers as
select distinct
b.dcPhoneNumber
from work.confirmed_email as a
where account_number not in (select dcaccountnumber from DIALFILE.tDiallerCalls)
;
quit;

error log:

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Dialled numbers';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='S:\Trace\Trace Integrity Analyst Data\Projects and Tasks\3. Sandeep\Dialler\Dialler V1.egp';
6          %LET _CLIENTPROJECTPATHHOST='LWLT5CG9322XFL';
7          %LET _CLIENTPROJECTNAME='Dialler V1.egp';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         ODS LISTING GPATH=&amp;amp;sasworklocation;
18         FILENAME EGHTML TEMP;
19         ODS HTML5(ID=EGHTML) FILE=EGHTML
20             OPTIONS(BITMAP_MODE='INLINE')
21             %HTML5AccessibleGraphSupported
22             ENCODING='utf-8'
23             STYLE=HTMLBlue
24             NOGTITLE
25             NOGFOOTNOTE
26             GPATH=&amp;amp;sasworklocation
27         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
28         


29         proc sql;
30         create table Dialled_numbers as
31         select distinct
32         b.dcPhoneNumber /*is the number that was dialled */
33         
34         from work.confirmed_email as a
35         inner join DIALFILE.tDiallerCalls as b on a.account_number=b.dcaccountnumber
36         ;
NOTE: Compressing data set WORK.DIALLED_NUMBERS increased size by 39.29 percent. 
      Compressed is 117 pages; un-compressed would require 84 pages.
NOTE: Table WORK.DIALLED_NUMBERS created, with 302745 rows and 1 columns.

37         create table Not_Dialled_numbers as
38         select distinct
39         b.dcPhoneNumber
40         from work.confirmed_email as a
41         where account_number not in (select dcaccountnumber from DIALFILE.tDiallerCalls)
42         ;
ERROR: Unresolved reference to table/correlation name b.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
43         quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           11:43.41
      user cpu time       11:47.64
      system cpu time     1:32.53
      memory              6305153.67k
2                                                          The SAS System                            16:21 Tuesday, October 11, 2022

      OS Memory           6329244.00k
      Timestamp           10/11/2022 05:11:05 PM
      Step Count                        20  Switch Count  83
      
44         
45         %LET _CLIENTTASKLABEL=;
46         %LET _CLIENTPROCESSFLOWNAME=;
47         %LET _CLIENTPROJECTPATH=;
48         %LET _CLIENTPROJECTPATHHOST=;
49         %LET _CLIENTPROJECTNAME=;
50         %LET _SASPROGRAMFILE=;
51         %LET _SASPROGRAMFILEHOST=;
52         
53         ;*';*";*/;quit;run;
54         ODS _ALL_ CLOSE;
55         
56         
57         QUIT; RUN;
58         
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2022 16:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837880#M36195</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-10-11T16:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to find the remaining number from table 1</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837971#M36207</link>
      <description>&lt;P&gt;Just try to understand why the error message is telling you what's it's telling you and then it should be pretty simple to fix the code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1665540264954.png" style="width: 786px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76099iC4CC128BBACAA381/image-dimensions/786x163?v=v2" width="786" height="163" role="button" title="Patrick_0-1665540264954.png" alt="Patrick_0-1665540264954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 02:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Trying-to-find-the-remaining-number-from-table-1/m-p/837971#M36207</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-12T02:05:59Z</dc:date>
    </item>
  </channel>
</rss>

