<?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: can any one solve this and let me know what is the problem with the code in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964725#M1545</link>
    <description>&lt;P&gt;I have fixed a few things here, perhaps this is all of the things that are wrong, or perhaps not, you didn't really tell us what is wrong, and you SHOULD tell us what is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data SRT;
infile datalines dlmstr='~' truncover;
input ProjID $ Manager :$15. Budget CompletionPercent;
datalines;
P001~James Lee~100000~85
P002~Sophia Ray~120000~90
P003~Michael Chen~75
P004~Emma Stone~95000~.
P005~Olivia Park~110000~88
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS doesn't really know what separates the fields in your data, the default is a space, but that won't work because the field MANAGER must contain a space. So in this example, I have forced the character ~ to be used as the separator between the fields.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Apr 2025 19:00:10 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-04-20T19:00:10Z</dc:date>
    <item>
      <title>Datastep Input: wat is the problem with my code?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964724#M1544</link>
      <description>&lt;P&gt;data SRT;&lt;BR /&gt;input ProjID $ Manager :$15. Budget CompletionPercent;&lt;BR /&gt;datalines;&lt;BR /&gt;P001 James Lee 100000 85&lt;BR /&gt;P002 Sophia Ray 120000 90&lt;BR /&gt;P003 Michael Chen 75&lt;BR /&gt;P004 Emma Stone 95000 .&lt;BR /&gt;P005 Olivia Park 110000 88&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data=SRT;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 15:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964724#M1544</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-04-22T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: can any one solve this and let me know what is the problem with the code</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964725#M1545</link>
      <description>&lt;P&gt;I have fixed a few things here, perhaps this is all of the things that are wrong, or perhaps not, you didn't really tell us what is wrong, and you SHOULD tell us what is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data SRT;
infile datalines dlmstr='~' truncover;
input ProjID $ Manager :$15. Budget CompletionPercent;
datalines;
P001~James Lee~100000~85
P002~Sophia Ray~120000~90
P003~Michael Chen~75
P004~Emma Stone~95000~.
P005~Olivia Park~110000~88
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS doesn't really know what separates the fields in your data, the default is a space, but that won't work because the field MANAGER must contain a space. So in this example, I have forced the character ~ to be used as the separator between the fields.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 19:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964725#M1545</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-04-20T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: can any one solve this and let me know what is the problem with the code</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964730#M1546</link>
      <description>&lt;P&gt;I think you should post your code or data with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1745197502914.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106385i0B9E6EFB399CE93D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1745197502914.png" alt="Ksharp_0-1745197502914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise it would eat your multiple blanks, like there are four blanks in your data,but display it only one blank.&lt;/P&gt;
&lt;PRE&gt;data SRT;
input ProjID $ Manager&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; &amp;amp;&lt;/STRONG&gt;&lt;/FONT&gt; $15. Budget CompletionPercent;
datalines;
P001 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;James Lee    &lt;/FONT&gt;  &lt;FONT color="#FF0000"&gt;100000&lt;/FONT&gt;&lt;/STRONG&gt; 85
P002 Sophia Ray     120000 90
P003 Michael Chen   75
P004 Emma Stone     95000 .
P005 Olivia Park    110000 88
;
run;

proc print data=SRT;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1745197687024.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106386i891D80C53FCC2C14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1745197687024.png" alt="Ksharp_1-1745197687024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 01:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964730#M1546</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-21T01:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: can any one solve this and let me know what is the problem with the code</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964738#M1547</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&amp;nbsp;Good point!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But how did you know 4 blanks were compressed into 1?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 10:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964738#M1547</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-04-21T10:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: can any one solve this and let me know what is the problem with the code</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964818#M1548</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt; &lt;BR /&gt;I tried it before. One time I posted the data step without the running man icon, I found multiple blanks compressed into 1.&lt;BR /&gt;If you don't believe it, you could try it.</description>
      <pubDate>Tue, 22 Apr 2025 09:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964818#M1548</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-22T09:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: can any one solve this and let me know what is the problem with the code</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964820#M1549</link>
      <description>&lt;P&gt;Thanks. I do believe you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like the OP has vanished.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/964820#M1549</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-04-22T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: can any one solve this and let me know what is the problem with the code</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/966264#M1552</link>
      <description>&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 17:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Datastep-Input-wat-is-the-problem-with-my-code/m-p/966264#M1552</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-11T17:16:54Z</dc:date>
    </item>
  </channel>
</rss>

