<?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>ilikesas Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>ilikesas Tracker</description>
    <pubDate>Sun, 24 May 2026 19:23:12 GMT</pubDate>
    <dc:date>2026-05-24T19:23:12Z</dc:date>
    <item>
      <title>random numbers without repetition</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/random-numbers-without-repetition/m-p/773793#M37817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to generate say 100 data points each having 4 variables, and each variable is a random number between 1 and 10 such that each of the 4 variables is unique for a given data point, i.e, no repetition on the data points level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 23:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/random-numbers-without-repetition/m-p/773793#M37817</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2021-10-12T23:05:52Z</dc:date>
    </item>
    <item>
      <title>forecasting with categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/651788#M3847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a time series with the following independent variables:&lt;/P&gt;
&lt;P&gt;time, vendor, product, miles driven&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;time is the time variable (1,2,3,... corresponding to months)&lt;/P&gt;
&lt;P&gt;vendor and product are categorical variables&lt;/P&gt;
&lt;P&gt;miles driven is a quantitative variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will it be statistically correct if I did the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc autoreg data=MyData;
 class vendor product;
model sales = vendor product miles_driven;
 run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Its just that the few times when I did time series I only had time as an independent variable, but here there are categorical and quantitative variables as well so I just want to make sure that using the proc autoreg will yield meaningful results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/forecasting-with-categorical-variables/m-p/651788#M3847</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2020-05-29T17:13:29Z</dc:date>
    </item>
    <item>
      <title>forecasting with categorical and quantitative variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/forecasting-with-categorical-and-quantitative-variables/m-p/651548#M31274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a time series with the following independent variables:&lt;/P&gt;
&lt;P&gt;time, vendor, product, miles driven&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;time is the time variable&lt;/P&gt;
&lt;P&gt;vendor and product are categorical variables&lt;/P&gt;
&lt;P&gt;miles driven is a quantitative variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will it be statistically correct if I did the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc autoreg data=MyData;
 class vendor product;
model sales = vendor product miles_driven;
 run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Its just that the few times when I did time series I only had time as an independent variable, but here there are categorical and quantitative variables as well so I just want to make sure that using the proc autoreg will yield meaningful results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 20:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/forecasting-with-categorical-and-quantitative-variables/m-p/651548#M31274</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2020-05-28T20:40:09Z</dc:date>
    </item>
    <item>
      <title>accessing variable names through loop</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/accessing-variable-names-through-loop/m-p/580437#M17756</link>
      <description>&lt;P&gt;I have the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input num x1 x2 x3;&lt;BR /&gt;datalines;&lt;BR /&gt;1 . . .&lt;BR /&gt;2 . . .&lt;BR /&gt;3 . . . &lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;suppose i want to make a multiplication table (pseudo code)&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;do i=1 to 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; x&amp;amp;i = number*i;&lt;/P&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, the variables x1-x3 contain in them information, namely, the multiplication factor, so I want using a loop to "assemble" the variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 22:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/accessing-variable-names-through-loop/m-p/580437#M17756</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2019-08-11T22:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain all possible pairs from a list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470498#M120419</link>
      <description>&lt;P&gt;These combinations include duplicates and same-element combinations, whereas I don't want these duplicates and same element combinations - how would I in this case delete the duplicates and same value combs?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 01:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470498#M120419</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-06-15T01:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain all possible pairs from a list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470472#M120407</link>
      <description>&lt;P&gt;Hi PaigeMiller,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this code is quite simple, and I didn't even think of it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this code has repetitions, that is, since I have 5 elements it gives me all the pairs twice and also the pair of each element with itself&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5sq = 25 pairs,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but if I want the unique non-same pairs I should get (25-5)/2 = 10 pairs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 22:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470472#M120407</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-06-14T22:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain all possible pairs from a list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470470#M120406</link>
      <description>&lt;P&gt;Hi novinsorin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not familiar with hash, is it possible to get the solution in a macro form similar to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;select element&lt;BR /&gt;into :element_list separated by ' '&lt;BR /&gt;from have&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(element)&lt;BR /&gt;into :n&lt;BR /&gt;from have&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;element_list;&lt;BR /&gt;%put &amp;amp;n;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro m1;&lt;BR /&gt;data want;&lt;BR /&gt;%do i=1 %to &amp;amp;n;&lt;BR /&gt;%let var1=%scan(&amp;amp;element_list,&amp;amp;i);&lt;BR /&gt;var1=&amp;amp;var1;&lt;/P&gt;
&lt;P&gt;%end;&lt;BR /&gt;%mend m1;&lt;BR /&gt;%m1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 22:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470470#M120406</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-06-14T22:30:12Z</dc:date>
    </item>
    <item>
      <title>Obtain all possible pairs from a list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470463#M120402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input element$ 1-2 qt;&lt;BR /&gt;datalines;&lt;BR /&gt;A 1&lt;BR /&gt;B 2&lt;BR /&gt;Cc3&lt;BR /&gt;D 4&lt;BR /&gt;Ee5&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to obtain all possible pairs like this:&lt;/P&gt;
&lt;P&gt;A B&lt;/P&gt;
&lt;P&gt;A Cc&lt;/P&gt;
&lt;P&gt;A D&lt;/P&gt;
&lt;P&gt;A Ee&lt;/P&gt;
&lt;P&gt;B Cc&lt;/P&gt;
&lt;P&gt;B D&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 22:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-all-possible-pairs-from-a-list/m-p/470463#M120402</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-06-14T22:07:59Z</dc:date>
    </item>
    <item>
      <title>output regression statistic into a table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/output-regression-statistic-into-a-table/m-p/429516#M22563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=Sashelp.Cars plots=none;  
   model Horsepower = EngineSize Weight / vif r influence;
output out=the_output
rstudent = rstudent
h =h
cookd = cookd;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;basically I would like to have the statistic such as rstudent and cookd to be output into a new table, the_output, but it is always empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 01:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/output-regression-statistic-into-a-table/m-p/429516#M22563</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-22T01:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: selecting observations based on their relative position to other observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/429480#M281187</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as you can see I included the additional "industry" variable.&lt;/P&gt;
&lt;P&gt;So I guess that for more variables I will have to repeat the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 17:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/429480#M281187</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-21T17:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: selecting observations based on their relative position to other observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/427491#M281185</link>
      <description>&lt;P&gt;Thanks for the code.&lt;/P&gt;
&lt;P&gt;I managed to include an additional "industry" variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have2 ;
retain _flag 0 _line _n _line2 _n2 ;
if find(line, "stock")&amp;gt;0 then do;
__n=0;
_flag=1;
_n=n;
_line=line;
end;
if _flag then __n+1;
if __n=3 then do;
_n2=n;
_line2=line;
end;
if __n=5 then do;
n=_n;
industry=line;
price=_line2;
line=_line;
output;
end;
drop _: ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so I guess that if I had more variables to create I would just repeat the process&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 00:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/427491#M281185</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-14T00:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: selecting observations based on their relative position to other observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425671#M281183</link>
      <description>&lt;P&gt;Hi novinosrin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the line in your code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;else if index(line,'$')&amp;gt;0 then do;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if I understand correctly the code looks for the symbol "$", but in my case I have many useless lines that contain the symbol "$", so it is really the relative position of the lines from the line that contains the word "stock" that are important&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 03:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425671#M281183</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-08T03:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: selecting observations based on their relative position to other observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425612#M281178</link>
      <description>&lt;P&gt;Hi draycut,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for the code, worked perfectly!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possible to expand the code, in my case I have more variables of interest. For example, the 4th line after the line that contains the word "stock" I have its industry:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have2;
input n line $50.;
datalines;
30  doidn
31  fifeniofe
32  doewiij
33  fofugrugr
34	text jdjdjf stock IBM
35	djdff 
36	25$
37  fg fgg
38	computers
39	text jdjdjf stock AAA
40	djdff 
41	22$
42  fggh
43	food
44	text jdjdjf stock BBB
45	djdff 
46	55$
47  duehuefhu
48	automotive
49  dfeoufeijer
50  ierhde43848
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using your code I did the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want2;
   merge have2 have2(firstobs=3 rename=(line=price)) have2(firstobs=5 rename=(line=industry));
   if find(line, "stock")&amp;gt;0 then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And also got the result that I wanted!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to ask for your opinion on the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) In my data I have tens to hundreds of thousands of lines (most of them useless) and 5 to 7 variables that I need to extract, so this would mean merging 5 to 7 times the same data table just like above. Is this a good approach, i.e, could there be efficiency or some other problems (like the computer freezing for example)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Recently I worked on some data where I also had to restructure it into a more analysis-friendly form using Excel VBA. Looking at my data I would perhaps do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Loop through my original data until I find the word "stock". Once I find it, remember the cells row r and paste the cell's content into&lt;/P&gt;
&lt;P&gt;a new spreadsheet in cell (1,2) (the first column in the new sheet is the stock, second column price etc).&lt;/P&gt;
&lt;P&gt;In the original sheet the contents of the cell with row = r+2 are the stock's price and so they will be pasted into the new sheet's cell (2,2), and so on for the other variables...&lt;/P&gt;
&lt;P&gt;And when I reach a new cell with the word "stock" I go to the next line in the new sheet.&lt;/P&gt;
&lt;P&gt;It seems, at least to me, that using cells is easier conceptually (because I couldn't figure out how to do the above mentioned data restructuring using SAS), so is it possible to "cellulize" data in SAS? Is it even worth it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 17:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425612#M281178</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-07T17:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: selecting observations based on their relative position to other observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425609#M281176</link>
      <description>&lt;P&gt;Hi mkeintz,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since my data is generated externally, lets assume that I already imported data&amp;nbsp;equivalent to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input line $ 1-10;  
datalines;
xxx
stock AAA
aaa
11$
xxx
xxx
stock BBBB
bbb
22$
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is now that I need to do the process described in the question. I tried to guess based on your code by doing the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt; set have;&lt;BR /&gt; input @ 'stock' stock :$5. // price :$5.;&lt;BR /&gt; put (_all_) (=);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But unsurprisingly it didn't work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425609#M281176</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-07T16:22:05Z</dc:date>
    </item>
    <item>
      <title>selecting observations based on their relative position to other observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425599#M281172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;suppose I have a table with a somewhat complex data structure like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="180"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;n&lt;/TD&gt;
&lt;TD width="116"&gt;line&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;…&lt;/TD&gt;
&lt;TD&gt;…&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;text jdjdjf stock&amp;nbsp;IBM&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;35&lt;/TD&gt;
&lt;TD&gt;djdff&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;36&lt;/TD&gt;
&lt;TD&gt;25$&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;…&lt;/TD&gt;
&lt;TD&gt;…&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever I have a line with the word "stock" in it, the actual price is always 2 lines below. So what I would like to have is the following structure:&lt;/P&gt;
&lt;TABLE width="244"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;n&lt;/TD&gt;
&lt;TD width="116"&gt;line&lt;/TD&gt;
&lt;TD width="64"&gt;price&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;text jdjdjf stock IBM&lt;/TD&gt;
&lt;TD&gt;25$&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like this the stock and its price are on the same observations and its possible to make an analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/selecting-observations-based-on-their-relative-position-to-other/m-p/425599#M281172</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-07T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effects with interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/424758#M22340</link>
      <description>&lt;P&gt;The paper upon which we base our research indeed treats the variables as fixed effects and even mentions that he used SAS proc glm, so the project supervisor wants to use fixed effects as well. But indeed the variables somewhat look like random effects, so she said that we will also do a mixed model!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/424758#M22340</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-03T21:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effects with interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/424746#M22338</link>
      <description>&lt;P&gt;I hope that I am not becoming too annoying...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I do&amp;nbsp;&lt;SPAN&gt;model Cholesterol = Sex BP_Status weight smoking / ss3; I do get only the SS3, but now I don't have the coefficients of the independent variables and their t values. Is it possible to get them without the coefficients of the categories of the CLASS variables? My concern is that if I have too many variables due to the fixed effects SAS will get overloaded.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/424746#M22338</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-03T21:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effects with interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/424611#M22322</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to run the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc glm data=sashelp.heart;
   class sex BP_Status;
  model Cholesterol = Sex BP_Status weight smoking / solution ;
   quit;
&lt;/PRE&gt;
&lt;P&gt;Is it possible to get the overall significance of each class variable (i.e, Type III SS) without outputting the actual statistics of each category of each class variable, because I have hundreds of CEOs (and of other categorical variables which I might add to the model).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks! &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/424611#M22322</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2018-01-03T16:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed effects with interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/422002#M22213</link>
      <description>&lt;P&gt;I am still fairly new to the concepts of fixed, random, mixed effects (and the SAS applications of), but I know that in my regression each CEO is a dummy variable because each CEO as an individual is different and therefore each CEO's effect is different when controlled for other variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could I use the code that you gave me before:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/* same analysis by using the CLASS statement */
proc glm data=have;
   class CEO;              /* generates dummy variables internally */
   model return = CEO market_cap debt CEO*market_cap / solution;
   ods select ParameterEstimates;
quit;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: do you have any articles about fixed,random, mixed?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fixed-effects-with-interactions/m-p/422002#M22213</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2017-12-18T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: regression with 2 dummy types</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/regression-with-2-dummy-types/m-p/421896#M22198</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I posted a new question&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Tip-Fixed-vs-Random-Effects-in-Panel-Data/td-p/421894" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Tip-Fixed-vs-Random-Effects-in-Panel-Data/td-p/421894&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it looks very similar to the question that you answered here, but could you please take a look at it, since I am not sure.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 00:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/regression-with-2-dummy-types/m-p/421896#M22198</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2017-12-18T00:51:31Z</dc:date>
    </item>
  </channel>
</rss>

