<?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: Stuck in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466674#M119100</link>
    <description>&lt;P&gt;This is my solution it just puts periods in the boxes instead of any names&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 23:15:56 GMT</pubDate>
    <dc:creator>randythomas84</dc:creator>
    <dc:date>2018-05-31T23:15:56Z</dc:date>
    <item>
      <title>Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466671#M119098</link>
      <description>&lt;P&gt;I am working on something right now and I am stuck.. can anyone help me??&lt;BR /&gt;Data set Errors contains character variables Subj (3 bytes) and PartNumber (8 bytes). create a temporary SAS data set (Check1) with any observations in Errors that violates either of the following two rules: first, Subj should contain only digits, and second PartNumber should contain only the upper case letters L and S and the Digits.&lt;/P&gt;&lt;P&gt;it gives you a set of Datalines which are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;datalines;&lt;SPAN class="text_exposed_show"&gt;&lt;BR /&gt;001 L1232 Nichole Brown&lt;BR /&gt;0a2 L887X Fred Beans&lt;BR /&gt;003 12321 Alfred 2 Nice&lt;BR /&gt;004 abcde Mary Bumpers&lt;BR /&gt;x89 8888S Gill Sandford&lt;BR /&gt;;&lt;BR /&gt;My Solution isn't working&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="text_exposed_show"&gt;&lt;P&gt;data a15009.errors;&lt;BR /&gt;input subj&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;PartsNumber&lt;BR /&gt;Name&lt;BR /&gt;;&lt;BR /&gt;datalines;&lt;BR /&gt;001 L1232 Nichole Brown&lt;BR /&gt;0a2 L887X Fred Beans&lt;BR /&gt;003 12321 Alfred 2 Nice&lt;BR /&gt;004 abcde Mary Bumpers&lt;BR /&gt;x89 8888S Gill Sandford&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;Proc Print data = a15009.errors;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Please Help!!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 May 2018 23:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466671#M119098</guid>
      <dc:creator>randythomas84</dc:creator>
      <dc:date>2018-05-31T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466673#M119099</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213099"&gt;@randythomas84&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN class="text_exposed_show"&gt;&lt;BR /&gt;My Solution isn't working&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class="text_exposed_show"&gt;Can you post your non-working solution so we can see what approach you're taking?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213099"&gt;@randythomas84&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am working on something right now and I am stuck.. can anyone help me??&lt;BR /&gt;Data set Errors contains character variables Subj (3 bytes) and PartNumber (8 bytes). create a temporary SAS data set (Check1) with any observations in Errors that violates either of the following two rules: first, Subj should contain only digits, and second PartNumber should contain only the upper case letters L and S and the Digits.&lt;/P&gt;
&lt;P&gt;it gives you a set of Datalines which are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;datalines;&lt;SPAN class="text_exposed_show"&gt;&lt;BR /&gt;001 L1232 Nichole Brown&lt;BR /&gt;0a2 L887X Fred Beans&lt;BR /&gt;003 12321 Alfred 2 Nice&lt;BR /&gt;004 abcde Mary Bumpers&lt;BR /&gt;x89 8888S Gill Sandford&lt;BR /&gt;;&lt;BR /&gt;My Solution isn't working&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="text_exposed_show"&gt;
&lt;P&gt;data a15009.errors;&lt;BR /&gt;input subj&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;PartsNumber&lt;BR /&gt;Name&lt;BR /&gt;;&lt;BR /&gt;datalines;&lt;BR /&gt;001 L1232 Nichole Brown&lt;BR /&gt;0a2 L887X Fred Beans&lt;BR /&gt;003 12321 Alfred 2 Nice&lt;BR /&gt;004 abcde Mary Bumpers&lt;BR /&gt;x89 8888S Gill Sandford&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;Proc Print data = a15009.errors;&lt;BR /&gt;Run;&lt;/P&gt;
&lt;P&gt;Please Help!!&lt;/P&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 31 May 2018 23:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466673#M119099</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-31T23:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466674#M119100</link>
      <description>&lt;P&gt;This is my solution it just puts periods in the boxes instead of any names&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 23:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466674#M119100</guid>
      <dc:creator>randythomas84</dc:creator>
      <dc:date>2018-05-31T23:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466675#M119101</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data  errors;
input subj 
PartsNumber
Name
;
datalines;
001 L1232 Nichole Brown
0a2 L887X Fred Beans
003 12321 Alfred 2 Nice
004 abcde Mary Bumpers
x89 8888S Gill Sandford
;
run;

data correct;
infile cards truncover;
input subj  $
PartsNumber $
Name &amp;amp; $20.
;
datalines;
001 L1232 Nichole Brown
0a2 L887X Fred Beans
003 12321 Alfred 2 Nice
004 abcde Mary Bumpers
x89 8888S Gill Sandford
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 23:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466675#M119101</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-31T23:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466678#M119102</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20923i95FC09060C580E33/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS.JPG" alt="SAS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is still just giving periods instead of giving me the errors and correcting them.&lt;/P&gt;&lt;P&gt;As I read it it should display everything with corrections correct?&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 23:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466678#M119102</guid>
      <dc:creator>randythomas84</dc:creator>
      <dc:date>2018-05-31T23:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466679#M119103</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213099"&gt;@randythomas84&lt;/a&gt;&amp;nbsp; Try applying the conditions listed in the question with an &lt;EM&gt;&lt;STRONG&gt;if then statement&lt;/STRONG&gt; &lt;/EM&gt;after the input statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please attempt. Trust me you will get the hang of it&lt;/P&gt;&lt;P&gt;for a start if anyalpha(subj)&amp;gt;0 or notdigit(subj)&amp;gt;0 will indicate presence of chars other than digits. My request is for you to try and come back to community to make the discussion more interesting and interactive please&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 23:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466679#M119103</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-31T23:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466682#M119105</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;I would love too only i'm just starting to use SAS and I have no clue what I'm doing still.. I'm sorry I really don't I'm working on it but the syntax is a little weird to me.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 23:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466682#M119105</guid>
      <dc:creator>randythomas84</dc:creator>
      <dc:date>2018-05-31T23:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466691#M119110</link>
      <description>&lt;P&gt;meddle with this code and change the conditions as necessary:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data errors correct all;
infile cards truncover;
input subj  $
PartsNumber $
Name &amp;amp; $20.;
if anyalpha(subj)&amp;gt;0 or length(compress(partsnumber,'LS','n'))&amp;gt;0 then output errors;
else output correct;
output all;
;
datalines;
001 L1232 Nichole Brown
0a2 L887X Fred Beans
003 12321 Alfred 2 Nice
004 abcde Mary Bumpers
x89 8888S Gill Sandford
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 23:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck/m-p/466691#M119110</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-31T23:57:53Z</dc:date>
    </item>
  </channel>
</rss>

