<?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: Proc sql :Insert a Row at the end of the data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768345#M243712</link>
    <description>&lt;P&gt;Thank you, Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how to do it in one step. This code doesn't work :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarieT_0-1631903622699.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63689iF0202FC9EF8567C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarieT_0-1631903622699.png" alt="MarieT_0-1631903622699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 18:34:16 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2021-09-17T18:34:16Z</dc:date>
    <item>
      <title>Proc sql :Insert a Row at the end of the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768335#M243704</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering how to insert on proc sql the row at the and of data with the value&amp;nbsp;LB_UT="Another value"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
create table test as select rga.LB_LONG as LB_UT from  PSAEU11.DB_RGA rga, PSAEU11.DB_DOSSIER sousc, PSAEU11.DB_CTRAT_SUPPORT db_ctrat,
             PSAEU11.DB_PROTOCOLE  proto, PSAEU11.DB_TIERS  tiers1,
             PSAEU11.DB_PERSONNE  personne1,
             PSAEU11.DB_PORTEFEUILLE  portef, PSAEU11.DB_TIERS  tiers2, PSAEU11.DB_PERSONNE  personne2,
             PSAEU11.DB_TIERS tiers3, PSAEU11.DB_PERSONNE personne3
             where personne2.S_RAISONSOC="UBS (FRANCE) S.A." and personne3.S_RAISONSOC="AMPLEGEST" and sousc.CD_DOSSIER in ('CHOP','CHOC') and sousc.LP_ETAT_DOSS not in ('ANNUL','A30','CLOSE')
             and sousc.IS_DOSSIER=db_ctrat.IS_DOSSIER
             and  sousc.is_protocole=proto.is_protocole
             and  sousc.is_tiers=tiers1.is_tiers
             and  tiers1.is_personne=personne1.is_personne
             and  (db_ctrat.ID_FAMILLE_PORTEF||' '||db_ctrat.ID_PORTEFEUILLE)=(portef.ID_FAMILLE_PORTEF||' '||portef.ID_PORTEFEUILLE)
             and  portef.is_tiers_depositaire=tiers2.IS_TIERS
             and  tiers2.is_personne=personne2.IS_PERSONNE
             and  sousc.IS_TIERS=tiers3.IS_TIERS
             and tiers3.is_personne=personne3.is_personne
             and db_ctrat.IS_RGA=rga.IS_RGA;
			 quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you very much !&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 17:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768335#M243704</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-09-17T17:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql :Insert a Row at the end of the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768342#M243711</link>
      <description>&lt;P&gt;What is it you want to do?&lt;BR /&gt;If you want to add an observation to an existing dataset use PROC APPEND of in PROC SQL use the INSERT statement.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 17:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768342#M243711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-17T17:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql :Insert a Row at the end of the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768345#M243712</link>
      <description>&lt;P&gt;Thank you, Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how to do it in one step. This code doesn't work :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarieT_0-1631903622699.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63689iF0202FC9EF8567C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarieT_0-1631903622699.png" alt="MarieT_0-1631903622699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 18:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768345#M243712</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-09-17T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql :Insert a Row at the end of the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768348#M243714</link>
      <description>&lt;P&gt;Insert into is a separate SQL statement. You must end the preceeding statement with a semicolon before the select into statement.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 18:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-Insert-a-Row-at-the-end-of-the-data/m-p/768348#M243714</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-09-17T18:55:32Z</dc:date>
    </item>
  </channel>
</rss>

