<?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: I need to manipulate a previous sas program in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804325#M33411</link>
    <description>&lt;P&gt;You seem to be having a lot of trouble explaining what you want. It does not help that you appear to be using two different definitions of the word variable at the same time.&amp;nbsp; In SAS a dataset has one or more variables.&amp;nbsp; The dataset can have multiple observations.&amp;nbsp; Each observation in the dataset has one value for each of the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you are asking how to parse a string into multiple values?&amp;nbsp; If you have variable with values like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;B1.1.2
B2.2.3
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And you want to split those at the periods then use the SCAN() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   length new1-new3 $10;
   new1=scan(type,1,'.');
   new2=scan(type,2,'.');
   new3=scan(type,3,'.');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 27 Mar 2022 03:30:59 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-03-27T03:30:59Z</dc:date>
    <item>
      <title>I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803379#M33324</link>
      <description>&lt;P&gt;How do I format an old sas program that has one column of a list of different variables that need sorting. Especially if the variables have a period in their names?&amp;nbsp; I hope you understood.&amp;nbsp; Thank you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803379#M33324</guid>
      <dc:creator>zhawasli1</dc:creator>
      <dc:date>2022-03-22T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803382#M33325</link>
      <description>the question goes for finding a confidence interval for these variables that are categorical variables and when i did proc contents there was only one variable listed instead of the five different variables that are in the old sas program.  So I need to resort the program so it shows that there are five different variables instead of one and need an analysis of that data after its been manipulated.  I think I know how to do the analysis part but I'm having trouble with formatting the old information.</description>
      <pubDate>Tue, 22 Mar 2022 16:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803382#M33325</guid>
      <dc:creator>zhawasli1</dc:creator>
      <dc:date>2022-03-22T16:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803383#M33326</link>
      <description>&lt;P&gt;the question goes for finding a confidence interval for these variables that are categorical variables and when i did proc contents there was only one variable listed instead of the five different variables that are in the old sas program. So I need to resort the program so it shows that there are five different variables instead of one and need an analysis of that data after its been manipulated. I think I know how to do the analysis part but I'm having trouble with formatting the old information.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803383#M33326</guid>
      <dc:creator>zhawasli1</dc:creator>
      <dc:date>2022-03-22T16:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803390#M33327</link>
      <description>&lt;P&gt;Show the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variables typically do not have periods in their names. That would require creating variables with the System option VALIDVARNAME set to ANY and would require referencing them as name literals such as 'stupid.variablename'n&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/803390#M33327</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-22T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804266#M33407</link>
      <description />
      <pubDate>Sat, 26 Mar 2022 14:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804266#M33407</guid>
      <dc:creator>zhawasli1</dc:creator>
      <dc:date>2022-03-26T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804298#M33408</link>
      <description>&lt;P&gt;You posted a screenshot of something that seems to be showing a variable named TYPE.&amp;nbsp; Type looks like it is a character variable with values that contain periods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a quesiton?&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 21:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804298#M33408</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-26T21:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804311#M33410</link>
      <description>Yes, in this sas program under the proc contents it says one variable,  There are actually 206 observations with 5 different variables written in the same column.  How do I tell SAS that I need it to pick out each variable and count how many observations are for each variable?? Thanks&lt;BR /&gt;</description>
      <pubDate>Sat, 26 Mar 2022 23:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804311#M33410</guid>
      <dc:creator>zhawasli1</dc:creator>
      <dc:date>2022-03-26T23:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: I need to manipulate a previous sas program</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804325#M33411</link>
      <description>&lt;P&gt;You seem to be having a lot of trouble explaining what you want. It does not help that you appear to be using two different definitions of the word variable at the same time.&amp;nbsp; In SAS a dataset has one or more variables.&amp;nbsp; The dataset can have multiple observations.&amp;nbsp; Each observation in the dataset has one value for each of the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you are asking how to parse a string into multiple values?&amp;nbsp; If you have variable with values like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;B1.1.2
B2.2.3
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And you want to split those at the periods then use the SCAN() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   length new1-new3 $10;
   new1=scan(type,1,'.');
   new2=scan(type,2,'.');
   new3=scan(type,3,'.');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Mar 2022 03:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-need-to-manipulate-a-previous-sas-program/m-p/804325#M33411</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-27T03:30:59Z</dc:date>
    </item>
  </channel>
</rss>

