<?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 How do I add dummy values in blank character sas field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243125#M45212</link>
    <description>&lt;P&gt;data abhi;&lt;BR /&gt;input a b c d ;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 6 .&lt;BR /&gt;2 3 8 .&lt;BR /&gt;3 5 9 .&lt;BR /&gt;4 6 2 .&lt;BR /&gt;5 8 1 .&lt;BR /&gt;;&lt;BR /&gt;proc print data = abhi;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;re&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;results:&lt;/P&gt;&lt;P&gt;a b c d&lt;BR /&gt;1 2 6 .&lt;BR /&gt;2 3 8 .&lt;BR /&gt;3 5 9 .&lt;BR /&gt;4 6 2 .&lt;/P&gt;&lt;P&gt;Here we have d which is not having a blank value. Now I want to add some dummy values into the 'd' sas field after this step.&lt;BR /&gt;and results should look like given below. Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dummy values are:&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;8&lt;/P&gt;&lt;P&gt;results should looks like.&lt;/P&gt;&lt;P&gt;a b c d&lt;BR /&gt;1 2 6 5&lt;BR /&gt;2 3 8 6&lt;BR /&gt;3 5 9 7&lt;BR /&gt;4 6 2 8&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 06:46:19 GMT</pubDate>
    <dc:creator>Tyagii</dc:creator>
    <dc:date>2016-01-13T06:46:19Z</dc:date>
    <item>
      <title>How do I add dummy values in blank character sas field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243125#M45212</link>
      <description>&lt;P&gt;data abhi;&lt;BR /&gt;input a b c d ;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 6 .&lt;BR /&gt;2 3 8 .&lt;BR /&gt;3 5 9 .&lt;BR /&gt;4 6 2 .&lt;BR /&gt;5 8 1 .&lt;BR /&gt;;&lt;BR /&gt;proc print data = abhi;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;re&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;results:&lt;/P&gt;&lt;P&gt;a b c d&lt;BR /&gt;1 2 6 .&lt;BR /&gt;2 3 8 .&lt;BR /&gt;3 5 9 .&lt;BR /&gt;4 6 2 .&lt;/P&gt;&lt;P&gt;Here we have d which is not having a blank value. Now I want to add some dummy values into the 'd' sas field after this step.&lt;BR /&gt;and results should look like given below. Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dummy values are:&lt;BR /&gt;5&lt;BR /&gt;6&lt;BR /&gt;7&lt;BR /&gt;8&lt;/P&gt;&lt;P&gt;results should looks like.&lt;/P&gt;&lt;P&gt;a b c d&lt;BR /&gt;1 2 6 5&lt;BR /&gt;2 3 8 6&lt;BR /&gt;3 5 9 7&lt;BR /&gt;4 6 2 8&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 06:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243125#M45212</guid>
      <dc:creator>Tyagii</dc:creator>
      <dc:date>2016-01-13T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add dummy values in blank character sas field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243130#M45213</link>
      <description>&lt;P&gt;Not Sure I understand what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abhi;
input a b c d ;
datalines;
1 2 6 .
2 3 8 .
3 5 9 .
4 6 2 .
;
data Dummy;
input Dummy;
cards;
5
6
7
8
;
run;
data want;
 merge abhi Dummy(rename=(Dummy=d));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243130#M45213</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-13T07:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add dummy values in blank character sas field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243140#M45214</link>
      <description>&lt;P&gt;Thanks. you understand correctly. but i dont want to use cards or datalines. Can you please do the same without cards or datalines.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243140#M45214</guid>
      <dc:creator>Tyagii</dc:creator>
      <dc:date>2016-01-13T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add dummy values in blank character sas field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243145#M45215</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like (Note the use of indentation, and finishing a datastep/procedure correctly with run; or quit;) - code can be placed in posts using the {i} in the toolbar.&lt;/P&gt;
&lt;PRE&gt;data abhi;
  input a b c d;
  d=_n_+4;
datalines;
1 2 6 .
2 3 8 .
3 5 9 .
4 6 2 .
5 8 1 .
;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243145#M45215</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-13T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add dummy values in blank character sas field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243156#M45216</link>
      <description>&lt;HR /&gt;
&lt;P&gt;Tyagii schrieb:&lt;/P&gt;
&lt;P&gt;Thanks. you understand correctly. but i dont want to use cards or datalines. Can you please do the same without cards or datalines.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To suggest any datasource other than datalines/cards you have to explain where the dummy-values come from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using output-statement is always possible ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; Dummy&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  Dummy = &lt;SPAN class="token datalines"&gt;&lt;SPAN class="token data string"&gt;5; output;
  Dummy = 6; output;
/* ... */&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 10:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-dummy-values-in-blank-character-sas-field/m-p/243156#M45216</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2016-01-13T10:56:56Z</dc:date>
    </item>
  </channel>
</rss>

