<?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 Using SET to insert rows in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-SET-to-insert-rows/m-p/534358#M73877</link>
    <description>&lt;P&gt;I am trying to add two new rows into my table. There is no value for either player for a salary column. This is the code I have been trying but it is giving me an error, saying "It is invalid to assign a character expression to a numeric value using the SET clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC sql;&lt;BR /&gt;INSERT into work.baseball2&lt;BR /&gt;SET name='Babe Ruth', team='New York', league='American', YrMajor='22', CrAtBat='8399', CrHits='2873', CrHome='714', CrRuns='1416', CrRbi='1305', CrBB='621', position='left fielder'&lt;BR /&gt;SET name='Roberto Clemente', team='Pittsburgh', league='National', YrMajor='18', CrAtBat='9454', CrHits='3000', CrHome='240', CrRuns='1416', CrRbi='1305', CrBB='621', position='right fielder';&lt;BR /&gt;SELECT * from work.baseball2;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 02:13:56 GMT</pubDate>
    <dc:creator>Steelersgirl</dc:creator>
    <dc:date>2019-02-11T02:13:56Z</dc:date>
    <item>
      <title>Using SET to insert rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-SET-to-insert-rows/m-p/534358#M73877</link>
      <description>&lt;P&gt;I am trying to add two new rows into my table. There is no value for either player for a salary column. This is the code I have been trying but it is giving me an error, saying "It is invalid to assign a character expression to a numeric value using the SET clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC sql;&lt;BR /&gt;INSERT into work.baseball2&lt;BR /&gt;SET name='Babe Ruth', team='New York', league='American', YrMajor='22', CrAtBat='8399', CrHits='2873', CrHome='714', CrRuns='1416', CrRbi='1305', CrBB='621', position='left fielder'&lt;BR /&gt;SET name='Roberto Clemente', team='Pittsburgh', league='National', YrMajor='18', CrAtBat='9454', CrHits='3000', CrHome='240', CrRuns='1416', CrRbi='1305', CrBB='621', position='right fielder';&lt;BR /&gt;SELECT * from work.baseball2;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 02:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-SET-to-insert-rows/m-p/534358#M73877</guid>
      <dc:creator>Steelersgirl</dc:creator>
      <dc:date>2019-02-11T02:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using SET to insert rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-SET-to-insert-rows/m-p/534359#M73878</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The note is very clear here, your are trying to give characters values instead of numeric values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'22' ---&amp;gt; This is character&amp;nbsp;&lt;/P&gt;
&lt;P&gt;22 ---&amp;gt; This is numeric, avoid using the quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First check which columns are numeric and which are characters by any of these:&lt;/P&gt;
&lt;P&gt;- Describe table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- proc datasets&lt;/P&gt;
&lt;P&gt;- dictionary tables&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 02:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-SET-to-insert-rows/m-p/534359#M73878</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-02-11T02:32:13Z</dc:date>
    </item>
  </channel>
</rss>

