<?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: Deleting an uninitialized variable while labeling in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687309#M24536</link>
    <description>&lt;P&gt;By using them in the LABEL statement, you&amp;nbsp;&lt;EM&gt;defined&lt;/EM&gt; the variables, but you&amp;nbsp;&lt;EM&gt;never assigned them a value&lt;/EM&gt;. That's why you get the "uninitialized" NOTE, and they only contain missing values.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:36:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-09-28T18:36:28Z</dc:date>
    <item>
      <title>Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687302#M24532</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've been trying to label two variables correcta and correctb, but they keep getting deleted.&lt;/P&gt;&lt;P&gt;I'm using this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data HW4set;
set mylib.HW4;
LABEL
correcta = "Correct Answers Pretest"
correctb = "Correct Answers Posttest"
p1p = "Pretest Question 1";
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The pretest and posttest questions (31 of them) all work with this code, but only the two variables correcta and correctb are 'uninitialized,' which I don't understand because they're in that data set as variables. The only difference is that they're created variables.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687302#M24532</guid>
      <dc:creator>Diana__</dc:creator>
      <dc:date>2020-09-28T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687304#M24533</link>
      <description>&lt;P&gt;What do you mean by created variables? That message is just telling you they were never assigned a value.&amp;nbsp; They should still be in the output dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you assign them a value, that message will not come up.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687304#M24533</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-28T18:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687308#M24535</link>
      <description>&lt;P&gt;This is before the code is run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Diana___1-1601317754169.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49901i37308DE7BB7614F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Diana___1-1601317754169.png" alt="Diana___1-1601317754169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And after:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Diana___0-1601317675819.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49900i06CEC049F014E7E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Diana___0-1601317675819.png" alt="Diana___0-1601317675819.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand what you mean by assigning a value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687308#M24535</guid>
      <dc:creator>Diana__</dc:creator>
      <dc:date>2020-09-28T18:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687309#M24536</link>
      <description>&lt;P&gt;By using them in the LABEL statement, you&amp;nbsp;&lt;EM&gt;defined&lt;/EM&gt; the variables, but you&amp;nbsp;&lt;EM&gt;never assigned them a value&lt;/EM&gt;. That's why you get the "uninitialized" NOTE, and they only contain missing values.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687309#M24536</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-28T18:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687310#M24537</link>
      <description>&lt;P&gt;You screen shots are of tables that do not reflect the code you submitted.&amp;nbsp; There are many more variable that the results screen shot that are to the left of the variable being shown.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible you are confusing the variable labels with the names?&amp;nbsp; By default the table viewer shows the variable labels, not the names.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687310#M24537</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-28T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687311#M24538</link>
      <description>&lt;P&gt;Assigning a new label to a variable doesn't delete it.&amp;nbsp; I suspect that the BEFORE dataset you are looking at is not the dataset that your code is reading (in library MYLIB).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you are working within SAS Studio, make sure you refresh your view when you recreate a dataset; SAS Studio doesn't do it for you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687311#M24538</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-09-28T18:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687314#M24539</link>
      <description>&lt;P&gt;Giving a variable (that does not exist) a label is not enough to create the variable.&amp;nbsp; For example...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;7    data test;
8       set sashelp.class;
9       label correcta='This is a label';
10      run;

NOTE: Variable correcta is uninitialized.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the contents of TEST.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 193px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49902iCF472B75FBE04E00/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687314#M24539</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-09-28T18:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an uninitialized variable while labeling</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687317#M24540</link>
      <description>&lt;P&gt;Isn't that a confusing message, about a variable that doesn't exist? I would prefer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: A label was assigned to nonexistent variable correcta.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Deleting-an-uninitialized-variable-while-labeling/m-p/687317#M24540</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-09-28T19:13:24Z</dc:date>
    </item>
  </channel>
</rss>

