<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3061699649544155609</id><updated>2011-07-07T22:44:36.615-07:00</updated><title type='text'>Srikanth Boyina</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-2683300052978958201</id><published>2009-09-04T05:00:00.000-07:00</published><updated>2009-09-04T05:01:15.609-07:00</updated><title type='text'>SAS: How to Retian a Char Variable in SAS</title><content type='html'>data temp;&lt;br /&gt;    infile cards;&lt;br /&gt;    input hosp $3.;&lt;br /&gt;cards;&lt;br /&gt;abc&lt;br /&gt;opq&lt;br /&gt;xyz&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;data tttt;&lt;br /&gt;   retain hosplist;&lt;br /&gt;   retain cnt;&lt;br /&gt;&lt;br /&gt;   length hosplist $200;&lt;br /&gt;&lt;br /&gt;   set temp;&lt;br /&gt;   if _n_ = 1 then hosplist = hosp;&lt;br /&gt;   *else hosplist = hosplist  hosp;&lt;br /&gt;   else hosplist = trim(hosplist)  hosp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   if _n_ = 1 then cnt = 1;&lt;br /&gt;   else cnt + 1;&lt;br /&gt;&lt;br /&gt;   put _all_;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-2683300052978958201?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/2683300052978958201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/09/sas-how-to-retian-char-variable-in-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2683300052978958201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2683300052978958201'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/09/sas-how-to-retian-char-variable-in-sas.html' title='SAS: How to Retian a Char Variable in SAS'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1672562371517863017</id><published>2009-08-12T06:48:00.000-07:00</published><updated>2009-08-12T06:52:38.126-07:00</updated><title type='text'>Excel: Creating Data Lables for XY Scatter Plot</title><content type='html'>Sub DataLabelsFromRange()&lt;br /&gt;Dim Cht As Chart Dim i, ptcnt As Integer&lt;br /&gt;Set Cht = ActiveSheet.ChartObjects(1).Chart On Error Resume Next Cht.SeriesCollection(1).ApplyDataLabels _ Type:=xlDataLabelsShowValue, _ AutoText:=True, _ LegendKey:=False ptcnt = Cht.SeriesCollection(1).Points.Count For i = 1 To ptcnt Cht.SeriesCollection(1).Points(i).DataLabel.Text = _ ActiveSheet.Cells(i + 1, 1).Value&lt;br /&gt;Next i&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note -&lt;br /&gt;Column1 - Labels&lt;br /&gt;Column2 - X Values&lt;br /&gt;Column3 - Y Values&lt;br /&gt;Create Scatter Plot with XY values first and then run the above piece of code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1672562371517863017?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1672562371517863017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/08/excel-creating-data-lables-for-xy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1672562371517863017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1672562371517863017'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/08/excel-creating-data-lables-for-xy.html' title='Excel: Creating Data Lables for XY Scatter Plot'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-8727243919789233662</id><published>2009-07-29T05:07:00.001-07:00</published><updated>2009-07-29T05:08:05.805-07:00</updated><title type='text'>SAS: How to Get ParameterEstimates into a SAS Data set</title><content type='html'>/* How to Get ParameterEstimates into a Data set */&lt;br /&gt;data test;&lt;br /&gt;input x1 x2 y;&lt;br /&gt;datalines;&lt;br /&gt;12 23 34&lt;br /&gt;23 34 34&lt;br /&gt;34 23 34&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;ods trace on;&lt;br /&gt;proc reg data=test;&lt;br /&gt;model y= x1 x2;&lt;br /&gt;ods output ParameterEstimates=ParmEst;&lt;br /&gt;run;&lt;br /&gt;ods trace off;&lt;br /&gt;/* Name of the Data set you will get it from Log file - Example is ParameterEstimates */&lt;br /&gt;Output Added:&lt;br /&gt;-------------&lt;br /&gt;Name: ParameterEstimates&lt;br /&gt;Label: Parameter Estimates&lt;br /&gt;Template: Stat.REG.ParameterEstimates&lt;br /&gt;Path: Reg.MODEL1.Fit.y.ParameterEstimates&lt;br /&gt;-------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-8727243919789233662?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/8727243919789233662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-get-parameterestimates-into-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/8727243919789233662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/8727243919789233662'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-get-parameterestimates-into-sas.html' title='SAS: How to Get ParameterEstimates into a SAS Data set'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-5965419857891198952</id><published>2009-07-15T23:19:00.000-07:00</published><updated>2009-07-15T23:20:47.512-07:00</updated><title type='text'>Statistics: What statistical analysis should I use?</title><content type='html'>&lt;a href="http://www.ats.ucla.edu/stat/mult_pkg/whatstat/default.htm"&gt;http://www.ats.ucla.edu/stat/mult_pkg/whatstat/default.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-5965419857891198952?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/5965419857891198952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/what-statistical-analysis-should-i-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/5965419857891198952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/5965419857891198952'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/what-statistical-analysis-should-i-use.html' title='Statistics: What statistical analysis should I use?'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6245827933553755993</id><published>2009-07-10T04:42:00.000-07:00</published><updated>2009-07-10T04:44:12.642-07:00</updated><title type='text'>Statistics: TURF Analysis</title><content type='html'>TURF Analysis, an &lt;a class="mw-redirect" title="Acronym" href="http://en.wikipedia.org/wiki/Acronym"&gt;acronym&lt;/a&gt; for "Total Unduplicated Reach and Frequency", is a type of &lt;a class="mw-redirect" title="Statistical" href="http://en.wikipedia.org/wiki/Statistical"&gt;statistical&lt;/a&gt; analysis used for providing estimates of media or market potential and devising optimal ways how to use it given the limited resources.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;TURF is a statistical model that can used to answer questions like : &lt;/u&gt;&lt;br /&gt;1) Where should we place ads to reach the widest possible audience?&lt;br /&gt;2) What kind of market-share will we gain if we add a new line to our model?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/TURF_Analysis"&gt;http://en.wikipedia.org/wiki/TURF_Analysis&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.questionpro.com/akira/showArticle.do?articleID=turf01"&gt;http://www.questionpro.com/akira/showArticle.do?articleID=turf01&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6245827933553755993?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6245827933553755993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-turf-analysis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6245827933553755993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6245827933553755993'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-turf-analysis.html' title='Statistics: TURF Analysis'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1867047177697590889</id><published>2009-07-10T04:33:00.000-07:00</published><updated>2009-07-10T04:34:40.901-07:00</updated><title type='text'>Excel VBA: Loops Syntax</title><content type='html'>&lt;p&gt;Sub ForLoop()&lt;br /&gt;  Dim I As Long&lt;br /&gt;&lt;br /&gt;  For I = 1 To 5 Step 1&lt;br /&gt;    MsgBox I&lt;br /&gt;  Next I&lt;br /&gt;&lt;br /&gt;  For I = 5 To 1 Step -1&lt;br /&gt;    MsgBox I&lt;br /&gt;  Next I&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt; ---------------------------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Sub DoLoop1()&lt;br /&gt;&lt;br /&gt;  Dim I As Long&lt;br /&gt; &lt;br /&gt;  I = 0&lt;br /&gt;  Do While I &lt; 0&lt;br /&gt;     MsgBox I&lt;br /&gt;     I = I + 1&lt;br /&gt;  Loop&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt; ---------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub DoLoop2()&lt;br /&gt;&lt;br /&gt;  Dim I As Long&lt;br /&gt; &lt;br /&gt;  I = 0&lt;br /&gt;  Do&lt;br /&gt;     MsgBox I&lt;br /&gt;     I = I + 1&lt;br /&gt;  Loop While I &lt; 0&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;  ---------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub DoLoop3()&lt;br /&gt;  Dim I As Long&lt;br /&gt; &lt;br /&gt;  I = 0&lt;br /&gt;  Do Until I &gt; 5&lt;br /&gt;     MsgBox I&lt;br /&gt;     I = I + 1&lt;br /&gt;  Loop&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;  ---------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub DoLoop4()&lt;br /&gt;  Dim I As Long&lt;br /&gt; &lt;br /&gt;  I = 0&lt;br /&gt;  Do&lt;br /&gt;     MsgBox I&lt;br /&gt;     I = I + 1&lt;br /&gt;  Loop Until I &gt; 5&lt;br /&gt;&lt;br /&gt;End Sub&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1867047177697590889?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1867047177697590889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-loops-syntax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1867047177697590889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1867047177697590889'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-loops-syntax.html' title='Excel VBA: Loops Syntax'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-7609062297565927118</id><published>2009-07-10T04:31:00.000-07:00</published><updated>2009-07-10T04:32:11.556-07:00</updated><title type='text'>Excel VBA: Search And Replace in different files</title><content type='html'>Sub SearchAndReplace()&lt;br /&gt;  Dim oFSO As New FileSystemObject&lt;br /&gt;  Dim oFileIn As TextStream&lt;br /&gt;  Dim oFileOut As TextStream&lt;br /&gt;  Dim sLine As String&lt;br /&gt; &lt;br /&gt;  If Not oFSO.FileExists("C:\Test\Try04.txt") Then&lt;br /&gt;    MsgBox "File Not Found", vbCritical&lt;br /&gt;    Exit Sub&lt;br /&gt;  End If&lt;br /&gt;&lt;br /&gt;  Set oFileIn = oFSO.OpenTextFile("C:\Test\Try04.txt")&lt;br /&gt;  Set oFileOut = oFSO.CreateTextFile("C:\Test\Try05.txt")&lt;br /&gt;&lt;br /&gt;  Do While Not oFileIn.AtEndOfStream&lt;br /&gt;     sLine = oFileIn.ReadLine&lt;br /&gt;     sLine = Replace(sLine, "4", "X")&lt;br /&gt;    &lt;br /&gt;     'sLine = Replace(oFileIn.ReadLine, "4", "X")&lt;br /&gt;    &lt;br /&gt;     oFileOut.WriteLine sLine&lt;br /&gt;    &lt;br /&gt;  Loop&lt;br /&gt;  oFileIn.Close&lt;br /&gt;  oFileOut.Close&lt;br /&gt; &lt;br /&gt;  Set oFileIn = Nothing&lt;br /&gt;  Set oFileOut = Nothing&lt;br /&gt;  Set oFSO = Nothing&lt;br /&gt; &lt;br /&gt;  MsgBox "Over", vbInformation&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-7609062297565927118?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/7609062297565927118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-search-and-replace-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/7609062297565927118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/7609062297565927118'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-search-and-replace-in.html' title='Excel VBA: Search And Replace in different files'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1221215804679955848</id><published>2009-07-10T04:30:00.001-07:00</published><updated>2009-07-10T04:30:39.975-07:00</updated><title type='text'>Excel VBA: How to Create a Word Table</title><content type='html'>Sub CreateWordTable()&lt;br /&gt;  Dim oWORD As Word.Application&lt;br /&gt;  Dim oDOC  As Word.Document&lt;br /&gt;  Dim oTable As Word.Table&lt;br /&gt; &lt;br /&gt;  Dim oWS As Worksheet&lt;br /&gt;  Dim lMaxRow As Long&lt;br /&gt;  Dim lRow As Long&lt;br /&gt;  Dim lMaxCol As Long&lt;br /&gt;  Dim lCol As Long&lt;br /&gt; &lt;br /&gt;  Set oWS = Worksheets(1)&lt;br /&gt;  lMaxRow = oWS.Cells.SpecialCells(xlCellTypeLastCell).Row&lt;br /&gt;  lMaxCol = oWS.Cells.SpecialCells(xlCellTypeLastCell).Column&lt;br /&gt; &lt;br /&gt;  Set oWORD = New Word.Application&lt;br /&gt;  oWORD.Visible = True&lt;br /&gt;  Set oDOC = oWORD.Documents.Add&lt;br /&gt;  Set oTable = oDOC.Tables.Add(oWORD.Selection.Range, lMaxRow, lMaxCol)&lt;br /&gt;  For lRow = 1 To lMaxRow Step 1&lt;br /&gt;    For lCol = 1 To lMaxCol Step 1&lt;br /&gt;      oTable.Rows(lRow).Cells(lCol).Range.Text = oWS.Cells(lRow, lCol)&lt;br /&gt;    Next lCol&lt;br /&gt;  Next lRow&lt;br /&gt; &lt;br /&gt;  Set oTable = Nothing&lt;br /&gt;  oDOC.Save&lt;br /&gt;  oDOC.Close&lt;br /&gt;  Set oDOC = Nothing&lt;br /&gt;  oWORD.Application.Quit&lt;br /&gt;  Set oWORD = Nothing&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1221215804679955848?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1221215804679955848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-how-to-create-word-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1221215804679955848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1221215804679955848'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-how-to-create-word-table.html' title='Excel VBA: How to Create a Word Table'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1517800610817831260</id><published>2009-07-10T04:29:00.000-07:00</published><updated>2009-07-10T04:30:00.221-07:00</updated><title type='text'>Excel VBA: How to Create a PowerPointTable</title><content type='html'>Sub CreatePowerPointTable()&lt;br /&gt;  Dim oPPTApp As PowerPoint.Application&lt;br /&gt;  Dim oPPT  As PowerPoint.Presentation&lt;br /&gt;  Dim oSlide As PowerPoint.Slide&lt;br /&gt;  Dim oTable As PowerPoint.Table&lt;br /&gt; &lt;br /&gt;  Dim oWS As Worksheet&lt;br /&gt;  Dim lMaxRow As Long&lt;br /&gt;  Dim lRow As Long&lt;br /&gt;  Dim lMaxCol As Long&lt;br /&gt;  Dim lCol As Long&lt;br /&gt; &lt;br /&gt;  Set oWS = Worksheets(1)&lt;br /&gt;  lMaxRow = oWS.Cells.SpecialCells(xlCellTypeLastCell).Row&lt;br /&gt;  lMaxCol = oWS.Cells.SpecialCells(xlCellTypeLastCell).Column&lt;br /&gt; &lt;br /&gt;  Set oPPTApp = New PowerPoint.Application&lt;br /&gt;  oPPTApp.Visible = True&lt;br /&gt;  Set oPPT = oPPTApp.Presentations.Add&lt;br /&gt;  Set oSlide = oPPT.Slides.Add(1, ppLayoutBlank)&lt;br /&gt;  Set oTable = oSlide.Shapes.AddTable(lMaxRow, lMaxCol).Table&lt;br /&gt;  For lRow = 1 To lMaxRow Step 1&lt;br /&gt;    For lCol = 1 To lMaxCol Step 1&lt;br /&gt;      oTable.Rows(lRow).Cells(lCol).Shape.TextFrame.TextRange.Text = oWS.Cells(lRow, lCol)&lt;br /&gt;    Next lCol&lt;br /&gt;  Next lRow&lt;br /&gt; &lt;br /&gt;  Set oTable = Nothing&lt;br /&gt;  Set oSlide = Nothing&lt;br /&gt;  oPPT.Save&lt;br /&gt;  oPPT.Close&lt;br /&gt;  Set oPPT = Nothing&lt;br /&gt;  oPPTApp.Quit&lt;br /&gt;  Set oPPTApp = Nothing&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1517800610817831260?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1517800610817831260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-how-to-create-powerpointtable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1517800610817831260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1517800610817831260'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-how-to-create-powerpointtable.html' title='Excel VBA: How to Create a PowerPointTable'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4627454024539534420</id><published>2009-07-10T04:27:00.000-07:00</published><updated>2009-07-10T04:29:03.648-07:00</updated><title type='text'>Excel VBA: How to Create a Text File</title><content type='html'>Sub CreateTXTFile()&lt;br /&gt;  Dim oFSO As New FileSystemObject&lt;br /&gt;  Dim oTS As TextStream&lt;br /&gt;  Dim oWS As Worksheet&lt;br /&gt;  Dim lMaxRow As Long&lt;br /&gt;  Dim lRow As Long&lt;br /&gt;  Dim lMaxCol As Long&lt;br /&gt;  Dim lCol As Long&lt;br /&gt;  Dim lColWidths(1 To 3) As Long&lt;br /&gt;  Dim sLine As String&lt;br /&gt;  Dim sData As String&lt;br /&gt;  Dim lStart As Long&lt;br /&gt;  lColWidths(1) = 30&lt;br /&gt;  lColWidths(2) = 20&lt;br /&gt;  lColWidths(3) = 5&lt;br /&gt; &lt;br /&gt;  Set oWS = Worksheets(1)&lt;br /&gt;  lMaxRow = oWS.Cells.SpecialCells(xlCellTypeLastCell).Row&lt;br /&gt;  lMaxCol = oWS.Cells.SpecialCells(xlCellTypeLastCell).Column&lt;br /&gt; &lt;br /&gt;  Set oTS = oFSO.CreateTextFile("C:\Test\Map.csv")&lt;br /&gt;  oTS.WriteLine "Variable,Start,Width"&lt;br /&gt;  lStart = 1&lt;br /&gt;  For lCol = 1 To lMaxCol Step 1&lt;br /&gt;    oTS.WriteLine oWS.Cells(1, lCol) &amp;amp; "," &amp;amp; lStart &amp;amp; "," &amp;amp; lColWidths(lCol)&lt;br /&gt;    lStart = lStart + lColWidths(lCol)&lt;br /&gt;  Next lCol&lt;br /&gt;  oTS.Close&lt;br /&gt; &lt;br /&gt;  Set oTS = oFSO.CreateTextFile("C:\Test\Test3.txt")&lt;br /&gt;  For lRow = 2 To lMaxRow Step 1&lt;br /&gt;    sLine = vbNullString&lt;br /&gt;    For lCol = 1 To lMaxCol Step 1&lt;br /&gt;      If (lCol &lt; 3) Then&lt;br /&gt;        sData = Left$(oWS.Cells(lRow, lCol) &amp;amp; Space(lColWidths(lCol)), lColWidths(lCol))&lt;br /&gt;      Else&lt;br /&gt;        sData = Right$(Space(lColWidths(lCol)) &amp;amp; oWS.Cells(lRow, lCol), lColWidths(lCol))&lt;br /&gt;      End If&lt;br /&gt;      sLine = sLine &amp;amp; sData&lt;br /&gt;    Next lCol&lt;br /&gt;    oTS.WriteLine sLine&lt;br /&gt;  Next lRow&lt;br /&gt;  oTS.Close&lt;br /&gt;  Set oTS = Nothing&lt;br /&gt;  Set oFSO = Nothing&lt;br /&gt;  MsgBox "Over"&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4627454024539534420?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4627454024539534420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-how-to-create-text-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4627454024539534420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4627454024539534420'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-how-to-create-text-file.html' title='Excel VBA: How to Create a Text File'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-7322247547143609643</id><published>2009-07-10T04:14:00.001-07:00</published><updated>2009-07-12T23:17:08.363-07:00</updated><title type='text'>EXCEL VBA: Text Coding (verbatim coding)</title><content type='html'>Sub Text_Coding()&lt;br /&gt;&lt;br /&gt;'Please save Keywords in column 1 of sheet2 and corresponding codes in column 2 in the same sheet&lt;br /&gt;'Save Text in column 1 of sheet1 after running this macro it will generate codes in column 2 in this sheet&lt;br /&gt;&lt;br /&gt;Dim txt As Variant&lt;br /&gt;n = Sheet1.Cells.SpecialCells(xlCellTypeLastCell).Row&lt;br /&gt;m = Sheet2.Cells.SpecialCells(xlCellTypeLastCell).Row&lt;br /&gt;For i = 2 To n&lt;br /&gt;Sheet1.Cells(i, 2) = ""&lt;br /&gt;Set searchRange = Sheet1.Cells(i, 1)&lt;br /&gt;For key_w = 2 To m&lt;br /&gt;Set FoundCell = searchRange.Find(what:=Sheet2.Cells(key_w, 1))&lt;br /&gt;If Not FoundCell Is Nothing Then&lt;br /&gt;If (Len(Sheet1.Cells(i, 2)) &gt; 0) Then&lt;br /&gt;Sheet1.Cells(i, 2) = Sheet2.Cells(key_w, 2) &amp;amp; "," &amp;amp; Sheet1.Cells(i, 2)&lt;br /&gt;Else&lt;br /&gt;Sheet1.Cells(i, 2) = Sheet2.Cells(key_w, 2)&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;Next&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-7322247547143609643?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/7322247547143609643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-text-coding-verbatim-coding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/7322247547143609643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/7322247547143609643'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-vba-text-coding-verbatim-coding.html' title='EXCEL VBA: Text Coding (verbatim coding)'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6348842678161298560</id><published>2009-07-09T04:44:00.001-07:00</published><updated>2009-07-09T04:44:43.458-07:00</updated><title type='text'>Statistics: Do the nonlinear regression results make sense?</title><content type='html'>&lt;a href="http://curvefit.com/are_results_sensible_.htm"&gt;http://curvefit.com/are_results_sensible_.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://curvefit.com/"&gt;http://curvefit.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6348842678161298560?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6348842678161298560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-do-nonlinear-regression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6348842678161298560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6348842678161298560'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-do-nonlinear-regression.html' title='Statistics: Do the nonlinear regression results make sense?'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-5908753027450720730</id><published>2009-07-09T04:39:00.000-07:00</published><updated>2009-07-09T04:40:49.648-07:00</updated><title type='text'>Satistics: Time-Critical Decision Modeling and Analysis</title><content type='html'>&lt;a href="http://home.ubalt.edu/ntsbarsh/stat-data/Forecast.htm#rtestAvovaKS1"&gt;http://home.ubalt.edu/ntsbarsh/stat-data/Forecast.htm#rtestAvovaKS1&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-5908753027450720730?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/5908753027450720730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/satistics-time-critical-decision.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/5908753027450720730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/5908753027450720730'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/satistics-time-critical-decision.html' title='Satistics: Time-Critical Decision Modeling and Analysis'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6520839853296076129</id><published>2009-07-09T04:37:00.000-07:00</published><updated>2009-07-09T04:38:13.654-07:00</updated><title type='text'>EXCEL: User Form Creation in Excel VBA</title><content type='html'>&lt;a href="http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=388"&gt;http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=388&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6520839853296076129?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6520839853296076129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-user-form-creation-in-excel-vba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6520839853296076129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6520839853296076129'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-user-form-creation-in-excel-vba.html' title='EXCEL: User Form Creation in Excel VBA'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-2399463719402946916</id><published>2009-07-09T04:36:00.000-07:00</published><updated>2009-07-09T04:37:10.995-07:00</updated><title type='text'>Statistics: Phi coefficient:Measure of the degree of association between two binary variables</title><content type='html'>&lt;p&gt;&lt;a href="http://www.childrensmercy.org/stats/definitions/phi.htm"&gt;http://www.childrensmercy.org/stats/definitions/phi.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-2399463719402946916?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/2399463719402946916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-phi-coefficientmeasure-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2399463719402946916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2399463719402946916'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-phi-coefficientmeasure-of.html' title='Statistics: Phi coefficient:Measure of the degree of association between two binary variables'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4461433082159274653</id><published>2009-07-09T04:29:00.001-07:00</published><updated>2009-07-09T04:29:51.686-07:00</updated><title type='text'>Statistics: Online An Introductory Statistics Textbook</title><content type='html'>&lt;a href="http://davidmlane.com/hyperstat/"&gt;http://davidmlane.com/hyperstat/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4461433082159274653?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4461433082159274653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-online-introductory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4461433082159274653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4461433082159274653'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-online-introductory.html' title='Statistics: Online An Introductory Statistics Textbook'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-2028413920384444245</id><published>2009-07-09T04:27:00.001-07:00</published><updated>2009-07-09T04:27:38.977-07:00</updated><title type='text'>Statistics: Identify the orders of both stationary and nonstationary ARIMA</title><content type='html'>&lt;a href="http://www.caspur.it/risorse/softappl/doc/sas_docs/ets/chap7/sect56.htm"&gt;http://www.caspur.it/risorse/softappl/doc/sas_docs/ets/chap7/sect56.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-2028413920384444245?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/2028413920384444245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-identify-orders-of-both.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2028413920384444245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2028413920384444245'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-identify-orders-of-both.html' title='Statistics: Identify the orders of both stationary and nonstationary ARIMA'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1129074849405280956</id><published>2009-07-09T04:13:00.001-07:00</published><updated>2009-07-09T04:13:51.090-07:00</updated><title type='text'>SAS: Proc Rank</title><content type='html'>data staff;&lt;br /&gt;input ID     SALARY   Department;&lt;br /&gt;datalines;&lt;br /&gt;50     20000        1&lt;br /&gt;10     18000        1&lt;br /&gt;40     28000        2&lt;br /&gt;20     16000        2&lt;br /&gt;30     22000        3&lt;br /&gt;70     26000        1&lt;br /&gt;;run;&lt;br /&gt;&lt;br /&gt;proc sort data=staff;by DEPARTMENT;run;&lt;br /&gt;&lt;br /&gt;proc rank data=staff out=rankings;&lt;br /&gt; By DEPARTMENT;&lt;br /&gt;   var SALARY;&lt;br /&gt;   ranks Finish;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;/* in Oracle or DB2 */&lt;br /&gt;&lt;br /&gt;SELECT A.* FROM&lt;br /&gt;&lt;br /&gt;(&lt;br /&gt;SELECT ID, SALARY, DEPARTMENT,&lt;br /&gt;RANK () OVER (PARTITION BY DEPARTMENT ORDER BY SALARY DESC) AS RANK&lt;br /&gt;FROM staff s1&lt;br /&gt;       ) AS A&lt;br /&gt;&lt;br /&gt;WHERE A.RANK=1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1129074849405280956?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1129074849405280956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/sas-proc-rank.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1129074849405280956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1129074849405280956'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/sas-proc-rank.html' title='SAS: Proc Rank'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-2640263637378698324</id><published>2009-07-08T07:31:00.001-07:00</published><updated>2009-07-08T07:31:30.071-07:00</updated><title type='text'>Statistics: Don't believe in the Null Hypothesis?</title><content type='html'>&lt;a href="http://creative-wisdom.com/computer/sas/hypothesis.html"&gt;http://creative-wisdom.com/computer/sas/hypothesis.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-2640263637378698324?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/2640263637378698324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-dont-believe-in-null.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2640263637378698324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2640263637378698324'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-dont-believe-in-null.html' title='Statistics: Don&apos;t believe in the Null Hypothesis?'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1857220692056493177</id><published>2009-07-08T07:26:00.000-07:00</published><updated>2009-07-08T07:27:10.133-07:00</updated><title type='text'>Statistics: Assumptions of Linear Regression</title><content type='html'>&lt;a href="http://homepages.ius.edu/WCLANG/m305/notes11.htm"&gt;http://homepages.ius.edu/WCLANG/m305/notes11.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1857220692056493177?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1857220692056493177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-assumptions-of-linear.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1857220692056493177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1857220692056493177'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-assumptions-of-linear.html' title='Statistics: Assumptions of Linear Regression'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1314220702238780524</id><published>2009-07-08T07:15:00.000-07:00</published><updated>2009-07-08T07:25:02.801-07:00</updated><title type='text'>Statistics: Bootstrapping - Building models with lesser data (&lt;30)</title><content type='html'>Most of the times we often come across the problem of fitting models with lesser data (&lt;30).&lt;br /&gt;&lt;br /&gt;To overcome this problem we can use the following methodology:&lt;br /&gt;&lt;br /&gt;Residual Resampling – Bootstrapping:&lt;br /&gt;&lt;br /&gt;Bootstrapping is the practice of estimating properties of an estimator by resampling. Residual Resampling is one of the types of bootstrapping.&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;OLS fit is computed from the original data.&lt;br /&gt;The residuals are then resampled and the independent variables are fixed.&lt;br /&gt;The residuals are then added to the predicted values of the original fit to obtain a new Y vector.&lt;br /&gt;This new Y vector is then fit against the original X variables.&lt;br /&gt;&lt;br /&gt;It is advised that we can have 100 bootstrap samples for the validity of the model. For each bootstrap sample the model is fit. Then calculate the mean of the parameter estimates and std errors. This will be our final estimate.&lt;br /&gt;&lt;br /&gt;As sas don’t have the direct procedure to calculate this method, I manually coded the procedure. This is given below:&lt;br /&gt;&lt;br /&gt;/* Model data set */&lt;br /&gt;&lt;br /&gt;title 'Cement Hardening Data from Hjorth, p 31';&lt;br /&gt;   data cement;&lt;br /&gt;      input x1-x4 y;&lt;br /&gt;      label x1='3CaOAl2O3'&lt;br /&gt;            x2='3CaOSiO2'&lt;br /&gt;            x3='4CaOAl2O3Fe2O3'&lt;br /&gt;            x4='2CaOSiO2';&lt;br /&gt;   cards;&lt;br /&gt;    7 26  6 60  78.5&lt;br /&gt;    1 29 15 52  74.3&lt;br /&gt;   11 56  8 20 104.3&lt;br /&gt;   11 31  8 47  87.6&lt;br /&gt;    7 52  6 33  95.9&lt;br /&gt;   11 55  9 22 109.2&lt;br /&gt;    3 71 17  6 102.7&lt;br /&gt;    1 31 22 44  72.5&lt;br /&gt;    2 54 18 22  93.1&lt;br /&gt;   21 47  4 26 115.9&lt;br /&gt;    1 40 23 34  83.8&lt;br /&gt;   11 66  9 12 113.3&lt;br /&gt;   10 68  8 12 109.4&lt;br /&gt;  &lt;br /&gt;   ;&lt;br /&gt;   run;&lt;br /&gt;&lt;br /&gt;/*Original fit to get the residuals */&lt;br /&gt;   proc reg data=cement;&lt;br /&gt;      model y=x1-x4;&lt;br /&gt;      output out=cemout r=resid p=pred;&lt;br /&gt;   run;&lt;br /&gt;&lt;br /&gt;/*Resampling the residuals*/&lt;br /&gt;&lt;br /&gt;data spds_wrk.ABC_boot(drop=resid) Spds_wrk.ABC_resid(keep=resid index);&lt;br /&gt;set cemout;&lt;br /&gt;index=_N_;&lt;br /&gt;run;&lt;br /&gt;      data spds_wrk.ABC_OUTDATA (drop= i j);&lt;br /&gt;    do i = 1 TO 100;&lt;br /&gt;        sample_n = i;&lt;br /&gt;        do j = 1 TO 13;&lt;br /&gt;                  index=j;&lt;br /&gt;            join_index = int(ranuni(123) * 13) + 1;&lt;br /&gt;            output;&lt;br /&gt;        end;&lt;br /&gt;    end;&lt;br /&gt;      run;&lt;br /&gt;&lt;br /&gt;      data spds_wrk.ABC_model_data;&lt;br /&gt;      merge spds_wrk.ABC_boot spds_wrk.ABC_OUTDATA;&lt;br /&gt;      by index;&lt;br /&gt;      run;&lt;br /&gt;&lt;br /&gt;            data spds_wrk.ABC_model_data;&lt;br /&gt;      merge spds_wrk.ABC_model_data spds_wrk.ABC_resid(rename=(index=join_index));&lt;br /&gt;      by join_index;&lt;br /&gt;      run;&lt;br /&gt;&lt;br /&gt;      proc sort data=spds_wrk.ABC_model_data;&lt;br /&gt;            by sample_n index;&lt;br /&gt;      run;&lt;br /&gt;&lt;br /&gt;      data spds_wrk.ABC_updated;&lt;br /&gt;      set spds_wrk.ABC_model_data;&lt;br /&gt;      ycap=pred+resid;&lt;br /&gt;      run;&lt;br /&gt;&lt;br /&gt;/*Buliding the model with changed y 100 times */&lt;br /&gt;&lt;br /&gt;      proc reg data=spds_wrk.ABC_updated outest=pred;&lt;br /&gt;      model ycap=x1 x2 x3 x4;&lt;br /&gt;      by sample_n;&lt;br /&gt;      run;&lt;br /&gt;&lt;br /&gt;/* Final Estimates*/&lt;br /&gt;      proc means data=pred;&lt;br /&gt;      var intercept x1 x2 x3 x4;&lt;br /&gt;      run;&lt;br /&gt;     &lt;br /&gt;&lt;br /&gt;The mean of Intercept, x2, x2, x3, and x4 will be the final estimates and its std deviations are the final std errors.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/bootfit.htm"&gt;http://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/bootfit.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Bootstrapping_%28statistics%29"&gt;http://en.wikipedia.org/wiki/Bootstrapping_%28statistics%29&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1314220702238780524?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1314220702238780524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-bootstrapping-building.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1314220702238780524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1314220702238780524'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistics-bootstrapping-building.html' title='Statistics: Bootstrapping - Building models with lesser data (&lt;30)'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4387753847342170900</id><published>2009-07-08T07:12:00.000-07:00</published><updated>2009-07-08T07:13:05.919-07:00</updated><title type='text'>UNIX: Commands</title><content type='html'>&lt;a href="http://www.ccsf.edu/Pub/Fac/vi.html"&gt;http://www.ccsf.edu/Pub/Fac/vi.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4387753847342170900?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4387753847342170900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/unix-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4387753847342170900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4387753847342170900'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/unix-commands.html' title='UNIX: Commands'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6146368096618993969</id><published>2009-07-08T07:07:00.003-07:00</published><updated>2009-07-08T07:09:42.656-07:00</updated><title type='text'>Excel: Excel Chart to Power Point</title><content type='html'>&lt;a href="http://www.ozgrid.com/forum/showthread.php?t=20999&amp;amp;page=5"&gt;http://www.ozgrid.com/forum/showthread.php?t=20999&amp;amp;page=5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://peltiertech.com/Excel/XL_PPT.html#chartppt"&gt;http://peltiertech.com/Excel/XL_PPT.html#chartppt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6146368096618993969?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6146368096618993969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-excel-chart-to-power-point_08.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6146368096618993969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6146368096618993969'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-excel-chart-to-power-point_08.html' title='Excel: Excel Chart to Power Point'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-308307894387000673</id><published>2009-07-08T07:07:00.001-07:00</published><updated>2009-07-08T07:07:27.885-07:00</updated><title type='text'>Excel: Excel Chart to Power Point</title><content type='html'>&lt;a href="http://www.ozgrid.com/forum/showthread.php?t=20999&amp;amp;page=5"&gt;http://www.ozgrid.com/forum/showthread.php?t=20999&amp;amp;page=5&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-308307894387000673?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/308307894387000673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-excel-chart-to-power-point.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/308307894387000673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/308307894387000673'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-excel-chart-to-power-point.html' title='Excel: Excel Chart to Power Point'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6958643239096850104</id><published>2009-07-08T07:06:00.001-07:00</published><updated>2009-07-08T07:06:26.503-07:00</updated><title type='text'>Excel: Boxplots in Excel</title><content type='html'>&lt;a href="http://www.coventry.ac.uk/ec/~nhunt/boxplot.htm"&gt;http://www.coventry.ac.uk/ec/~nhunt/boxplot.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6958643239096850104?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6958643239096850104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-boxplots-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6958643239096850104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6958643239096850104'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-boxplots-in-excel.html' title='Excel: Boxplots in Excel'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-415644629575330162</id><published>2009-07-08T07:04:00.000-07:00</published><updated>2009-07-08T07:05:47.502-07:00</updated><title type='text'>Excel: Dynamic Chart in Excel</title><content type='html'>&lt;a href="http://peltiertech.com/Excel/Charts/DynamicColumnChart1.html"&gt;http://peltiertech.com/Excel/Charts/DynamicColumnChart1.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-415644629575330162?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/415644629575330162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-dynamic-chart-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/415644629575330162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/415644629575330162'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/excel-dynamic-chart-in-excel.html' title='Excel: Dynamic Chart in Excel'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-5923364533503175817</id><published>2009-07-08T00:14:00.000-07:00</published><updated>2009-07-08T06:53:31.439-07:00</updated><title type='text'>SAS: Running Excel Macro From SAS</title><content type='html'>options noxwait noxsync;&lt;br /&gt;x '"C:\Program Files (x86)\Microsoft Office\Office12\excel.exe"&lt;br /&gt;"C:\Documents and Settings\Sobhan\Desktop\book2.XLS"'; *Pls choose appropriate files 1.to enable excel, 2. open a specified excel file;&lt;br /&gt;&lt;br /&gt;data _null_;&lt;br /&gt;x=sleep(5); *for opening Excel it take some time;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;filename EXPORT DDE "EXCELSheet1!r1c1:r3c2" ;&lt;br /&gt;&lt;br /&gt;data exp;&lt;br /&gt;input name$ marks;&lt;br /&gt;cards;&lt;br /&gt;abc 46&lt;br /&gt;xyz 28&lt;br /&gt;bcd 60&lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;data _null_;&lt;br /&gt;set exp;&lt;br /&gt;file EXPORT;&lt;br /&gt;put name marks;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;filename savec DDE 'EXCELSYSTEM'; *relating between Excel and SAS;&lt;br /&gt;&lt;br /&gt;DATA _NULL_;&lt;br /&gt;FILE savec;&lt;br /&gt;PUT '[run("macro1")]'; *Pls write a macro named macro1 in excel and put macro security in last option i.e.High;&lt;br /&gt;PUT '[save()]';&lt;br /&gt;PUT '[quit()]';&lt;br /&gt;RUN;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-5923364533503175817?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/5923364533503175817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/running-excel-macro-from-sas.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/5923364533503175817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/5923364533503175817'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/running-excel-macro-from-sas.html' title='SAS: Running Excel Macro From SAS'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-3348044976316705321</id><published>2009-07-08T00:07:00.000-07:00</published><updated>2009-07-08T06:54:03.204-07:00</updated><title type='text'>SAS: String Reverse in SAS</title><content type='html'>data test;&lt;br /&gt;input text $10.;&lt;br /&gt;datalines;&lt;br /&gt;srikanth&lt;br /&gt;boyina&lt;br /&gt;;run;&lt;br /&gt;%let DataName = test;&lt;br /&gt;%let Variable = Text;&lt;br /&gt;%let length = 32;&lt;br /&gt;%macro rever;&lt;br /&gt;data New;format &amp;amp;Variable._New $32.;&lt;br /&gt;set &amp;amp;DataName.;&amp;amp;Variable._New="_"Put(_N_,z5.0)&amp;amp;Variable.;&lt;br /&gt;run;&lt;br /&gt;data New; set New end = last;&lt;br /&gt;if last then call symput ("N",_n_);run;&lt;br /&gt;data b;&lt;br /&gt;set New;&lt;br /&gt;%do i=7 %to &amp;amp;length.;&lt;br /&gt;_column_&amp;amp;i.=substr(&amp;amp;Variable._New,&amp;amp;i.,1);&lt;br /&gt;%end;&lt;br /&gt;run;&lt;br /&gt;proc transpose data=b out=test(drop=_name_);id &amp;amp;Variable._New; var _column_7-_column_&amp;amp;length.;run;&lt;br /&gt;%do k = 1 %to &amp;amp;N.;&lt;br /&gt;data _null_; set New;&lt;br /&gt;if _n_ = &amp;amp;k. then call symput ("V",&amp;amp;Variable._New);&lt;br /&gt;run;&lt;br /&gt;proc sql noprint;select &amp;amp;V. into :var separated by "" from test order by &amp;amp;V.; quit;&lt;br /&gt;data New;&lt;br /&gt;format SortVar $32.;&lt;br /&gt;set New;&lt;br /&gt;if _n_ = &amp;amp;k. then SortVar = "&amp;amp;var.";&lt;br /&gt;run;&lt;br /&gt;%end;&lt;br /&gt;proc datasets nolist; delete b test; run; quit;&lt;br /&gt;%mend;&lt;br /&gt;%rever;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-3348044976316705321?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/3348044976316705321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/string-reverse-in-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3348044976316705321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3348044976316705321'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/string-reverse-in-sas.html' title='SAS: String Reverse in SAS'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-20137084723877138</id><published>2009-07-08T00:00:00.000-07:00</published><updated>2009-07-08T06:54:29.938-07:00</updated><title type='text'>Excel VBA: List all File Names in a Folder</title><content type='html'>Sub ListFiles()&lt;br /&gt;Dim oFSO As New FileSystemObject&lt;br /&gt;Dim oFolder As Folder&lt;br /&gt;Dim I As Long&lt;br /&gt;Dim oFile As File&lt;br /&gt;Set oFolder = oFSO.GetFolder("C:\test\teampics")&lt;br /&gt;For I = 1 To oFolder.Files.Count&lt;br /&gt;For Each oFile In oFolder.Files&lt;br /&gt;MsgBox oFile.Name&lt;br /&gt;Next&lt;br /&gt;Next I&lt;br /&gt;MsgBox "Over", vbInformation&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-20137084723877138?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/20137084723877138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/all-file-name-in-folder-excel-vba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/20137084723877138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/20137084723877138'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/all-file-name-in-folder-excel-vba.html' title='Excel VBA: List all File Names in a Folder'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-8300646043101949935</id><published>2009-07-07T23:54:00.000-07:00</published><updated>2009-07-08T06:55:05.113-07:00</updated><title type='text'>SAS: Factorial Program</title><content type='html'>%Macro Fact(n);&lt;br /&gt;%let R = 1;&lt;br /&gt;%if &amp;amp;n. = 0 %then %let R = 1;&lt;br /&gt;%if &amp;amp;n. = 1 %then %let R = 1;&lt;br /&gt;%if &amp;amp;n.&gt;1 %then %do;&lt;br /&gt;%do i = 1 %to &amp;amp;n. %by 1;&lt;br /&gt;%let R = %SysEvalf(&amp;amp;R.*&amp;amp;i.);&lt;br /&gt;%end;&lt;br /&gt;%end;&lt;br /&gt;&lt;br /&gt;%Put &amp;amp;R.;&lt;br /&gt;%Mend;&lt;br /&gt;%Fact(0);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-8300646043101949935?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/8300646043101949935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/factorial-in-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/8300646043101949935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/8300646043101949935'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/factorial-in-sas.html' title='SAS: Factorial Program'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4882928730831104254</id><published>2009-07-07T04:37:00.000-07:00</published><updated>2009-08-07T09:24:38.578-07:00</updated><title type='text'>UNIX: JOB Scheduling</title><content type='html'>&lt;u&gt;How to run at unix box : -&lt;br /&gt;&lt;/u&gt;nohup /apps/sas/SAS_9.1/sas /gdr/home_dir/id/trans1.sas &amp;amp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Scheduling&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;crontab.dat &lt;/u&gt;&lt;br /&gt;01 17 * * * nohup /apps/sas/SAS_9.1/sas /gdr/home_dir/id/trans1.sas &amp;amp;&lt;br /&gt;&lt;a href="http://www.adminschoice.com/docs/crontab.htm"&gt;http://www.adminschoice.com/docs/crontab.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;For appending to the server list of crons -&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;crontab &lt; crontab.dat&lt;br /&gt;&lt;br /&gt;For editing -&gt;&lt;crontab.dat for="" editing="" crontab=""&gt;&lt;crontab.dat editor="vi"&gt; crontab –e&lt;br /&gt;For to view -&gt; crontab –l&lt;/crontab.dat&gt;&lt;/crontab.dat&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4882928730831104254?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4882928730831104254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/job-scheduling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4882928730831104254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4882928730831104254'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/job-scheduling.html' title='UNIX: JOB Scheduling'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1869642916482619480</id><published>2009-07-07T01:50:00.000-07:00</published><updated>2009-07-08T06:56:20.460-07:00</updated><title type='text'>Statistics: Multi-collinearity Variance Inflation and Orthogonalization in Regression</title><content type='html'>&lt;a href="http://creative-wisdom.com/computer/sas/collinear.html"&gt;http://creative-wisdom.com/computer/sas/collinear.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1869642916482619480?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1869642916482619480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/multi-collinearity-variance-inflation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1869642916482619480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1869642916482619480'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/multi-collinearity-variance-inflation.html' title='Statistics: Multi-collinearity Variance Inflation and Orthogonalization in Regression'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4292032769441762422</id><published>2009-07-07T01:41:00.000-07:00</published><updated>2009-07-08T06:55:53.405-07:00</updated><title type='text'>SAS: Creating Scatter Plots - (m*n Chart)</title><content type='html'>&lt;a href="http://support.sas.com/documentation/cdl/en/procstat/59629/HTML/default/procstat_corr_sect033.htm"&gt;http://support.sas.com/documentation/cdl/en/procstat/59629/HTML/default/procstat_corr_sect033.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4292032769441762422?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4292032769441762422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/creating-scatter-plots-sas-nn-chart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4292032769441762422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4292032769441762422'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/creating-scatter-plots-sas-nn-chart.html' title='SAS: Creating Scatter Plots - (m*n Chart)'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-7865390946626440733</id><published>2009-07-07T01:38:00.001-07:00</published><updated>2009-07-07T01:38:16.173-07:00</updated><title type='text'>Online Seminars and Classes</title><content type='html'>&lt;a href="http://www.ats.ucla.edu/stat/seminars/default.htm"&gt;http://www.ats.ucla.edu/stat/seminars/default.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-7865390946626440733?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/7865390946626440733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/online-seminars-and-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/7865390946626440733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/7865390946626440733'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/online-seminars-and-classes.html' title='Online Seminars and Classes'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-8793080213031188510</id><published>2009-07-07T01:37:00.001-07:00</published><updated>2009-07-08T06:57:09.364-07:00</updated><title type='text'>SAS: Statistical tests using SAS</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.ats.ucla.edu/stat/sas/whatstat/whatstat.htm"&gt;http://www.ats.ucla.edu/stat/sas/whatstat/whatstat.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-8793080213031188510?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/8793080213031188510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistical-tests-using-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/8793080213031188510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/8793080213031188510'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/statistical-tests-using-sas.html' title='SAS: Statistical tests using SAS'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-499435089138933585</id><published>2009-07-07T01:34:00.000-07:00</published><updated>2009-07-08T06:57:30.566-07:00</updated><title type='text'>SAS: Topics in SAS Programming</title><content type='html'>&lt;a href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/"&gt;http://www.cpc.unc.edu/services/computer/presentations/sasclass99/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/keepdrop.html"&gt;Keeping only the variables you want&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/dropobs.html"&gt;Keeping only the observations you want&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/retain.html"&gt;Retained variables&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/bygroups.html"&gt;Working with grouped observations&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/merge.html"&gt;Introduction to merging in SAS&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/arrays.html"&gt;SAS arrays&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/mtochild.html"&gt;Restructuring a SAS data set: from a mother file to a child file&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/ctomother.html"&gt;Restructuring a SAS data set: from a child file to a mother file&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/work.html"&gt;SAS Work Environment&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/comments.html"&gt;SAS Comments&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/sysop.html"&gt;SAS System Options&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/contents.html"&gt;Basic SAS Procedures - PROC CONTENTS&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/freq.html"&gt;Basic SAS Procedures - PROC FREQ&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/print.html"&gt;Basic SAS Procedures - PROC PRINT&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/obs.html"&gt;Processing a Limited Number of Observations&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/ods.html"&gt;SAS Output Delivery System (ODS)&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/ods"&gt;Output SAS Results in HTML (Excel) Files Using ODS&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/services/computer/presentations/20feb2002.html"&gt;Using SAS Efficiently with Very Large Datasets&lt;/a&gt;&lt;br /&gt;&lt;a class="verticalMenu" href="http://www.cpc.unc.edu/restools/data_analysis/ml_sampling_weights"&gt;ML Sampling Weights&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.cpc.unc.edu/services/computer/presentations/sasclass99/"&gt;http://www.cpc.unc.edu/services/computer/presentations/sasclass99/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-499435089138933585?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/499435089138933585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/topics-in-sas-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/499435089138933585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/499435089138933585'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/topics-in-sas-programming.html' title='SAS: Topics in SAS Programming'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6321709046473477402</id><published>2009-07-07T00:02:00.001-07:00</published><updated>2009-07-08T07:01:20.327-07:00</updated><title type='text'>SAS: 2 level Combination</title><content type='html'>data abc;&lt;br /&gt;input name $10.;&lt;br /&gt;datalines;&lt;br /&gt;Srikanth&lt;br /&gt;Sarbadal&lt;br /&gt;Boyina&lt;br /&gt;Pal&lt;br /&gt;Debajit&lt;br /&gt;Ghosh&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;proc sql noprint;select name into :var separated by " " from abc;&lt;br /&gt;proc transpose data=abc out=result;var name;run;&lt;br /&gt;&lt;br /&gt;data comb;&lt;br /&gt;keep var1 var2;&lt;br /&gt;array a(6) $ col1-col6;&lt;br /&gt;set result;&lt;br /&gt;do i=1 to 6;&lt;br /&gt;do j=i+1 to 6;&lt;br /&gt;var1=a(i);&lt;br /&gt;var2=a(j);output;&lt;br /&gt;end;&lt;br /&gt;end;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6321709046473477402?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6321709046473477402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/2-level-combination-in-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6321709046473477402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6321709046473477402'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/2-level-combination-in-sas.html' title='SAS: 2 level Combination'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6184136928399885022</id><published>2009-07-06T23:57:00.000-07:00</published><updated>2009-07-08T07:03:33.959-07:00</updated><title type='text'>SAS: Replace Missing with Zeros - only for all numeric variables</title><content type='html'>data test;&lt;br /&gt;format z date8.;&lt;br /&gt;input x y $ z mmddyy10. w;&lt;br /&gt;datalines;&lt;br /&gt;12 srikanth 3-01-1988 8.9&lt;br /&gt;34 kanth 2-7-2009 8.34&lt;br /&gt;12 srikanth 3-01-1988 8.9&lt;br /&gt;34 kanth 2-7-2009 8.34&lt;br /&gt;. srikanth 3-01-1988 8.9&lt;br /&gt;34 kanth 2-7-2009 8.34&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;/* Please provide data set name over here&lt;br /&gt;it will create new data set as copy_old data set name */&lt;br /&gt;%let orginal_dataset=test;&lt;br /&gt;proc contents data=&amp;amp;orginal_dataset. out=data_map(keep=name type format);run;&lt;br /&gt;data data_map;set data_map;&lt;br /&gt;if (type=1 and format ="");run;&lt;br /&gt;data _null_;set data_map;&lt;br /&gt;call symput("n",_N_);&lt;br /&gt;call symput('Var'left(_n_), name);run;&lt;br /&gt;%macro missing_with_zero;&lt;br /&gt;data copy_&amp;amp;orginal_dataset.;set &amp;amp;orginal_dataset.;&lt;br /&gt;%do i=1 %to &amp;amp;n.;&lt;br /&gt;if (&amp;amp;&amp;amp;var&amp;amp;i. eq .) then &amp;amp;&amp;amp;var&amp;amp;i.=0;&lt;br /&gt;%end;run;&lt;br /&gt;%mend;&lt;br /&gt;%missing_with_zero;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6184136928399885022?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6184136928399885022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/replace-missing-with-zeros-in-sas-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6184136928399885022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6184136928399885022'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/replace-missing-with-zeros-in-sas-only.html' title='SAS: Replace Missing with Zeros - only for all numeric variables'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6765072502875797622</id><published>2009-07-06T23:50:00.000-07:00</published><updated>2009-07-08T07:03:00.441-07:00</updated><title type='text'>SAS: Sending Attachment</title><content type='html'>&lt;p&gt;&lt;br /&gt;data test;&lt;br /&gt;input x;&lt;br /&gt;datalines;&lt;br /&gt;12&lt;br /&gt;23&lt;br /&gt;;&lt;br /&gt;run;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;%LET sri_file = /gdr/home_dir/z062709/; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;ODS CSV FILE="&amp;amp;sri_file.test.csv";&lt;br /&gt;PROC PRINT DATA= test NOobs label; RUN;&lt;br /&gt;ODS CSV close;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;FILENAME OUTBOX EMAIL &lt;a href="mailto:boyina.srikanth@gmail.com"&gt;boyina.srikanth@gmail.com&lt;/a&gt;;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;DATA _null_; &lt;/p&gt;&lt;p&gt;FILE OUTBOX&lt;br /&gt;TO=("srikanthkumar.boyina@target.com")&lt;br /&gt;SUBJECT="Data From SAS"&lt;br /&gt;ATTACH="&amp;amp;sri_file.test.csv";&lt;br /&gt;RUN;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6765072502875797622?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6765072502875797622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/sending-attachment-from-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6765072502875797622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6765072502875797622'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/sending-attachment-from-sas.html' title='SAS: Sending Attachment'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-2184719223658476064</id><published>2009-07-06T23:43:00.000-07:00</published><updated>2009-07-08T07:00:59.656-07:00</updated><title type='text'>SAS: Delete Formates</title><content type='html'>data test;&lt;br /&gt;set data ;&lt;br /&gt;attrib _all_ label='';&lt;br /&gt;format _all_;&lt;br /&gt;informat _all_;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-2184719223658476064?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/2184719223658476064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/delete-formates-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2184719223658476064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/2184719223658476064'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/delete-formates-sas.html' title='SAS: Delete Formates'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1323771766649581210</id><published>2009-07-06T23:42:00.001-07:00</published><updated>2009-07-08T07:00:38.857-07:00</updated><title type='text'>SAS: Grid Table</title><content type='html'>data test;&lt;br /&gt;keep a1-a1260 Weight;&lt;br /&gt;set sri.target_home;&lt;br /&gt;a1=qc6_Bath_JCpenney_1;&lt;br /&gt;a2=qc6_Bath_JCpenney_2;&lt;br /&gt;a3=qc6_Bath_JCpenney_3;&lt;br /&gt;a4=qc6_Bath_JCpenney_4;&lt;br /&gt;a5=qc6_Bath_JCpenney_5;&lt;br /&gt;a6=qc6_Bath_JCpenney_6;&lt;br /&gt;a7=qc6_Bath_JCpenney_7;&lt;br /&gt;a8=qc6_Bath_JCpenney_8;&lt;br /&gt;a9=qc6_Bath_JCpenney_9;&lt;br /&gt;a10=qc6_Bath_JCpenney_10;&lt;br /&gt;run;&lt;br /&gt;%macro tet;&lt;br /&gt;proc freq data=test;&lt;br /&gt;%do i=1 %to 100;&lt;br /&gt;table a&amp;amp;i./out=test_a&amp;amp;i.(rename=(a&amp;amp;i.=id count=a&amp;amp;i.) drop=percent);&lt;br /&gt;%end;&lt;br /&gt;WEIGHT Weight;&lt;br /&gt;run;&lt;br /&gt;data final;&lt;br /&gt;merge&lt;br /&gt;%do i=1 %to 100;&lt;br /&gt;test_a&amp;amp;i.&lt;br /&gt;%end;;&lt;br /&gt;by id;&lt;br /&gt;run;&lt;br /&gt;%mend;&lt;br /&gt;%tet;&lt;br /&gt;proc transpose data=final out=t123;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1323771766649581210?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1323771766649581210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/grid-table-in-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1323771766649581210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1323771766649581210'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/grid-table-in-sas.html' title='SAS: Grid Table'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-3828726621484909422</id><published>2009-07-06T23:23:00.000-07:00</published><updated>2009-07-08T06:59:33.089-07:00</updated><title type='text'>SAS: Converting Char format to date format</title><content type='html'>data test;&lt;br /&gt;input tes $20.;&lt;br /&gt;datalines;&lt;br /&gt;20090406&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;data ttt;&lt;br /&gt;format dd date9.;&lt;br /&gt;set test;&lt;br /&gt;dd=input(tes,ANYDTDTE11.);&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-3828726621484909422?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/3828726621484909422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/converting-char-format-to-date-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3828726621484909422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3828726621484909422'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/converting-char-format-to-date-format.html' title='SAS: Converting Char format to date format'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-1606766331272481386</id><published>2009-07-06T03:21:00.001-07:00</published><updated>2009-07-08T07:00:14.393-07:00</updated><title type='text'>SAS: Read in any type of date format</title><content type='html'>Hou to read/extract any type of date using ANYDTDTE informat.&lt;br /&gt;The following example illustrates this.&lt;br /&gt;&lt;br /&gt;/* Read in raw data – various types of date format */&lt;br /&gt;&lt;br /&gt;Data dates;&lt;br /&gt;Input cdate $22.;&lt;br /&gt;Cards;&lt;br /&gt;16-apr-07&lt;br /&gt;01-02-07&lt;br /&gt;2007-05-06&lt;br /&gt;02-jun-07&lt;br /&gt;13-sep-2007&lt;br /&gt;01JAN2009 14:30:08.5&lt;br /&gt;;&lt;br /&gt;Run;&lt;br /&gt;&lt;br /&gt;/* Convert them to required date format using AnydtdteW */&lt;br /&gt;&lt;br /&gt;Data Convert;&lt;br /&gt;Set dates;&lt;br /&gt;Date = Input (cdate, ANYDTDTE21.);&lt;br /&gt;Format date date9.;&lt;br /&gt;Run;&lt;br /&gt;&lt;br /&gt;/* Output */&lt;br /&gt;&lt;br /&gt;16APR2007&lt;br /&gt;02JAN2007&lt;br /&gt;06MAY2007&lt;br /&gt;02JUN2007&lt;br /&gt;13SEP2007&lt;br /&gt;01JAN2009&lt;br /&gt;&lt;br /&gt;This way you can read in any type of date format into SAS without having to worry about the right informat!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-1606766331272481386?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/1606766331272481386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/read-in-any-type-of-date-format-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1606766331272481386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/1606766331272481386'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/read-in-any-type-of-date-format-into.html' title='SAS: Read in any type of date format'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4115041565434044121</id><published>2009-07-06T03:15:00.000-07:00</published><updated>2009-07-06T03:16:49.821-07:00</updated><title type='text'>SAS - how to ‘Extract multiple matching patterns using Perl regular expressions (PRX) from a text string’.</title><content type='html'>The regular expressions are:&lt;br /&gt;&lt;br /&gt;1)       \d refers to any digit (0 - 9),&lt;br /&gt;2)       \D to any non-digit, and&lt;br /&gt;3)       \w to any word character (A-Z, a-z, 0-9, and _).&lt;br /&gt;4)       The three metacharacters, *, +, and ? are particularly useful because they add quantity to a regular expression.*/&lt;br /&gt;&lt;br /&gt;/*The below example extracts phone numbers from a string */&lt;br /&gt;&lt;br /&gt;/*To identify a phone number use the below expressions **/&lt;br /&gt;            \( matches an open parenthesis ; \d\d\d matches three digits&lt;br /&gt;            \) matches a closed parenthesis; ? matches zero or more occurances of the previous pattern&lt;br /&gt;            \d\d\d matches three digits; - matches a dash&lt;br /&gt;            \d{4} matches four digits                 */&lt;br /&gt;&lt;br /&gt;/***************************************************************/&lt;br /&gt;DATA EXTRACT;&lt;br /&gt;      IF _N_ = 1 THEN DO;&lt;br /&gt;            PATTERN = PRXPARSE ("/\(\d\d\d\) ?\d\d\d-\d{4}/");&lt;br /&gt;      END;&lt;br /&gt;      RETAIN PATTERN;&lt;br /&gt;      LENGTH NUMBER $ 15;&lt;br /&gt;      INPUT STRING $CHAR80.;&lt;br /&gt;      CALL PRXSUBSTR(PATTERN,STRING,START,LENGTH);&lt;br /&gt;            IF START GT 0 THEN DO;&lt;br /&gt;                  NUMBER = SUBSTR(STRING,START,LENGTH);&lt;br /&gt;                  NUMBER = COMPRESS(NUMBER," ");&lt;br /&gt;                  OUTPUT;&lt;br /&gt;            END;&lt;br /&gt;            KEEP NUMBER START LENGTH;&lt;br /&gt;DATALINES;&lt;br /&gt;THIS LINE DOES NOT HAVE ANY PHONE NUMBERS ON IT&lt;br /&gt;THIS LINE DOES: (123)345-4567 LA DI LA DI LA&lt;br /&gt;ALSO VALID (123) 999-9999&lt;br /&gt;TWO NUMBERS HERE (333)444-5555 AND (800)123-4567&lt;br /&gt;;&lt;br /&gt;/**************************************************************/&lt;br /&gt;&lt;br /&gt;The ‘PRXPARSE’ function is used to create regular expressions.&lt;br /&gt;    Syntax: PRXPARSE (perl-regular-expression)&lt;br /&gt;The ‘PRXSUBSTR’ function returns the length of the match as well as the starting position.&lt;br /&gt;    Syntax: PRXSUBSTR(pattern-id, string, start, &lt;length&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Run the above code in SAS to understand how this works.&lt;br /&gt;&lt;br /&gt;For more details visit:&lt;br /&gt;&lt;a title="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002288677.htm" href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002288677.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002288677.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4115041565434044121?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4115041565434044121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/sas-how-to-extract-multiple-matching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4115041565434044121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4115041565434044121'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/sas-how-to-extract-multiple-matching.html' title='SAS - how to ‘Extract multiple matching patterns using Perl regular expressions (PRX) from a text string’.'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6641750903055242845</id><published>2009-07-06T03:14:00.001-07:00</published><updated>2009-07-08T06:58:56.679-07:00</updated><title type='text'>SAS: Proc Sql like _N_ in DATA step</title><content type='html'>Proc Sql;&lt;br /&gt;Select monotonic() as rownum , a.*&lt;br /&gt;From sashelp.class a&lt;br /&gt;Where monotonic() &lt;5;&lt;br /&gt;Quit;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6641750903055242845?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6641750903055242845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/proc-sql-like-n-in-data-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6641750903055242845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6641750903055242845'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/proc-sql-like-n-in-data-step.html' title='SAS: Proc Sql like _N_ in DATA step'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-3993970857668097445</id><published>2009-07-06T03:12:00.000-07:00</published><updated>2009-07-08T06:59:12.949-07:00</updated><title type='text'>SAS: Identify duplicate and nonduplicate observations in a SAS data set</title><content type='html'>We can achieve this by using DUPOUT= option on the PROC SORT statement. /* The below code creates the duplicate observations in a new data set called dups while the remaining observations stay in no_dup */&lt;br /&gt;/***********************************************************/&lt;br /&gt;&lt;strong&gt;Proc Sort data=sashelp.class out=no_dup dupout=dups nodupkey;&lt;br /&gt;by age;&lt;br /&gt;Run;&lt;/strong&gt;&lt;br /&gt;/***********************************************************/&lt;br /&gt;&lt;br /&gt;SAS LOG:&lt;br /&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;br /&gt;NOTE: 13 observations with duplicate key values were deleted.&lt;br /&gt;NOTE: The data set WORK.NO_DUP has 6 observations and 5 variables.NOTE: The data set WORK.DUPS has 13 observations and 5 variables.&lt;br /&gt;Note:&lt;br /&gt;The DUPOUT option is effective only when used with the NODUPKEY or NODUPREC/NODUP options. Without one of&lt;br /&gt;these options, the log will show a WARNING message and the DUPOUT data set will be created with 0 records.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-3993970857668097445?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/3993970857668097445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/identify-duplicate-and-nonduplicate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3993970857668097445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3993970857668097445'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/identify-duplicate-and-nonduplicate.html' title='SAS: Identify duplicate and nonduplicate observations in a SAS data set'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-860678550951608825</id><published>2009-07-06T03:09:00.000-07:00</published><updated>2009-07-08T06:59:52.666-07:00</updated><title type='text'>UNIX: How to kill/pause/break  jobs in Unix</title><content type='html'>1) To display full information about each of the processes currently running.&lt;br /&gt;ps –fu USERID&lt;br /&gt;&lt;br /&gt;2) To pause/break the currently running job and resume.&lt;br /&gt;Kill –s STOP &lt;pid&gt;- To Pause the job&lt;br /&gt;Kill –s CONT &lt;pid&gt;- To Resume the paused job&lt;br /&gt;&lt;br /&gt;3) To display how much free disk space is available for each file system you have&lt;br /&gt;df –h&lt;br /&gt;&lt;br /&gt;4) The below command displays how much space a file occupies.&lt;br /&gt;du –kh&lt;br /&gt;&lt;br /&gt;5) To compress a file&lt;br /&gt;compress FILENAME&lt;br /&gt;&lt;br /&gt;Use the last two tips to efficiently manage your disk space. Delete the files you don’t require, or that can be regenerated easily. If you need to keep them, compress and store them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-860678550951608825?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/860678550951608825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-killpausebreak-jobs-in-unix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/860678550951608825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/860678550951608825'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-killpausebreak-jobs-in-unix.html' title='UNIX: How to kill/pause/break  jobs in Unix'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-4317145773908433699</id><published>2009-07-06T03:07:00.000-07:00</published><updated>2009-07-08T06:58:36.815-07:00</updated><title type='text'>SAS: Create multiple datasets using a single Proc Means Procedure</title><content type='html'>e.g., we want to analyze data based on the following 3 combinations. Analysis Variable is fraud_amount. The 3 classification variables being&lt;br /&gt;By fraud_type&lt;br /&gt;By year and fraud_type&lt;br /&gt;By year, month and fraud_type&lt;br /&gt;&lt;br /&gt;Proc Means data=sales_data chartype;&lt;br /&gt;Class year month fraud_type;&lt;br /&gt;Var fraud_amount ;&lt;br /&gt;Output out=fraud_type (where= (_type_='001') drop=year month) sum=; /*By fraud_type*/&lt;br /&gt;Output out=year_fraud_type (where =(_type_='101' and year=2008) drop=month) sum=;&lt;br /&gt;Output out=yr_month_fraud_type (where =(_type_='111')) sum=;&lt;br /&gt;Run;&lt;br /&gt;&lt;br /&gt;Chartype - converts the (default) numeric values of _TYPE_ to a character variable containing zeros and ones. The length of this variable is equal to the number of variables in the CLASS (or BY) statement.&lt;br /&gt;&lt;br /&gt;_type_ - indicates which classification variables SAS should consider for analysis. i.e. _type_ = ‘1’ instructs SAS to consider the variable &amp;amp; ‘0’ instructs SAS to ignore the variable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This way we do not have to have separate proc means for each classification, but we can combine them all in one step!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-4317145773908433699?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/4317145773908433699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/create-multiple-datasets-using-single.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4317145773908433699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/4317145773908433699'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/create-multiple-datasets-using-single.html' title='SAS: Create multiple datasets using a single Proc Means Procedure'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-6727407622416024893</id><published>2009-07-06T03:02:00.000-07:00</published><updated>2009-07-08T06:58:10.585-07:00</updated><title type='text'>SAS: IDENTIFY AND EXTRACT ALL EXCEL FILE NAMES IN A SPECIFIED FOLDER in SAS</title><content type='html'>In SAS, there are various functions to process external files. These functions can open a&lt;br /&gt;directory, determine the number of members of the directory, identify the file names that can be used to process the&lt;br /&gt;data, and close the directory. File processing can be done dynamically without ever knowing the physical file name.&lt;br /&gt;&lt;br /&gt;Few functions are DOPEN, DNUM, DREAD&lt;br /&gt;&lt;br /&gt;DOPEN - This external file function opens a directory using a file reference as the argument and returns a numeric directory identifier value. If the value returned is a 0, then the directory was not found. Otherwise, a returned value greater than 0 identifies the opened directory and can be used in other SAS external file functions.&lt;br /&gt;&lt;br /&gt;DNUM - This external file function returns the number of members in a directory using the directory identifier returned by the DOPEN function.&lt;br /&gt;&lt;br /&gt;DREAD - This external file function uses the identifier returned by the DOPEN function and returns a directory member name. By using the value of the total number of files in a directory returned by DNUM, all files in a directory can be processed in a loop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example - IDENTIFY AND EXTRACT ALL EXCEL FILE NAMES IN A SPECIFIED FOLDER - Assume you have a folder which contains many files of different types and you want to extract the file names of one particular type (e.g., Excel workbooks); The following DATA step will extract their file names:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DATA xls_files(keep=file_name);&lt;br /&gt;LENGTH file_name $30 ;&lt;br /&gt;rc= filename("dir","~");&lt;br /&gt;d=DOPEN("dir");&lt;br /&gt;n=DNUM(d);&lt;br /&gt;do i=1 to n;&lt;br /&gt;file_name=DREAD(d,i) ;&lt;br /&gt;if LOWCASE(SCAN(file_name,2,'.')) EQ 'xls' then output;&lt;br /&gt;end;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-6727407622416024893?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/6727407622416024893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/identify-and-extract-all-excel-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6727407622416024893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/6727407622416024893'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/identify-and-extract-all-excel-file.html' title='SAS: IDENTIFY AND EXTRACT ALL EXCEL FILE NAMES IN A SPECIFIED FOLDER in SAS'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-3244003913381771237</id><published>2009-07-06T02:58:00.000-07:00</published><updated>2009-07-08T06:57:50.440-07:00</updated><title type='text'>SAS: How to create password protected SAS Datasets through EG</title><content type='html'>&lt;strong&gt;/*Assigning password "green" to dataset "testpass"*/&lt;br /&gt;&lt;/strong&gt;proc datasets lib = work;&lt;br /&gt;modify testpass (pw=green);&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;/*Change Existing password "green" to "red" for dataset "testpass"*/ &lt;/strong&gt;&lt;br /&gt;proc datasets lib = work;&lt;br /&gt;modify testpass (pw=green/red);&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;/*Removing password "green" from dataset "testpass"*/&lt;br /&gt;&lt;/strong&gt;proc datasets lib = work;&lt;br /&gt;modify testpass (pw=green/);&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;/*Reading into another dataset*/&lt;/strong&gt;&lt;br /&gt;data testpass_next;&lt;br /&gt;set testpass(read=red);&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-3244003913381771237?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/3244003913381771237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-create-password-protected-sas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3244003913381771237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/3244003913381771237'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-create-password-protected-sas.html' title='SAS: How to create password protected SAS Datasets through EG'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3061699649544155609.post-109074108612587881</id><published>2009-07-06T02:53:00.000-07:00</published><updated>2009-07-08T07:02:21.749-07:00</updated><title type='text'>SQL: How to fetch only 10 rows from different servers</title><content type='html'>&lt;strong&gt;&lt;u&gt;Database &lt;/u&gt;&lt;/strong&gt;&lt;strong&gt;&lt;u&gt;SQL Syntax&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;DB2 ----&gt; select * from table fetch first 10 rows only&lt;br /&gt;Informix ----&gt;select first 10 * from table&lt;br /&gt;MS SQL Server and Access ----&gt; select top 10 * from table&lt;br /&gt;MySQL and PostgreSQL ----&gt; select * from table limit 10&lt;br /&gt;Oracle 8i ----&gt; select * from (select * from table) where rownum &lt;= 10&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3061699649544155609-109074108612587881?l=srikanthboyina.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://srikanthboyina.blogspot.com/feeds/109074108612587881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-fetch-only-10-rows-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/109074108612587881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3061699649544155609/posts/default/109074108612587881'/><link rel='alternate' type='text/html' href='http://srikanthboyina.blogspot.com/2009/07/how-to-fetch-only-10-rows-from.html' title='SQL: How to fetch only 10 rows from different servers'/><author><name>Srikanth Boyina</name><uri>http://www.blogger.com/profile/03729185016953526921</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_jCwAQNXJa8M/Sn52XIJn5tI/AAAAAAAAAHs/nwjip0KJPks/S220/DSC01462.JPG'/></author><thr:total>0</thr:total></entry></feed>
