<?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: How come the first row values are null when input data to create a new data set? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147768#M297522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be something you did between the two SQL steps. Running the code you provided simply doesn't give an empty first observation. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 16:44:17 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-08-04T16:44:17Z</dc:date>
    <item>
      <title>How come the first row values are null when input data to create a new data set?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147766#M297520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc Hi guys,&lt;/P&gt;&lt;P&gt;I worte the following code to create a data set named CC and then insert 6 observations into the new data set CC.&lt;/P&gt;&lt;P&gt;However, the data set comes with first row value of each variable are null, it is from the second row to the seventh row that contains the obs that I just inserted.&lt;/P&gt;&lt;P&gt;How come I receive this result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt; create table CC&lt;BR /&gt; (ID char(3),&lt;BR /&gt;&amp;nbsp; Name char(6),&lt;BR /&gt;&amp;nbsp; JobCode char(3),&lt;BR /&gt;&amp;nbsp; Salary num);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt; insert into Cc&lt;BR /&gt; values ('001','Albert','PT1',50000)&lt;BR /&gt; values ('002','Brenda','PT1',70000)&lt;BR /&gt; values ('003','Carl','PT1',60000)&lt;BR /&gt; values ('004','Donna','PT2',80000)&lt;BR /&gt; values ('005','Edward','PT2',90000)&lt;BR /&gt; values ('006','Flora','PT3',100000);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jobcode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Salary&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&amp;nbsp; 001&amp;nbsp; Albert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PT1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50000&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 001 Brenda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PT1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70000&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, if I input variable values directly in Viewtable just like we input data in Excel, then how to insert the variable names into the data set? If I've already change the default variable attribute and lead to that I cannot put variable name above numeric and length specified column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 15:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147766#M297520</guid>
      <dc:creator>chouchou</dc:creator>
      <dc:date>2014-08-04T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How come the first row values are null when input data to create a new data set?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147767#M297521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make sure you don't have Cc table already created with one empty observation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147767#M297521</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-04T16:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How come the first row values are null when input data to create a new data set?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147768#M297522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be something you did between the two SQL steps. Running the code you provided simply doesn't give an empty first observation. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-come-the-first-row-values-are-null-when-input-data-to-create/m-p/147768#M297522</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-08-04T16:44:17Z</dc:date>
    </item>
  </channel>
</rss>

