<?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 Joining the datasets in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815369#M34201</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have exported a CSV file from a location to SAS and now I am adding some information from the database. But I am not able to link that CSV file information from the database. I am missing something to link the information. Can you please guide? Here is the import step:&lt;/P&gt;&lt;P&gt;Proc import&lt;BR /&gt;datafile='\\test2.local\shares\public\Trace\Full_manual_trace_book.csv'&lt;BR /&gt;out=Manual_trace_full&lt;BR /&gt;dbms=csv&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Then I run this code to add further information to the accounts in imported file&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to oledb (provider=sqlncli11.1&lt;BR /&gt;properties = ("Integrated Security" = SSPI&lt;BR /&gt;"Persist Security Info" = False&lt;BR /&gt;"Initial Catalog" = pinsys&lt;BR /&gt;prompt = NO&lt;BR /&gt;"Data Source" = 'ELECTRA'&lt;BR /&gt;read_lock_type = no));&lt;BR /&gt;create table Manual_tracing as&lt;BR /&gt;select t2.debt_code,&lt;BR /&gt;t2.tran_code,&lt;BR /&gt;t2.td_altdescrn,&lt;BR /&gt;t2.td_stddescrn&lt;/P&gt;&lt;P&gt;from (select * from connection to oledb&lt;BR /&gt;(select&lt;BR /&gt;b.debt_code,&lt;BR /&gt;b.tran_code,&lt;BR /&gt;c.td_altdescrn,&lt;BR /&gt;c.td_stddescrn&lt;BR /&gt;&lt;BR /&gt;from [Pinsys].[dbo].[debt_trans] as b&lt;BR /&gt;inner join [Pinsys].[dbo].[transdescrn] as c&lt;BR /&gt;on b.Tran_code = c.Tran_code&lt;BR /&gt;where b.tran_code in ('JO741','JO742',);)) as t2&lt;/P&gt;&lt;P&gt;order by t2.debt_code;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the 2nd code, it takes the data from the database in thousands but my file just have few accounts. I am looking to add those extra information to those few accounts.&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 10:21:31 GMT</pubDate>
    <dc:creator>Sandeep77</dc:creator>
    <dc:date>2022-05-27T10:21:31Z</dc:date>
    <item>
      <title>Joining the datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815369#M34201</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have exported a CSV file from a location to SAS and now I am adding some information from the database. But I am not able to link that CSV file information from the database. I am missing something to link the information. Can you please guide? Here is the import step:&lt;/P&gt;&lt;P&gt;Proc import&lt;BR /&gt;datafile='\\test2.local\shares\public\Trace\Full_manual_trace_book.csv'&lt;BR /&gt;out=Manual_trace_full&lt;BR /&gt;dbms=csv&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Then I run this code to add further information to the accounts in imported file&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to oledb (provider=sqlncli11.1&lt;BR /&gt;properties = ("Integrated Security" = SSPI&lt;BR /&gt;"Persist Security Info" = False&lt;BR /&gt;"Initial Catalog" = pinsys&lt;BR /&gt;prompt = NO&lt;BR /&gt;"Data Source" = 'ELECTRA'&lt;BR /&gt;read_lock_type = no));&lt;BR /&gt;create table Manual_tracing as&lt;BR /&gt;select t2.debt_code,&lt;BR /&gt;t2.tran_code,&lt;BR /&gt;t2.td_altdescrn,&lt;BR /&gt;t2.td_stddescrn&lt;/P&gt;&lt;P&gt;from (select * from connection to oledb&lt;BR /&gt;(select&lt;BR /&gt;b.debt_code,&lt;BR /&gt;b.tran_code,&lt;BR /&gt;c.td_altdescrn,&lt;BR /&gt;c.td_stddescrn&lt;BR /&gt;&lt;BR /&gt;from [Pinsys].[dbo].[debt_trans] as b&lt;BR /&gt;inner join [Pinsys].[dbo].[transdescrn] as c&lt;BR /&gt;on b.Tran_code = c.Tran_code&lt;BR /&gt;where b.tran_code in ('JO741','JO742',);)) as t2&lt;/P&gt;&lt;P&gt;order by t2.debt_code;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the 2nd code, it takes the data from the database in thousands but my file just have few accounts. I am looking to add those extra information to those few accounts.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 10:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815369#M34201</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-05-27T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Joining the datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815785#M34254</link>
      <description>&lt;P&gt;It's all about understanding the information and the data that you work with.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's very hard for outsiders to chime in here.&lt;/P&gt;
&lt;P&gt;Please try to connect with persons at your site that has insight in the data, and can help you specify the desired outcome of your work.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 09:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815785#M34254</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-05-31T09:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Joining the datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815801#M34257</link>
      <description>&lt;P&gt;Are you asking how to push the information you got from the CSV file back into the remote database?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps you asking how to the extract some type of list of key identifiers from the CSV file and use that list to control which observations you pull from the remote database so that SAS does not try to pull all of the observations from the remote database?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Joining-the-datasets/m-p/815801#M34257</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-31T10:22:43Z</dc:date>
    </item>
  </channel>
</rss>

