<?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-18633351</id><updated>2012-02-16T09:15:40.585-08:00</updated><category term='proc sql'/><category term='ODS'/><category term='Proc Report'/><category term='Data presentation'/><category term='SAS QC'/><category term='ampersand'/><category term='Standards'/><category term='hypothesis'/><category term='Non-parametric'/><category term='bio-informatics'/><category term='Concomitant Medications'/><category term='Hypothesis testing'/><category term='location'/><category term='Graphics'/><category term='flag'/><category term='ANOVA'/><category term='non-inferiority'/><category term='function'/><category term='macro'/><category term='coalesce'/><category term='ratio testing'/><category term='truncover'/><category term='multiple external files'/><category term='Asthma'/><category term='basics'/><category term='p-value'/><category term='transaction dataset'/><category term='sample size'/><category term='Km-curve'/><category term='mySQL'/><category term='data management'/><category term='low normal high'/><category term='AUC'/><category term='chem-informatics'/><category term='flowover'/><category term='insilico'/><category term='format'/><category term='Header'/><category term='odds ratio'/><category term='Kreara'/><category term='Technopark'/><category term='report'/><category term='substr'/><category term='Proc freq'/><category term='trend'/><category term='Scrum'/><category term='clinical trials'/><category term='statistics'/><category term='Note'/><category term='indexw'/><category term='Chi-square'/><category term='cartesian product'/><category term='superiority'/><category term='input'/><category term='Parallel Programming'/><category term='Medical Coding'/><category term='ranuni'/><category term='repeat'/><category term='ITT'/><category term='SAS'/><category term='%do'/><category term='Survival Analysis'/><category term='Van Elteren'/><category term='Infile'/><category term='character function'/><category term='Footer'/><category term='indexc'/><category term='master dataset'/><category term='decimal alignment'/><category term='Trivandrum'/><category term='India'/><category term='update'/><category term='semi colon'/><category term='descriptive statistics'/><category term='Kerala'/><category term='Quality Control'/><category term='Shift table'/><category term='laboratory values'/><category term='missover'/><category term='LOCF'/><category term='document'/><category term='programming'/><category term='filevar'/><category term='Hodges-Lehmann'/><category term='Thiruvananthapuram'/><category term='END'/><category term='print'/><category term='Blind Review'/><category term='Fisher Exact Test'/><category term='equivalence'/><category term='logistic'/><category term='preloadfmt'/><category term='colon'/><category term='index'/><category term='ODBC'/><category term='Wilcoxon'/><category term='bootstrap'/><category term='pre-clinical'/><category term='warning'/><category term='Analysis'/><category term='score'/><title type='text'>Kreara</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>61</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-18633351.post-736285038115772428</id><published>2021-06-21T22:46:00.000-07:00</published><updated>2010-07-01T01:58:09.145-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><title type='text'></title><content type='html'>&lt;span style=";font-family:arial;font-size:180%;"  &gt;&lt;span style="font-weight: bold;"&gt;Overview&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div  style="text-align: justify;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;KREARA Solutions is a clinical data management and biometrics solution provider based out of the beautiful campus of Technopark, Trivandrum. Originally established as a statistical services vendor in April 2004, Kreara soon gained traction in the field of clinical trials and got ourselves well versed with the ICH/GCP and CFR PART 11 regulatory requirements. Since then Kreara has been using custom built software applications and standard statistical packages like SAS for providing end-to-end data management and biometric solutions to the pharmaceutical companies and contract research organizations in India, USA and Europe. Kreara was officially incorporated in April 2004.&lt;br /&gt;&lt;br /&gt;Our  mission is to become the Number 1 CRO in the country providing supplementary services for clinical trials and ultimately help our clients to make affordable and quality health care to the masses a reality.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-736285038115772428?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/736285038115772428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=736285038115772428' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/736285038115772428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/736285038115772428'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2007/06/kreara-solutions-is-clinical-data.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-6410668382433613441</id><published>2010-07-01T05:12:00.001-07:00</published><updated>2010-07-01T06:29:59.044-07:00</updated><title type='text'></title><content type='html'>&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Dynamic concatenation of transposed variables&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;Prepared by &lt;/i&gt;&lt;/span&gt;&lt;a href="mailto:jose@kreara.com" id="yn1." title="Jose Abraham"&gt;Jose Abraham&lt;/a&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;The transpose procedure in SAS changes multiple values in rows (for a column) into columns, and can also change multiple columns’ values into multiple rows values for a single column. The number of variables (columns) to be created in the output file is based on the maximum number of observations (rows) in a variable (column) to be transposed. If the prefix= option is not specified, then the transposed variables have names Col1, Col2 etc…. i.e. if the dataset has 4 observations in a variable, then on transposing 4 variables namely Col1, Col2, Col3 and Col4 are obtained against each value of the by variable (labparam, lab_id in the below example).&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;In certain situations, it is required to concatenate the columns obtained during transposing. This can be attained simply by setting the dataset and concatenating the variables using the concatenation operator (||).&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;e.g. Newvar= Col1|| ‘,’||Col2|| ‘,’||Col3|| ‘,’||Col4;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;This procedure may however not produce desirable results if any of the four columns have missing values. If suppose Col3 and Col4 have missing values then consecutive ‘,’ will be presented as the last few characters in the variable Newvar. &lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;The concatenation is thus done by determining the maximum number of Col variables in the transposed dataset and then concatenating the non missing variables to create the new variable against each of the by variables. &lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Consider the following example from a clinical trial analysis, where the laboratory values are collected at different laboratories. For different laboratories, the reference ranges adopted for parameters are different.Such a dataset is shown below&lt;/span&gt;&lt;/p&gt;&lt;div id="a703" style="text-align: justify;"&gt;&lt;img src="http://docs.google.com/File?id=dhj34ntw_11fmxth2dr_b" style="height: 151px; width: 351px;" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;While obtaining descriptive statistics for different lab parameters, the lab ranges are to be presented in the report as a sub header of the following form.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;e.g.  Param1 &lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt; Lab-A: 0-35 g/L (Age 0-99)&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt; Lab-B: 0-34 g/L (Age 0-18), 0-35 g/L (Age 18-60), 0-36 g/L (Age 60-99)&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;For different laboratory groups the number of ranges will be different, so it is necessary to dynamically concatenate the ranges for each lab for each parameter. The steps involved in this process are given below&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Dataset with the lab ranges is transposed.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008000;"&gt;&lt;span style="font-size:100%;"&gt;*Transposing the data to get the reference ranges horizontally;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;proc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;transpose&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;=range &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;out&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;=range_trn;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;by&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; labparam lab_id;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; range;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;run&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Select the information about the number of columns in the transposed dataset with the help of sashelp.vcolumn dataset. A macro variable named ‘coln’ is created with the maximum number of ‘Col’ variables as its value.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008000;"&gt;&lt;span style="font-size:100%;"&gt;*Creating a macro variable with maximum number of columns;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-align: justify;"&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;_null_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; sashelp.vcolumn end=last;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=""&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;where&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; trim(libname) = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#800080;"&gt;&lt;span style="font-size:100%;"&gt;'WORK'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; and trim(memname) =&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#800080;"&gt;&lt;span style="font-size:100%;"&gt;'RANGE_TRN'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; and upcase(substr(name,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;))=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#800080;"&gt;&lt;span style="font-size:100%;"&gt;'COL'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; last &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;then&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;call&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; symput(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#800080;"&gt;&lt;span style="font-size:100%;"&gt;'coln'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;,trim(left(put(_n_,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;6.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;))));&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;run&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Set the transposed dataset and giving array reference to the ‘Col’ variables. Concatenate the ranges with using a do loop and then remove the preceding comma by taking substring of the concatenated variable. A variable named ‘labrange’ is created by concatenating with the lab_id.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; range_con; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;length&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; convar $&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;400&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;array&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; cols {&amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;coln.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;} $&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;50&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; col1-col&amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;coln.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; range_trn;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;do&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; i=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;to&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; dim(cols);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; not missing(cols[i]) &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;then&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; convar= trim(convar)||&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#800080;"&gt;&lt;span style="font-size:100%;"&gt;', '&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;||cols[i];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; convar=substr(left(convar),&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008080;"&gt;&lt;span style="font-size:100%;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; Labrange=trim(left(lab_id))||&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#800080;"&gt;&lt;span style="font-size:100%;"&gt;':'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;|| compbl(convar);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;keep&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; labparam lab_id labrange;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;run&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;The dataset range_con contains the concatenated ‘labrange’ variable.&lt;/p&gt;&lt;p style="margin-left: 40px;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#008000;"&gt;&lt;span style="font-size:100%;"&gt;*Transposing the dataset to present the ranges for different lab_id's in different variables;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 40px;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;proc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;transpose&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;= range_con&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt; out&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;=lab_rng(drop=_name_);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 40px;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; lab_id;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 40px;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;by&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; labparam;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 40px;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:100%;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt; labrange;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 40px; text-align: justify;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000080;"&gt;&lt;span style="font-size:100%;"&gt;run&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-family:&amp;quot;courier new&amp;quot;;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 40px; text-align: justify;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;The output dataset obtained during transposing is of the following form&lt;/p&gt;&lt;p style="margin-left: 40px; text-align: justify;"&gt;&lt;/p&gt;&lt;div id="vxfz" style="text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=dhj34ntw_12fqpkq8fz_b" style="height: 47.2865px; width: 648px;" /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="margin-left: 40px; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;By merging it with the descriptive statistics dataset and using ‘labparam’ and the variables containing the concatenated lab ranges (here LAB_A and LAB_B) as by variables in proc report creates a report which contains descriptive statistics for one parameter per page.  By using the ‘#byval’ option in the title statement we can obtain the sub headers of the following type.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Param1 &lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Lab-A: 0-35 g/L (Age 0-99)&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Lab-B: 0-34 g/L (Age 0-18), 0-35 g/L (Age 18-60), 0-36 g/L (Age 60-99)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-6410668382433613441?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/6410668382433613441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=6410668382433613441' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/6410668382433613441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/6410668382433613441'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2010/07/dynamic-concatenation-of-transposed.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8341990737354714916</id><published>2010-07-01T01:38:00.001-07:00</published><updated>2010-07-01T03:11:26.833-07:00</updated><title type='text'></title><content type='html'>&lt;p style="font-family:Verdana;text-align:justify"&gt;&lt;font size="2"&gt;&lt;b&gt;Project specific SAS shortcuts &lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align:justify"&gt;&lt;font size="2"&gt;&lt;i style="font-family:Verdana";&gt;Prepared by &lt;a href="mailto:jose@kreara.com" id="m_tb" title="Jose Abraham"&gt;Jose Abraham&lt;/a&gt;&lt;/i&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align:justify"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="text-align: justify;font-family:Verdana;"&gt;&lt;font size="2"&gt;As a SAS programmer, an important concept to know when opening and saving SAS programs is the &amp;lsquo;SasInitialFolder&amp;rsquo;. The location of this folder is the path name where SAS reads or stores files when a specific drive and pathname is not given. The name of this path appears in a small panel located in the lower right-hand corner of our SAS session. This can be changed at any time with a double-click within that rectangle to access a dialogue box, then entering the drive and path to the desired folder in the space provided or by moving through the folders as done while searching for a particular file. But the change which is made is not permanent. During the next invocation of the SAS System, the current folder will by default present the current folder path that was permanently set. In SAS v8 for windows, the default folder may be something like &amp;ldquo;C:\Documents and Settings\&amp;lt;user name&amp;gt;\My Documents\My SAS Files\V8&amp;rdquo; or a path which is in the drive where SAS is installed (e.g. &amp;ldquo;E:\SAS Installation&amp;rdquo;). When trying to open or save a program in a SAS session, this default folder will be shown and changing this folder to the desired folder may consume some amount of our valuable time. Here is the way to save this time and also to make project specific SAS shortcuts, which will allow opening and saving SAS programs of that project from the &amp;lsquo;SAS Programs&amp;rsquo; folder which is set for that project. The steps to set the current folder to a new location are given below. The folder which is to be set should be created before going through the following steps. 1. Create a shortcut of SAS by clicking on the &amp;lsquo;Start&amp;rsquo; menu and select &amp;lsquo;SAS&amp;rsquo; from &amp;lsquo;All Programs&amp;rsquo;, right click on it and then select &amp;lsquo;Send to Desktop&amp;rsquo;. Then a new SAS shortcut icon will be created in the desktop.2. Right click on the icon and select &amp;lsquo;Rename&amp;rsquo; and give a name related to the project.3. Again right click on the icon and select &amp;lsquo;Properties&amp;rsquo; and click on the &amp;lsquo;Shortcuts&amp;rsquo; tab.4. In the &amp;lsquo;Target&amp;rsquo; box, go to the far end of the right-hand side of what is seen in that by pressing the &amp;lsquo;End&amp;rsquo; button. Type one space, and enter the following command exactly as you see it here: -sasInitialFolder=&amp;quot;.&amp;quot;5. The current or working SAS folder will be the pathname that is specified in the &amp;#39;Start in&amp;#39; field (located just below the &amp;#39;Target&amp;#39; field). To designate the choice of the current folder, enter the drive and pathname of it within that box. This folder needs to exist on the specified directory.e.g. &amp;ldquo;G:\Project1\SAS programs&amp;rdquo;6. Click on &amp;lsquo;Apply&amp;rsquo; and then click &amp;lsquo;OK&amp;rsquo;. The shortcut is now ready for use for the particular project and it will direct to the specified folder on clicking &amp;lsquo;File-&amp;gt; Open&amp;rsquo; or &amp;lsquo;File-&amp;gt;Save As&amp;rdquo;.&lt;/font&gt;&lt;/p&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-8341990737354714916?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/8341990737354714916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=8341990737354714916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8341990737354714916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8341990737354714916'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2010/07/project-specific-sas-shortcuts-prepared.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-3792334312860272089</id><published>2010-06-08T06:45:00.001-07:00</published><updated>2010-07-01T03:01:51.546-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='character function'/><category scheme='http://www.blogger.com/atom/ns#' term='index'/><category scheme='http://www.blogger.com/atom/ns#' term='indexc'/><category scheme='http://www.blogger.com/atom/ns#' term='indexw'/><title type='text'></title><content type='html'>&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;b&gt;&lt;span style="font-size:120;"&gt;Index, Indexc and Indexw functions&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt; Prepared by &lt;a href="mailto:meena@kreara.com"&gt;Meena R S&lt;/a&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;The &lt;b&gt;&lt;i&gt;INDEX, INDEXC&lt;/i&gt;&lt;/b&gt; and &lt;b&gt;&lt;i&gt;INDEXW&lt;/i&gt;&lt;/b&gt; functions are used for determining the character matches. These functions are useful for testing purposes.&lt;/span&gt;&lt;span style="font-size:100%;"&gt; The &lt;span class="CharChar"&gt;index&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; and indexc functions can indicate if a string of characters is present in a target variable. Both functions return the position number of the match in the target variable. A zero indicates that the search argument is not present in the target variable.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;For finding a special character such as a letter, a group of letters, or special characters, Index functions can be used and it is case sensitive. The syntax is,&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;INDEX&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; (source, excerpt)&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;The INDEXC function allows multiple arguments and will identify the first occurrence of any of the characters in any of the arguments, but otherwise functions similarly to the index function. &lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;/* Example: 1 */&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt; &lt;img src="http://docs.google.com/File?id=dhj34ntw_2hcsdg6f6_b" style="height: 171px; width: 386px;" /&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;/* Results*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-family: Verdana;"&gt;&lt;/p&gt;&lt;div align="left"&gt;&lt;table style="width: 3px; height: 2px;" id="viuy" border="1" bordercolor="#000000" cellpadding="3" cellspacing="0"&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div id="pt2-" style="text-align: left;"&gt;&lt;img src="http://docs.google.com/File?id=dhj34ntw_3c2zsdghq_b" style="height: 95px; width: 240px;" /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-family: Verdana;"&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-family: Verdana;"&gt;&lt;span style="font-size:100%;"&gt;The &lt;i&gt;INDEXW&lt;/i&gt; function searches source, from left to right, for the first occurrence of excerpt and returns the position in source of the substring's first character. If the substring is not found in &lt;i&gt;source&lt;/i&gt;, &lt;i&gt;INDEXW&lt;/i&gt; returns a value of 0. If there are multiple occurrences of the string, &lt;i&gt;INDEXW&lt;/i&gt; returns only the position of the first occurrence.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;The &lt;i&gt;INDEXW&lt;/i&gt; function is case sensitive function that performs exactly the same function as the &lt;i&gt;INDEX&lt;/i&gt; function, with one significant exception.&lt;a id="z0843672" name="z0843672"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; The &lt;span class="CharChar"&gt;indexw&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; function searches for strings that are words, whereas the index function searches for patterns as separate words or as parts of other words. &lt;/span&gt;  &lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="font-size:100%;"&gt;/* Example: 2 */&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Verdana;"&gt; &lt;img src="http://docs.google.com/File?id=dhj34ntw_4cbjch8hb_b" style="height: 175px; width: 319px;" /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; /* Results */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;img src="http://docs.google.com/File?id=dhj34ntw_5g7njc7fv_b" style="height: 100px; width: 359px;" /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p face="Verdana"&gt;&lt;span style="text-align:justify;font-family:Verdana;font-size:100%;"  &gt;&lt;b&gt;Result Explanation&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:Verdana;font-size:100%;"&gt;The above program demonstrates the difference between INDEX and INDEXW functions. In the first observation in the table above, the INDEX function returns a 1 because the letters "the" as part of the word "there" begin the string. Since the INDEXW function needs either white space at the beginning or end of a string to delimit a word, it returns a 12, the position of the word "the" in the string. Observation 3 emphasizes the fact that a punctuation mark does not serve as a word separator. Finally, since the string "the" does not appear anywhere in the fourth observation, both functions return a 0.&lt;/p&gt;&lt;p style="font-family: Verdana; text-align: justify;"&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-3792334312860272089?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/3792334312860272089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=3792334312860272089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3792334312860272089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3792334312860272089'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2010/06/index-indexc-and-index-functions-index_9384.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-4927063596699823684</id><published>2010-06-08T00:26:00.001-07:00</published><updated>2010-06-08T02:41:29.473-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='multiple external files'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Infile'/><category scheme='http://www.blogger.com/atom/ns#' term='filevar'/><category scheme='http://www.blogger.com/atom/ns#' term='END'/><title type='text'></title><content type='html'>&lt;span xmlns=""&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:10;"&gt;&lt;em&gt;&lt;strong&gt;Read from multiple external files in one data step by using FILEVAR= option&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;&lt;em&gt;Prepared by &lt;a href="mailto:jose@kreara.com"&gt;Jose Abraham&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;/em&gt;&lt;/span&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;External files are usually read into SAS one by one using separate data steps for each external file. But multiple external files which have the same structure can be easily read into SAS in one data step by using FILEVAR= and END= options in the INFILE statement. Following example illustrates how to read multiple external files where the locations of the external files are stored in another external file.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;Consider we have demographic information of subjects from three different centers stored in three external files. All the three external files have the same structure as given below&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_AgqsS20RSWk/TA3pQqYYWAI/AAAAAAAAANI/O6gtzBP9u8E/s1600/untitled.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5480292794043488258" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 240px; CURSOR: hand; HEIGHT: 87px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_AgqsS20RSWk/TA3pQqYYWAI/AAAAAAAAANI/O6gtzBP9u8E/s320/untitled.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_AgqsS20RSWk/TA3pREhkJ5I/AAAAAAAAANQ/3VBxaOM_EBg/s1600/untitled1.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5480292801061332882" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 240px; CURSOR: hand; HEIGHT: 87px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_AgqsS20RSWk/TA3pREhkJ5I/AAAAAAAAANQ/3VBxaOM_EBg/s320/untitled1.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_AgqsS20RSWk/TA3pRUlSAtI/AAAAAAAAANY/k_jpExO-wBs/s1600/untitled2.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5480292805371888338" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 240px; CURSOR: hand; HEIGHT: 87px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/TA3pRUlSAtI/AAAAAAAAANY/k_jpExO-wBs/s320/untitled2.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;The data values are aligned in columns and there are no missing values. The layout follows.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_AgqsS20RSWk/TA3pRsCpb0I/AAAAAAAAANg/QECQuUOdkRo/s1600/untitled3.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5480292811669073730" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 240px; CURSOR: hand; HEIGHT: 112px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/TA3pRsCpb0I/AAAAAAAAANg/QECQuUOdkRo/s320/untitled3.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;We have another external file which contains the location information of these external files. Suppose these files are stored in the 'demog' folder in the E-drive, and the following external file (dmgfiles) which contains the locations is also in it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_AgqsS20RSWk/TA3pSI3MXeI/AAAAAAAAANo/a4hKJCYyjuI/s1600/untitled4.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5480292819405659618" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 270px; CURSOR: hand; HEIGHT: 88px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_AgqsS20RSWk/TA3pSI3MXeI/AAAAAAAAANo/a4hKJCYyjuI/s320/untitled4.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;Following SAS data step reads the three external files in one DATA step by using the names which are specified in the external file 'dmgfiles'. This reads the list to determine the external files it should read.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_AgqsS20RSWk/TA30VQZO-VI/AAAAAAAAAN8/W9-fzZ8rD3w/s1600/untitled5.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5480304967594998098" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 225px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/TA30VQZO-VI/AAAAAAAAAN8/W9-fzZ8rD3w/s320/untitled5.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;Data step working:&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;1.First INFILE statement specifies the name of the external file containing the list of filenames that the DATA step should read.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;2.First INPUT statement reads the name of the external files with modified list input. A width (60) which is sufficient to hold the name of the external file is specified.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt; 3.Second INFILE statement specifies a text, dummy, and this act as a placeholder for the file specification which is always required on the INFILE statement. The actual specification for the input file comes from the value of the variable assigned by the FILEVAR= option.&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style="MARGIN-LEFT: 18pt; TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;a.The FILEVAR= option is set to 'dmgfiles', the variable that contains the name of the external file that the current iteration of the data step should read.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 18pt; TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;b.END= option defines a variable that SAS sets to 1 when it reads the last data line in the currently opened external file. The END= variable is initialized to 0 and retains the value until it detects that the current input data line is the last in the external file. SAS then sets the variable to 1.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 18pt; TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;c.When the FILEVAR= option is included in the INFILE statement, SAS resets the END= variable to 0 when the value of the FILEVAR= variable changes (If SAS did not reset the value of the END= variable to 0 each time it opened a new external file, the DATA step would stop after reading the first external file). &lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;4.The do while loop is controlled by testing the value of the END= variable. The loop stops after SAS reads the last data line in the currently opened external file.&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;5.Name of the file from which the records are read (source file name) is assigned into a variable 'Source'.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;6.The above data step iterates four times: one for each of the dmg files (dmg01, dmg02, dmg03) and a fourth time in which it detects that there are no more data lines in the external file that contains the filenames.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;7.The default behavior of SAS is that it writes an observation to a data set only at the end of each iteration of the DATA step. An explicit OUTPUT statement is specified to avoid this and output all data values read form the external file.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;span style="font-family:Verdana;font-size:9;"&gt;8.The output dataset 'demogdat' obtained is as follows&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;/p&gt;&lt;div style="MARGIN-LEFT: 4pt; TEXT-ALIGN: center"&gt;&lt;table style="BORDER-COLLAPSE: collapse" border="0"&gt;&lt;colgroup&gt;&lt;col style="WIDTH: 150px"&gt;&lt;col style="WIDTH: 64px"&gt;&lt;col style="WIDTH: 64px"&gt;&lt;col style="WIDTH: 64px"&gt;&lt;col style="WIDTH: 64px"&gt;&lt;col style="WIDTH: 71px"&gt;&lt;/colgroup&gt;&lt;tbody valign="top"&gt;&lt;tr style="BACKGROUND: silver; HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;&lt;a name="RANGE!A1:F10"&gt;Source&lt;/span&gt;&lt;/p&gt;&lt;/a&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Ctrn&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Subjid&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Age&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Sex&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Race&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg01.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;001&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;001_01&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;29&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Male&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Caucasian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg01.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;001&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;001_02&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;28&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Female&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Caucasian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg01.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;001&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;001_03&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;25&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Male&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Caucasian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg02.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;002&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;002_01&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;27&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Male&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Asian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg02.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;002&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;002_02&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;28&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Male&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Asian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg02.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;002&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;002_03&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;25&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Female&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Asian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg03.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;003&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;003_01&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;27&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Female&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Asian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 17px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg03.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;003&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;003_02&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;28&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Male&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Asian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="HEIGHT: 5px"&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: 0.5pt solid; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;E:\demog\dmg03.txt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;003&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;003_03&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p style="TEXT-ALIGN: right"&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;25&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Female&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="BORDER-RIGHT: 0.5pt solid; PADDING-RIGHT: 7px; BORDER-TOP: medium none; PADDING-LEFT: 7px; BORDER-LEFT: medium none; BORDER-BOTTOM: 0.5pt solid" valign="bottom"&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;font-size:8;"&gt;Asian&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span xmlns=""&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-4927063596699823684?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/4927063596699823684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=4927063596699823684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4927063596699823684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4927063596699823684'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2010/06/read-from-multiple-external-files-in_5070.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_AgqsS20RSWk/TA3pQqYYWAI/AAAAAAAAANI/O6gtzBP9u8E/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-434093504522142666</id><published>2009-08-21T02:51:00.000-07:00</published><updated>2009-08-21T03:04:43.195-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='ampersand'/><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C18%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1803571748; 	mso-list-type:hybrid; 	mso-list-template-ids:-2098163570 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style=""&gt;Macro Variable Resolution Using Multiple Ampersands&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;i style=""&gt;&lt;span style=""&gt;Prepared by Meena R S&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:85%;" &gt; (&lt;a href="mailto:meena@kreara.com"&gt;meena@kreara.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;The SAS macro consists of two basic parts: macros and macro variables.&lt;span style=""&gt;  &lt;/span&gt;The names of macro variables are prefixed with an ampersand (&amp;amp;) while the names of macros are prefixed with percent sign (%). Prior to the execution of the SAS code the macro variables are resolved. The resolved values are then substituted back into the code. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;The macro variable references that have been described with one ampersand preceding the macro variable name are direct reference to a macro variable. In indirect referencing, more than one ampersand precedes a macro variable reference. The macro processor follows specific rules in resolving references with multiple ampersands.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;The rules that the macro processor uses to resolve macro variable reference that contain multiple ampersands follow&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li style="font-family: courier new; color: rgb(0, 0, 0);"&gt;&lt;span style=";font-size:85%;" &gt;Macro      variable references are resolved from left to right&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: courier new; color: rgb(0, 0, 0);"&gt;&lt;span style=";font-size:85%;" &gt;Two      ampersands (&amp;amp;&amp;amp;) resolve to one ampersand (&amp;amp;)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-size:85%;" &gt;&lt;span style="font-family: courier new; color: rgb(0, 0, 0);font-size:85%;" &gt;&lt;span style="font-family: courier new;"&gt;Multiple      leading ampersands cause the mac&lt;/span&gt;ro processor to rescan the reference until      no more ampersands can be resolved.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;Consider the example below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style=";font-size:85%;" &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;Options&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; symbolgen;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%let&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; section4 =operating system;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%let&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; n=4;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%put&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &amp;amp;&amp;amp;section&amp;n;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;For the above code, on the first pass the two ampersands are resolved to one and &amp;amp;n is resolved to 4, yielding &amp;amp;section4. On the second pass the macro variable reference &amp;amp;section4 resolves to operating system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;The following figure shows the process of resolving the macro variable reference in the program.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;a style="font-family: courier new;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AgqsS20RSWk/So5umP2MnbI/AAAAAAAAAIE/RcqEUw9qq9Q/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 110px;" src="http://1.bp.blogspot.com/_AgqsS20RSWk/So5umP2MnbI/AAAAAAAAAIE/RcqEUw9qq9Q/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372353008867515826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C19%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;   %let a  =freight;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%let b=passenger;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%let c=special;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%let code=a;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%put &amp;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%put &amp;amp;&amp;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;span style=""&gt;   &lt;/span&gt;%put &amp;amp;&amp;amp;&amp;code;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;The following demonstrates how the macro variables with multiple ampersands are resolved.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: courier new;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AgqsS20RSWk/So5uyPTJL0I/AAAAAAAAAIM/GEnRdFgWU48/s1600-h/untitled1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 290px; height: 320px;" src="http://2.bp.blogspot.com/_AgqsS20RSWk/So5uyPTJL0I/AAAAAAAAAIM/GEnRdFgWU48/s320/untitled1.bmp" alt="" id="BLOGGER_PHOTO_ID_5372353214878920514" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-434093504522142666?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/434093504522142666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=434093504522142666' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/434093504522142666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/434093504522142666'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/08/normal-0-false-false-false_320.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_AgqsS20RSWk/So5umP2MnbI/AAAAAAAAAIE/RcqEUw9qq9Q/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8795474339052838779</id><published>2009-08-21T01:07:00.000-07:00</published><updated>2009-08-21T01:30:51.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='master dataset'/><category scheme='http://www.blogger.com/atom/ns#' term='transaction dataset'/><category scheme='http://www.blogger.com/atom/ns#' term='update'/><title type='text'></title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C11%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Wingdings; 	panose-1:5 0 0 0 0 0 0 0 0 0; 	mso-font-charset:2; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} span.msoIns 	{mso-style-type:export-only; 	mso-style-name:""; 	text-decoration:underline; 	text-underline:single; 	color:teal;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1206990343; 	mso-list-type:hybrid; 	mso-list-template-ids:-1096780272 67698699 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:none; 	mso-level-number-position:left; 	text-indent:-.25in; 	font-family:Wingdings;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 11pt; color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Combining SAS data sets using UPDATE statement&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;span style="font-style: italic;"&gt; Prepared by Rajeev V &lt;/span&gt;(&lt;a href="mailto:rajeev@kreara.com"&gt;rajeev@kreara.com&lt;/a&gt;)&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;UPDATE is an executable type SAS statement generally used in DATA steps. By updating a SAS dataset replaces the values of variables in one dataset with values from another dataset. The dataset containing the original information is the master data set, and the data set containing the new information is the transaction data set. UPDATE performs much the same function as merge with two exceptions:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; font-family: courier new;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;Ø&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9pt;"&gt;Only two datasets can be combined using UPDATE statement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; font-family: courier new;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;Ø&lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9pt;"&gt;If the observation of a variable in the transaction dataset (i.e. data set containing new information) is missing, then the updated dataset containing the value of the observation same as in the master dataset&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.25in; font-family: courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt; color: rgb(0, 112, 192);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Syntax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;DATA &lt;i style=""&gt;updated data set&lt;/i&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;UPDATE &lt;i style=""&gt;master-data-set transaction-data-set&lt;/i&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;BY &lt;i style=""&gt;variable-list&lt;/i&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;RUN;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Where Master-data-set names the SAS data set that is used as the master file. Transaction-data-set names the SAS dataset that contains the changes to be applied to the master data set. Variable-list specifies the variables by which observations are matched.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style="font-weight: bold;"&gt;Basic use of UPDATE statement&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Consider two datasets, Lab1 and Lab2. Both data sets have four subjects with information about their blood pressure at two different times. The first dataset Lab1 contains the subject id, name of the subject and Blood pressure reading. The second dataset contain the latest blood pressure reading for the same subjects but the name of the subjects is not given. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;It is required to replace the latest Blood pressure values in LAB1 with the values in LAB2. Here LAB1 is known as Master data set and LAB2 is transaction dataset.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size: 9pt;"&gt;Lab 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Subject&lt;span style=""&gt;    &lt;/span&gt;Name&lt;span style=""&gt;      &lt;/span&gt;BP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001 &lt;span style=""&gt;       &lt;/span&gt;AAA&lt;span style=""&gt;       &lt;/span&gt;120&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;        &lt;/span&gt;BBB&lt;span style=""&gt;       &lt;/span&gt;130&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;003&lt;span style=""&gt;        &lt;/span&gt;CCC&lt;span style=""&gt;       &lt;/span&gt;140&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;004&lt;span style=""&gt;        &lt;/span&gt;DDD&lt;span style=""&gt;       &lt;/span&gt;150&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;       &lt;/span&gt;Lab 2&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Subject&lt;span style=""&gt;       &lt;/span&gt;BP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001 &lt;span style=""&gt;          &lt;/span&gt;160&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;           &lt;/span&gt;160&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;003&lt;span style=""&gt;           &lt;/span&gt;160 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;004&lt;span style=""&gt;           &lt;/span&gt;160&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; font-family: courier new;" align="center"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;The following program updates LAB1 (Master Dataset) with LAB2 (Transaction dataset).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;DATA lab1_updated;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;UPDATE lab1 lab2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;BY Subject;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;RUN; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Printed output of lab1_updated is given below;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_AgqsS20RSWk/So5X988IGBI/AAAAAAAAAHs/MGGI_uDvDJw/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 120px;" src="http://4.bp.blogspot.com/_AgqsS20RSWk/So5X988IGBI/AAAAAAAAAHs/MGGI_uDvDJw/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372328127341533202" border="0" /&gt;&lt;/a&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C12%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} span.msoIns 	{mso-style-type:export-only; 	mso-style-name:""; 	text-decoration:underline; 	text-underline:single; 	color:teal;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;In the above example it is found that the latest blood pressure value is populated into updated dataset based on the BY variable Subject identifier. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Suppose Lab1 contains a duplicate observation. For example,&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 9pt;"&gt;Lab 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Subject&lt;span style=""&gt;    &lt;/span&gt;Name&lt;span style=""&gt;     &lt;/span&gt;BP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001 &lt;span style=""&gt;       &lt;/span&gt;AAA&lt;span style=""&gt;      &lt;/span&gt;120&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;        &lt;/span&gt;BBB&lt;span style=""&gt;      &lt;/span&gt;130&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;        &lt;/span&gt;BBB&lt;span style=""&gt;      &lt;/span&gt;130&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;003&lt;span style=""&gt;        &lt;/span&gt;CCC&lt;span style=""&gt;      &lt;/span&gt;140&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;004&lt;span style=""&gt;        &lt;/span&gt;DDD&lt;span style=""&gt;      &lt;/span&gt;150&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;DATA lab1_updated;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;UPDATE lab1 lab2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;BY Subject;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;RUN; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;If the above program is executed updating will not work for duplicate BY value.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;That means if master data set contains two observations with the same value of the BY variable, the first observation is updated and the second observation is ignored. SAS writes a warning message to the log when the data step executes. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Printed output of lab1_updated is given below;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AgqsS20RSWk/So5Xr8vBycI/AAAAAAAAAHk/Of3o3Qus55c/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 110px;" src="http://1.bp.blogspot.com/_AgqsS20RSWk/So5Xr8vBycI/AAAAAAAAAHk/Of3o3Qus55c/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372327818048948674" border="0" /&gt;&lt;/a&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C13%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Observations two and three have duplicate values of BY variable subject identifier. However, the value of variable &lt;/span&gt;Blood pressure&lt;span style="font-size: 9pt;"&gt; was not updated in the second occurrence of the duplicate BY value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;A situation may arise where a missing observation can occur in master dataset or in transaction dataset. Below example illustrates updating when dataset contains unmatched and missing observations.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;          &lt;/span&gt;Lab A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Subject&lt;span style=""&gt;     &lt;/span&gt;Name&lt;span style=""&gt;       &lt;/span&gt;BP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;AAA&lt;span style=""&gt;        &lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;         &lt;/span&gt; BBB&lt;span style=""&gt;       &lt;/span&gt;130&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;003&lt;span style=""&gt;         &lt;/span&gt; CCC&lt;span style=""&gt;       &lt;/span&gt;140&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;004&lt;span style=""&gt;         &lt;/span&gt;DDD&lt;span style=""&gt;       &lt;/span&gt;150&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;          &lt;/span&gt;Lab B&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Subject&lt;span style=""&gt;       &lt;/span&gt;BP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;     &lt;/span&gt;160 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;            &lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;003&lt;span style=""&gt;           &lt;/span&gt;160&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;004&lt;span style=""&gt;           &lt;/span&gt;160&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;In the above dataset Lab A (Master Dataset) contains missing value corresponding to the subject 001 and the Lab B (Transaction dataset) contains missing value corresponding to the subject 002. The output of the below code gives the latest known BP value for each subject.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;DATA lab1_updated;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;UPDATE LabA LabB;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;BY Subject; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;RUN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 9pt; font-family: Verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Printed output is given below;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_AgqsS20RSWk/So5Xb7s8DzI/AAAAAAAAAHc/eaC7l670p8w/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 99px;" src="http://4.bp.blogspot.com/_AgqsS20RSWk/So5Xb7s8DzI/AAAAAAAAAHc/eaC7l670p8w/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372327542893842226" border="0" /&gt;&lt;/a&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C14%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;The following is a more advanced example where the UPDATE statement is used to “flatten” a dataset containing different variable data values for a key spread across several observations. The goal is to combine non-missing values into one record per unique key value. The master dataset structure is read, but the OBS=0 option stops the DATA step from reading any data from it. The same dataset is then uploaded as transaction dataset, flattening non-missing observations for each unique key into one observation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;DATA lab;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;INPUT Subject $ &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; font-size: 9pt; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;Calcium Albumin Chloride;&lt;/span&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;CARDS;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001 2.25&lt;span style=""&gt;     &lt;/span&gt;&lt;b style=""&gt;.&lt;span style=""&gt;       &lt;/span&gt;.&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001&lt;span style=""&gt;   &lt;/span&gt;&lt;b style=""&gt;.&lt;/b&gt;&lt;span style=""&gt;     &lt;/span&gt;49&lt;span style=""&gt;      &lt;/span&gt;&lt;b style=""&gt;&lt;span style=""&gt; &lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;001&lt;span style=""&gt;   &lt;/span&gt;.&lt;span style=""&gt;      &lt;/span&gt;.&lt;span style=""&gt;      &lt;/span&gt;100&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002 3.1&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt;   &lt;/span&gt;.&lt;span style=""&gt;       &lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;   &lt;/span&gt;.&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;   &lt;/span&gt;50&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;90&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;002&lt;span style=""&gt;   &lt;/span&gt;.&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;.&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;RUN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;DATA lab;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;UPDATE lab (obs=0) lab;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;BY subject;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;RUN;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size: 9pt;"&gt;Output is given below;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AgqsS20RSWk/So5XMf0JXwI/AAAAAAAAAHU/3TTfa_zFL1c/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 54px;" src="http://3.bp.blogspot.com/_AgqsS20RSWk/So5XMf0JXwI/AAAAAAAAAHU/3TTfa_zFL1c/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372327277709844226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-8795474339052838779?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/8795474339052838779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=8795474339052838779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8795474339052838779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8795474339052838779'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/08/normal-0-false-false-false_21.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_AgqsS20RSWk/So5X988IGBI/AAAAAAAAAHs/MGGI_uDvDJw/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-1775483699011527986</id><published>2009-08-20T22:47:00.000-07:00</published><updated>2009-08-20T23:51:52.971-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='truncover'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='input'/><category scheme='http://www.blogger.com/atom/ns#' term='flowover'/><category scheme='http://www.blogger.com/atom/ns#' term='basics'/><category scheme='http://www.blogger.com/atom/ns#' term='missover'/><title type='text'></title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C23%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Courier; 	panose-1:2 7 4 9 2 2 5 2 4 4; 	mso-font-alt:"Courier New"; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;INFILE OPTIONS&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Prepared by Sreeja E V&lt;/span&gt;(&lt;a href="mailto:sreeja@kreara.com"&gt;sreeja@kreara.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Infile has a number of options available.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;FLOWOVER&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;FLOWOVER is the default option on INFILE statement. Here, when the INPUT &lt;span style=""&gt; &lt;/span&gt;statement reaches the end of non-blank characters without having filled all variables, a new &lt;span style=""&gt; &lt;/span&gt;line is read into the Input Buffer and INPUT attempts to fill the rest of the variables starting &lt;span style=""&gt; &lt;/span&gt;from column one. The next time an INPUT statement is executed, a new line is brought into the Input Buffer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Consider the following text file containing three variables id, type and amount.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;11101 A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;11102 A 100&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;11103 B 43&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;11104 C&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;11105 C 67&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;The following SAS code uses the flowover option which reads the next non missing values for missing variables.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C24%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; B;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;infile&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:purple;" &gt;"External file"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;flowover&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;input&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; id $ type $ amount;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;which creates the following dataset&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AgqsS20RSWk/So41ijET0II/AAAAAAAAAG0/n2wMZkjO2A8/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 268px; height: 71px;" src="http://2.bp.blogspot.com/_AgqsS20RSWk/So41ijET0II/AAAAAAAAAG0/n2wMZkjO2A8/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372290273144721538" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Courier; 	panose-1:2 7 4 9 2 2 5 2 4 4; 	mso-font-alt:"Courier New"; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-format:other; 	mso-font-pitch:fixed; 	mso-font-signature:3 0 0 0 1 0;} @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;MISSOVER &lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;When INPUT reads a short line, MISSOVER&lt;b style=""&gt; &lt;/b&gt;option on INFILE statement does not allow it to move to the next line. MISSOVER option sets all the variables without values to missing.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; B;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;infile&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:purple;" &gt;"External file"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;missover&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;input&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; id $ type $ amount;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;which creates the following dataset&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family: courier new;font-size:85%;" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;span style="font-family: courier new;font-size:85%;" &gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AgqsS20RSWk/So42E_lhVuI/AAAAAAAAAG8/Dgnkdd7_TDg/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 268px; height: 108px;" src="http://1.bp.blogspot.com/_AgqsS20RSWk/So42E_lhVuI/AAAAAAAAAG8/Dgnkdd7_TDg/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372290864915764962" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C02%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;TRUNCOVER&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Causes the INPUT statement to read variable-length records where some records are shorter than the INPUT statement expects. Variables which are not assigned values are set to missing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;font-family:courier new;" &gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;Difference between&lt;/span&gt; &lt;b style=""&gt;TRUNCOVER&lt;/b&gt; &lt;span style="font-weight: bold;"&gt;and &lt;/span&gt;&lt;b style=""&gt;MISSOVER&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;font-family:courier new;" &gt;&lt;span style="font-size:85%;"&gt; Both will assign missing values to variables if the data line ends before the variable’s field starts. But when the data line ends in the middle of a variable field, TRUNCOVER will take as much as is there, whereas MISSOVER will assign the variable a missing value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Consider the text file below containing a character variable chr.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;bb&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;ccc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;dddd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;eeeee&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;ffffff&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Consider the following SAS code&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; trun;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;infile&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:purple;" &gt;"External file"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;truncover&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;input&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; chr &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:teal;" &gt;$3.&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;When using truncover option we get the following dataset&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family: courier new;font-size:85%;" &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AgqsS20RSWk/So42WezIwnI/AAAAAAAAAHE/cjDKNiZfYg0/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 91px; height: 128px;" src="http://2.bp.blogspot.com/_AgqsS20RSWk/So42WezIwnI/AAAAAAAAAHE/cjDKNiZfYg0/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372291165352149618" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; miss;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;infile&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:purple;" &gt;""External file"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;missover&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;input&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; chr &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:teal;" &gt;$3.&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt; ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:black;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;While using missover option we get the output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-family: courier new;font-size:85%;" &gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AgqsS20RSWk/So42iKCVJuI/AAAAAAAAAHM/_gBXNM0jRRs/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 84px; height: 124px;" src="http://2.bp.blogspot.com/_AgqsS20RSWk/So42iKCVJuI/AAAAAAAAAHM/_gBXNM0jRRs/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372291365937161954" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-1775483699011527986?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/1775483699011527986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=1775483699011527986' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/1775483699011527986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/1775483699011527986'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/08/normal-0-false-false-false_20.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_AgqsS20RSWk/So41ijET0II/AAAAAAAAAG0/n2wMZkjO2A8/s72-c/untitled.bmp' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-1644193347638011922</id><published>2009-08-18T23:38:00.000-07:00</published><updated>2009-08-20T22:46:18.906-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coalesce'/><category scheme='http://www.blogger.com/atom/ns#' term='preloadfmt'/><category scheme='http://www.blogger.com/atom/ns#' term='proc sql'/><category scheme='http://www.blogger.com/atom/ns#' term='cartesian product'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS QC'/><title type='text'></title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C02%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p  style="font-weight: bold; font-family: courier new;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;An alternative method for pre-load format with PROC SQL&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-weight: bold; font-family: courier new;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-weight: bold; font-family: courier new;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="font-style: italic;"&gt;Prepared by Sujith K G&lt;/span&gt; (&lt;a href="mailto:%20sujith@kreara.com"&gt;sujith@kreara.co&lt;/a&gt;&lt;a href="mailto:%20sujith@kreara.com"&gt;m&lt;/a&gt;)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-weight: bold; font-family: courier new;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-weight: bold; font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Preloadfmt is an option which works with proc means, proc tabulate and proc summary. This option requests SAS to pre-l&lt;/span&gt;&lt;span style="font-size:85%;"&gt;oad all the format values for a class variable even if the particular value is not presented in the dataset i.e. it enables count to be presented as 0 for a particular category of the variable which is missing in the dataset.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;Proc Sql is a widely used SAS procedure. In Proc Sql neither is the Preloadfmt option available nor is there any other option that supports the preload function. The following example describes a method for obtaining the preloadfmt functionality.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;The concept is to take the Cartesian product of the class variables for which the results have to be obtained.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-family: courier new;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt;  &lt;/div&gt;&lt;p class="MsoNormal" style="font-weight: bold; font-family: verdana; text-align: justify;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C05%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;The following dataset presents 15 subjects falling into two groups of subjects with four different treatment groups applied betw&lt;/span&gt;&lt;span style="font-size:85%;"&gt;een them,&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C12%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;data&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; eg01;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;input&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; id&lt;span style=""&gt;  &lt;/span&gt;grp $ trt $;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;cards&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;01 A TRT1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;02 B TRT3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;03 A TRT4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;04 A TRT1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;05 B TRT1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;06 A TRT3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;07 A TRT4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;08 B TRT1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;09 A TRT1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;10 A TRT3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;12 B TRT3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;13 A TRT1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;14 B TRT2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;15 A TRT4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p class="MsoNormal" face="verdana" style="font-weight: bold; font-family: courier new;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C06%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*Defining formats for treatment and group;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;font-family:verdana;" class="MsoNormal" &gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C13%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;proc&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;format&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;value&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; $trtc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"TRT1"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Treatment 1"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"TRT2"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Treatment 2"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"TRT3"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Treatment 3"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"TRT4"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Treatment 4"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;value&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; $grpc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"A"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Group A"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"B"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Group B"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: courier new;font-size:85%;color:green;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C07%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-weight: bold; font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C07%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*Determining the frequency;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C14%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;proc&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;freq&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;data&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=eg01 &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;noprint&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;table&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; grp * trt /&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;out&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=eg02(drop=percent);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C08%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p style="font-family: courier new;font-family:verdana;" class="MsoNormal" &gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal" face="verdana"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*Proc format procedure used for getting dataset with available formats in the session;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C15%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;proc&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;format&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;cntlout&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=formats;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size:85%;"&gt;&lt;b style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;run&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:&amp;quot;;font-size:10;color:black;"   &gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C09%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p class="MsoNormal"  style="font-weight: bold;font-family:verdana;"&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:100%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-weight: bold; font-family: verdana;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:100%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:verdana;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:100%;" &gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;The dataset formats contains information of all the formats which is used in this session&lt;/span&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:100%;" &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: verdana;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:100%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: verdana;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C08%5Cclip_filelist.xml"&gt;&lt;link style="font-family: verdana;" rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C08%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: verdana;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C08%5Cclip_filelist.xml"&gt;&lt;link style="font-family: verdana;" rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C08%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;font-family:&amp;quot;;font-size:100%;color:black;"   &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:6in;"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\SREEDE~1\LOCALS~1\Temp\msohtml1\08\clip_image001.png" title=""&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-weight: bold; font-family: verdana;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C09%5Cclip_filelist.xml"&gt;&lt;link style="font-weight: bold; font-family: verdana;" rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C09%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;font-family:&amp;quot;;font-size:100%;color:black;"   &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:6in;"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\SREEDE~1\LOCALS~1\Temp\msohtml1\09\clip_image001.png" title=""&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;font-family:&amp;quot;;font-size:100%;color:black;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;p class="MsoNormal" style="font-family: verdana;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AgqsS20RSWk/SovE0qPHjeI/AAAAAAAAAGM/evc1sd1NH70/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 523px; height: 89px;" src="http://3.bp.blogspot.com/_AgqsS20RSWk/SovE0qPHjeI/AAAAAAAAAGM/evc1sd1NH70/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5371603389539388898" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="font-family: verdana;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C14%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:courier new;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C05%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C16%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;proc&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;sql&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: courier new;font-family:&amp;quot;;font-size:85%;color:black;"   &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: courier new;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*The Cartesian product;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*Here the formats dataset is separated into two one which contains Group classes and another with treatment classes and the two datasets are joined to form the Cartesian product;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C17%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;create&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;table&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; fmtcomp &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;select&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; a.START &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;label&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Group"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; grp, b.START &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;label&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Treatment"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; trt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;from&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; formats(&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;where&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=(fmtname=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;'GRPC'&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;)) &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; a, formats(&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;where&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=(fmtname=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;'TRTC'&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;)) &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;quit;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C04%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;font-family:courier new;"  class="MsoNormal"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;" &gt;The resultant dataset contains all the combinations from the two variables.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C02%5Cclip_filelist.xml"&gt;&lt;link style="font-family: courier new;" rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C02%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: courier new;font-family:&amp;quot;;font-size:85%;color:black;"   &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:105.75pt;"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\SREEDE~1\LOCALS~1\Temp\msohtml1\02\clip_image001.png" title=""&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AgqsS20RSWk/So4suBTK67I/AAAAAAAAAGk/wTpp_2ETAEk/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 142px; height: 153px;" src="http://3.bp.blogspot.com/_AgqsS20RSWk/So4suBTK67I/AAAAAAAAAGk/wTpp_2ETAEk/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372280574634027954" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: courier new;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSREEDE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C11%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;proc&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:navy;" &gt;sql&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*The Cartesian product;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;*Here the formats dataset is separated into two one which contains Group classes and &lt;span style=""&gt;&lt;/span&gt;another with treatment classes and the two datasets are joined to form the Cartesian product;&lt;span style=""&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;" class="MsoNormal"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:green;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;create&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;table&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; fmtcomp &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;select&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; a.START &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;label&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Group"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; grp, b.START &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;label&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;"Treatment"&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; trt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;from&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; formats(&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;where&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=(fmtname=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;'GRPC'&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;)) &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; a, formats(&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;where&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;=(fmtname=&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:purple;"  &gt;'TRTC'&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;)) &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:blue;"  &gt;as&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt; b;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new;font-family:courier new;" class="MsoNormal" &gt;&lt;span style="font-size:85%;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:blue;" &gt;quit;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:10;color:blue;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="courier new"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: courier new;"&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-size:85%;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Verdana;font-size:85%;"  &gt;The final data&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Verdana;font-size:85%;"  &gt;set is obtaine&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Verdana;font-size:85%;"  &gt;d as,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p  style="font-weight: bold;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AgqsS20RSWk/So4vLwJBvaI/AAAAAAAAAGs/jL1LBXrQBSc/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 220px; height: 153px;" src="http://1.bp.blogspot.com/_AgqsS20RSWk/So4vLwJBvaI/AAAAAAAAAGs/jL1LBXrQBSc/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5372283284447411618" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;font-family:Verdana;font-size:10;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt; &lt;span style=";font-family:Verdana;font-size:9;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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/18633351-1644193347638011922?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/1644193347638011922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=1644193347638011922' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/1644193347638011922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/1644193347638011922'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/08/normal-0-false-false-false.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_AgqsS20RSWk/SovE0qPHjeI/AAAAAAAAAGM/evc1sd1NH70/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2826439234637029429</id><published>2009-03-13T00:02:00.000-07:00</published><updated>2009-03-13T00:31:21.877-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='laboratory values'/><category scheme='http://www.blogger.com/atom/ns#' term='flag'/><category scheme='http://www.blogger.com/atom/ns#' term='low normal high'/><category scheme='http://www.blogger.com/atom/ns#' term='Shift table'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;strong&gt;Shift table&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Prepared by &lt;a href="mailto:mohanan@kreara.com"&gt;Mohanan K K&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;Laboratory test results are commonly labeled as "low", "high" or "normal" depending on whether the observed value is below the lower reference limit, above the upper reference limit or between the limits. These categorical outcomes are commonly summarized using shift tables. A laboratory shift table is a tabular display that can show how a population’s laboratory data change, or ‘shift’, over time. A shift table can provide this information at a glance.&lt;br /&gt;&lt;br /&gt;The following example illustrates how a shift table presents changes in laboratory values from visit to visit. Here we consider the laboratory parameter chloride, in the laboratory group bio-chemistry. The normal range for the parameter is 98 to 107. Then the laboratory values obtained for chloride are categorized as low, normal and high according as described above. Here the lab values less than or equal to 98 are flagged as Low, the lab values within 97 and 107 are flagged as Normal and the lab values above 107 as high. There are three visits in this example screening, visit 1 and visit 2. The screening is considered as baseline visit so here we consider two cases &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;1. Changes occurred in lab values from screening to visit 1&lt;br /&gt;2. Changes occurred in lab values from screening to visit 2&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;*********************************************************;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;*Program name: Shift table;&lt;br /&gt;*Purpose: Illustrate how a shift table create and present;&lt;br /&gt;*********************************************************;&lt;br /&gt;*Give formats for Visits;&lt;br /&gt;proc format;&lt;br /&gt;value vsyn 0='Screening'&lt;br /&gt;1='Visit-1'&lt;br /&gt;2='Vist-2';&lt;br /&gt;*Give formats for categories;&lt;br /&gt;value flg -1='Low'&lt;br /&gt;0='Normal'&lt;br /&gt;1='High';&lt;br /&gt;run; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;data lab;&lt;br /&gt;length labgrp $20 labparam $20;&lt;br /&gt;format visit vsyn. flag flg.;&lt;br /&gt;input SUBNO VISIT labgrp&amp;amp;$ labparam&amp;amp;$ val low high;&lt;br /&gt;if val &lt;=low then flag=-1; else if val&gt;low and val&lt;=high then flag=0; else if val&gt;high then flag=1;&lt;br /&gt;cards;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;1 0 Bio chemistry Chloride (MMOL/L) 108 98 107&lt;br /&gt;1 1 Bio chemistry Chloride (MMOL/L) 101 98 107&lt;br /&gt;2 0 Bio chemistry Chloride (MMOL/L) 105 98 107&lt;br /&gt;2 1 Bio chemistry Chloride (MMOL/L) 97 98 107&lt;br /&gt;3 0 Bio chemistry Chloride (MMOL/L) 101 98 107&lt;br /&gt;3 1 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;4 0 Bio chemistry Chloride (MMOL/L) 104 98 107&lt;br /&gt;4 1 Bio chemistry Chloride (MMOL/L) 106 98 107&lt;br /&gt;5 0 Bio chemistry Chloride (MMOL/L) 101 98 107&lt;br /&gt;5 1 Bio chemistry Chloride (MMOL/L) 108 98 107&lt;br /&gt;6 0 Bio chemistry Chloride (MMOL/L) 103 98 107&lt;br /&gt;6 1 Bio chemistry Chloride (MMOL/L) 103 98 107&lt;br /&gt;7 0 Bio chemistry Chloride (MMOL/L) 105 98 107&lt;br /&gt;7 1 Bio chemistry Chloride (MMOL/L) 104 98 107&lt;br /&gt;8 0 Bio chemistry Chloride (MMOL/L) 97 98 107&lt;br /&gt;8 1 Bio chemistry Chloride (MMOL/L) 108 98 107&lt;br /&gt;9 0 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;9 1 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;10 0 Bio chemistry Chloride (MMOL/L) 103 98 107&lt;br /&gt;10 1 Bio chemistry Chloride (MMOL/L) 102 98 107&lt;br /&gt;11 0 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;11 1 Bio chemistry Chloride (MMOL/L) 102 98 107&lt;br /&gt;12 0 Bio chemistry Chloride (MMOL/L) 109 98 107&lt;br /&gt;12 1 Bio chemistry Chloride (MMOL/L) 104 98 107&lt;br /&gt;13 0 Bio chemistry Chloride (MMOL/L) 99 98 107&lt;br /&gt;13 1 Bio chemistry Chloride (MMOL/L) 101 98 107&lt;br /&gt;14 0 Bio chemistry Chloride (MMOL/L) 101 98 107&lt;br /&gt;14 1 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;15 0 Bio chemistry Chloride (MMOL/L) 110 98 107&lt;br /&gt;15 1 Bio chemistry Chloride (MMOL/L) 96 98 107&lt;br /&gt;1 2 Bio chemistry Chloride (MMOL/L) 108 98 107&lt;br /&gt;2 2 Bio chemistry Chloride (MMOL/L) 99 98 107&lt;br /&gt;3 2 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;4 2 Bio chemistry Chloride (MMOL/L) 106 98 107&lt;br /&gt;5 2 Bio chemistry Chloride (MMOL/L) 96 98 107&lt;br /&gt;6 2 Bio chemistry Chloride (MMOL/L) 103 98 107&lt;br /&gt;7 2 Bio chemistry Chloride (MMOL/L) 108 98 107&lt;br /&gt;8 2 Bio chemistry Chloride (MMOL/L) 103 98 107&lt;br /&gt;9 2 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;10 2 Bio chemistry Chloride (MMOL/L) 96 98 107&lt;br /&gt;11 2 Bio chemistry Chloride (MMOL/L) 102 98 107&lt;br /&gt;12 2 Bio chemistry Chloride (MMOL/L) 104 98 107&lt;br /&gt;13 2 Bio chemistry Chloride (MMOL/L) 101 98 107&lt;br /&gt;14 2 Bio chemistry Chloride (MMOL/L) 100 98 107&lt;br /&gt;15 2 Bio chemistry Chloride (MMOL/L) 99 98 107&lt;br /&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;*Create datasets for each of the visits and rename the flag variable; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;data scr (where=(visit=0)rename=(flag=flg0))&lt;br /&gt;vis1(where=(visit=1)rename=(flag=flg1))&lt;br /&gt;vis2(where=(visit=2)rename=(flag=flg2));&lt;br /&gt;set lab;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Merge the datasets so that the flags for the three visits lie adjacent to each other; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;data comon;&lt;br /&gt;merge scr vis1 vis2;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Find number of subjects for all combinations of laboratory flags &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;from baseline (screening) to visit 1;&lt;br /&gt;proc means data=comon completetypes noprint missing;&lt;br /&gt;class labgrp labparam flg0 flg1 /preloadfmt ;&lt;br /&gt;output out=shif01 N=num;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Transposing data into presentable format;&lt;br /&gt;&lt;br /&gt;proc transpose data= shif01(where=(flg1 ne . and flg0 ne .)) out=trn1;&lt;br /&gt;by flg0 notsorted;&lt;br /&gt;id flg1;&lt;br /&gt;var num;&lt;br /&gt;copy labgrp labparam;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Find number of subjects for all combinations of laboratory flags from baseline (screening) to visit 2; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;proc means data=comon completetypes noprint missing;&lt;br /&gt;class labgrp labparam flg0 flg2 /preloadfmt ;&lt;br /&gt;output out=shif02 N=num;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Transposing data into presentable format; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;proc transpose data= shif02(where=(flg2 ne . and flg0 ne .)) out=trn2;&lt;br /&gt;by flg0 notsorted;&lt;br /&gt;id flg2;&lt;br /&gt;var num;&lt;br /&gt;copy labgrp labparam;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Combine two transposed datasets to create report; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;data final(where=(_NAME_ ne '' and labgrp ne '' and labparam ne ''));&lt;br /&gt;merge trn1&lt;br /&gt;trn2(rename=(low=low2 normal=normal2 high=high2));&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Determining number of subjects under each flag at baseline; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;data base;&lt;br /&gt;set shif01;&lt;br /&gt;keep flg0 num;&lt;br /&gt;where labgrp eq '' and labparam eq '' and flg1 eq . and flg0 ne .;&lt;br /&gt;rename num=basenum;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;data final1;&lt;br /&gt;merge final base;&lt;br /&gt;by flg0;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*rtf output of shift table; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;option nodate nonumber; &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;ods rtf file=".\shifteg.rtf";&lt;br /&gt;proc report data= final1 nowd style(header)=[background=white font_size=8 pt] split='*';&lt;br /&gt;column labgrp labparam flg0 ('Screening vs. Visit 1' Low Normal High ) ('Screening vs. Visit 2' Low2 Normal2 High2 ) basenum;&lt;br /&gt;define labgrp/order 'Lab Group'left;&lt;br /&gt;define labparam/order 'Lab Parameter' left;&lt;br /&gt;define flg0/display 'Baseline *Status'left;&lt;br /&gt;define Low/display 'Low' center;&lt;br /&gt;define Normal/display 'Normal' center;&lt;br /&gt;define High/display 'High'center;&lt;br /&gt;define Low2/display 'Low'center;&lt;br /&gt;define Normal2/display 'Normal'center;&lt;br /&gt;define High2/display 'High'center;&lt;br /&gt;define basenum/display 'Baseline*Count' center;&lt;br /&gt;run;&lt;br /&gt;ods rtf close;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;The output is obtained as shown below&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5312566883696036130" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 65px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/SboHbvw0ySI/AAAAAAAAAC8/AA3cM119w7Q/s320/untitled.bmp" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:verdana;"&gt;In the table the column named ‘Baseline Count’ represents the number of low, normal and high flags at baseline visit(or screening) i.e. there is 1 subject with low flag, 11 with normal flag and 3 subjects with high flag.&lt;br /&gt;&lt;br /&gt;The ‘Screening vs Visit 1’ section is a 3x3 contingency table. The value in first cell (first row, first column) presents the number of subjects for whom the flag was low both at Screening and Visit1. The second cell (first row, second column) further presents the number of subjects with low flag at screening and normal flag at visit1 and so on.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2826439234637029429?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2826439234637029429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2826439234637029429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2826439234637029429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2826439234637029429'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/03/shift-table-prepared-by-mohanan-k-k.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_AgqsS20RSWk/SboHbvw0ySI/AAAAAAAAAC8/AA3cM119w7Q/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-4192547493975737686</id><published>2009-03-06T01:09:00.000-08:00</published><updated>2009-03-06T04:59:04.540-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ranuni'/><category scheme='http://www.blogger.com/atom/ns#' term='bootstrap'/><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;The Bootstrap Method&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Prepared by &lt;a href="mailto:meena@kreara.com"&gt;Meena R S&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;Bootstrap method is a way of simulating results for a larger number of samples based on the given sample. The bootstrap method is used to quantify the uncertainty in any parameter estimate (e.g., mean, variance, percentile value, etc.). All bootstrap methods involve generating hypothetical samples from the original sample. Each hypothetical sample is called a Bootstrap Sample.&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Bootstrap method has the following assumptions &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:verdana;"&gt;&lt;div align="justify"&gt;&lt;br /&gt;1. The sample taken should be a valid representative of the population &lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;2. Bootstrap method takes sampling with replacement from the sample. Each sub sampling is independent and identical distribution (i.i.d.). In other words, it assumes that the sub samples come from the same distribution of the population, but each sample is drawn independently from the other samples. &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The bootstrap works by computing the desired statistic for a sub sample of the data set. The sub sampling is done with replacement and the size of the sample is equal to the size of the original sample. The desired statistic is calculated for each sub sample. The collection of these statistics is used as an estimate of the sampling distribution.&lt;br /&gt;&lt;br /&gt;Example 1: The following example represents the length of 3 different petals 10 trees of the same type. This program estimates the uncertainty parameters mean and standard deviation&lt;br /&gt;&lt;br /&gt;data petals;&lt;br /&gt;input petal1 petal2 petal3;&lt;br /&gt;cards;&lt;br /&gt;1.21 1.31 1.53&lt;br /&gt;2.13 2.21 3.17&lt;br /&gt;1.59 1.70 1.56&lt;br /&gt;1.45 1.23 1.21&lt;br /&gt;1.41 1.96 1.24&lt;br /&gt;1.04 1.8 1.58&lt;br /&gt;1.03 1.05 2.1&lt;br /&gt;1.4 1.25 1.26&lt;br /&gt;1.56 1.26 1.34&lt;br /&gt;1.82 1.24 1.56&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;* This macro is used to generate 10 bootstrap samples of the above data;&lt;br /&gt;&lt;br /&gt;%macro bootsamp(data,boot, b);&lt;br /&gt;data &amp;boot;&lt;br /&gt;do isample=1 to &amp;b;&lt;br /&gt;do i = 1 to nobs;&lt;br /&gt;pt = round(ranuni(0) * nobs) ;&lt;br /&gt;set &amp;amp;data nobs = nobs point=pt; *point options is used to create samples in any order;&lt;br /&gt;output;&lt;br /&gt;end;&lt;br /&gt;end;&lt;br /&gt;stop;&lt;br /&gt;run;&lt;br /&gt;%mend;&lt;br /&gt;&lt;br /&gt;%bootsamp(petals, boot, 10); *Generating 10 bootstrap samples;&lt;br /&gt;&lt;br /&gt;*Calculating the parameters mean and standard deviation for each subsample and appending them to obtain the final sample dataset;&lt;br /&gt;&lt;br /&gt;%macro sample(j=, n=);&lt;br /&gt;%do i=&amp;amp;j %to &amp;n;&lt;br /&gt;data petals1;&lt;br /&gt;set boot;&lt;br /&gt;where isample=&amp;i;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc means data=petals1 ;&lt;br /&gt;var petal1 petal2 petal3 ;&lt;br /&gt;output out = petals_&amp;amp;i mean = mean std = std n =n;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc append base=final data=petals_&amp;amp;i force;&lt;br /&gt;run;&lt;br /&gt;%end;&lt;br /&gt;%mend;&lt;br /&gt;&lt;br /&gt;%sample (j=1, n=10);&lt;br /&gt;&lt;br /&gt;proc means data=final mean std ;&lt;br /&gt;var mean std;&lt;br /&gt;output out = means_ mean = mean std = std n =n;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;Output is shown below&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5310022190149933122" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 81px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/SbD9DFlUGEI/AAAAAAAAACs/O7QuCleeJlc/s320/aa.bmp" border="0" /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-4192547493975737686?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/4192547493975737686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=4192547493975737686' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4192547493975737686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4192547493975737686'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/03/bootstrap-method-prepared-by-meena-r-s.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_AgqsS20RSWk/SbD9DFlUGEI/AAAAAAAAACs/O7QuCleeJlc/s72-c/aa.bmp' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-5024829879934383087</id><published>2009-03-06T00:59:00.000-08:00</published><updated>2009-03-06T01:06:40.572-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='%do'/><category scheme='http://www.blogger.com/atom/ns#' term='ampersand'/><category scheme='http://www.blogger.com/atom/ns#' term='semi colon'/><category scheme='http://www.blogger.com/atom/ns#' term='print'/><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;Use of ampersands and semicolons in SAS macros&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Prepared by &lt;a href="mailto:jose@kreara.com"&gt;Jose Abraham&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;Single, double and triple ampersands&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Multiple ampersands can be used to allow the value of a macro variable to become another macro variable reference. The macro variable reference will be rescanned until the macro variable is resolved. &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;The following demonstrates how macro variables with multiple ampersands are resolved. There are&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; 4 macro variables&lt;br /&gt;&lt;br /&gt;Macro variable :Value&lt;br /&gt;A :  CATCH&lt;br /&gt;B :  STUMP&lt;br /&gt;C :  RUN&lt;br /&gt;HIT :  A&lt;br /&gt;&lt;br /&gt;Resolving a macro variable:&lt;br /&gt;&lt;br /&gt;&amp;amp;VARNAME references a macro variable. The rule is that the scanner reads from left to right.&lt;br /&gt;&lt;br /&gt;1. If we put one ampersand i.e., ‘&amp;amp;HIT’ then the macro variable hit resolves to ‘A’.&lt;br /&gt;&lt;br /&gt;2. If we put two ampersands then the two ampersands resolve to one and scanner continues. i.e., ‘&amp;amp;&amp;amp;HIT’&lt;br /&gt;On the first scan - ‘&amp;amp;&amp;amp;’ resolves to ‘&amp;amp;’ and ‘HIT’ held as token.&lt;br /&gt;On the second scan – ‘&amp;amp;HIT’ resolves to ‘A’.&lt;br /&gt;&lt;br /&gt;3. If we put three ampersands i.e., ‘&amp;amp;&amp;amp;&amp;amp;HIT’&lt;br /&gt;On the first scan -‘&amp;amp;&amp;amp;’ resolves to &amp;amp; and the remaining &amp;amp;HIT resolves to ‘A’ and the it results ‘&amp;amp;A’&lt;br /&gt;On the second scan –‘&amp;amp;A’ resolves to ‘CATCH’ &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;Single and double semi colons&lt;br /&gt;&lt;/strong&gt;When creating macros for programming, sometimes we would like to generate a dynamic SAS statement within a macro %DO loop. For example if we want to run a print procedure inside a macro and refer to a set of macro variables within the VAR statement.&lt;br /&gt;&lt;br /&gt;proc print;&lt;br /&gt;var&lt;br /&gt;%do i = 1 %to &amp;max;&lt;br /&gt;&amp;amp;&amp;amp;var&amp;amp;i&lt;br /&gt;%end;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;Consider a simple program containing this %DO loop in a macro&lt;br /&gt;&lt;br /&gt;data one;&lt;br /&gt;input A $ B C D E;&lt;br /&gt;datalines;&lt;br /&gt;a 12 16 18 20&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;%let var1=A;&lt;br /&gt;%let var2=B;&lt;br /&gt;%let var3=C;&lt;br /&gt;%let var4=D;&lt;br /&gt;%let var5=E;&lt;br /&gt;%let max=4;&lt;br /&gt;%let indt=one;&lt;br /&gt;&lt;br /&gt;%macro prnt;&lt;br /&gt;proc print data=&amp;amp;indt.;&lt;br /&gt;var&lt;br /&gt;%do i = 1 %to &amp;amp;max.;&lt;br /&gt;&amp;amp;&amp;amp;var&amp;amp;i&lt;br /&gt;%end;;&lt;br /&gt;run;&lt;br /&gt;%mend;&lt;br /&gt;&lt;br /&gt;%prnt;&lt;br /&gt;&lt;br /&gt;In this program, there are two consecutive semicolons used after the %end statement which is not common in a simple SAS program. Here the first semicolon closes the %END and the second semicolon closes the VAR statement. And if we run this macro it will generate the following SAS statements&lt;br /&gt;&lt;br /&gt;proc print data=one;&lt;br /&gt;var a b c d;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;and it produces the result&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5309997291231810434" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 67px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_AgqsS20RSWk/SbDmZx4ok4I/AAAAAAAAACk/xQ9ZSaU_Vkw/s320/aa.bmp" border="0" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-5024829879934383087?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/5024829879934383087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=5024829879934383087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5024829879934383087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5024829879934383087'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/03/use-of-ampersands-and-semicolons-in-sas.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_AgqsS20RSWk/SbDmZx4ok4I/AAAAAAAAACk/xQ9ZSaU_Vkw/s72-c/aa.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-6961265079709198918</id><published>2009-03-05T22:20:00.000-08:00</published><updated>2009-03-06T03:39:07.656-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='descriptive statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='decimal alignment'/><category scheme='http://www.blogger.com/atom/ns#' term='repeat'/><category scheme='http://www.blogger.com/atom/ns#' term='report'/><title type='text'></title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;Alignment of decimal points &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;Prepared by &lt;a href="mailto:sreeja@kreara.com"&gt;Sreeja E V&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;As per quality standards when presenting descriptive statistics for parameters in clinical trial reporting, the data should be aligned with respect to the decimal point. This dynamic decimal alignment and numeric precision should be maintained between varying parameters in the same dataset. &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;The following example contains 4 parameters A, B, C and D and their values. We have to present the descriptive statistics namely n, mean, standard deviation, minimum, median and maximum. The mean, standard deviation and median will be presented to one more decimal place than the observed value while minimum and maximum will be presented to the same number of decimal places as observed value. The value for n will be presented as integer.&lt;br /&gt;&lt;br /&gt;As a first step the descriptive statistics needs to be computed for the parameters and then it is required to determine the number of decimal places needed for the descriptive statistics for each parameter. The observed value with the most number of decimal places is then found out and the maximum number of decimal places used to present the data is determined for each parameter.&lt;br /&gt;&lt;br /&gt;Once the maximum number of decimal places per parameter is obtained, one simply needs to pass this information into a character variable containing a representation of the appropriate numeric format as described. &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;Further the maximum integer length for each parameter is determined and white space is inserted using repeat function for values whose integer length is less than maximum integer length.&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;data lab;&lt;br /&gt;input parameter $ value;&lt;br /&gt;datalines;&lt;br /&gt;A 12.3654&lt;br /&gt;A 13.1&lt;br /&gt;B 456.1&lt;br /&gt;B 456&lt;br /&gt;C 41.236&lt;br /&gt;C 41.04&lt;br /&gt;D 1.76&lt;br /&gt;D 1.241&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc means data=lab noprint;&lt;br /&gt;by parameter;&lt;br /&gt;var value;&lt;br /&gt;output out=desc_data N=N Mean=Mean Std=std Min=Min Median=Median Max=Max;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Determining the number of decimal points;&lt;br /&gt;*For that the values of all the parameters have been converted to character values so that the digits after the decimal places can be extracted to the variable de_part and its length can be stored in the variable dec_no. If the values of a particular parameter are whole numbers then dec_no will be assigned to zero;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;data deci_point;&lt;br /&gt;set lab;&lt;br /&gt;value_n=put(value,best.);&lt;br /&gt;de_part=scan(value_n,2,'.');&lt;br /&gt;if de_part ne ' ' then dec_no=length(de_part);&lt;br /&gt;else dec_no=0;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*Determining maximum number of decimal points for each parameter; &lt;/span&gt;*Here the maximum of the variable dec_no for each parameter is determined and stored in the variable decimal;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;proc sql noprint;&lt;br /&gt;create table decimal as select&lt;br /&gt;distinct parameter,&lt;br /&gt;max(dec_no) as decimal&lt;br /&gt;from deci_point&lt;br /&gt;group by parameter;&lt;br /&gt;select * from decimal;&lt;br /&gt;quit;&lt;br /&gt;&lt;br /&gt;*Creating the formats; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;*The variables zerornd, onernd, zerofmt and onefmt are determined for each parameter for rounding and formatting purpose;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;proc sql noprint;&lt;br /&gt;create table decimal_1 as select&lt;br /&gt;distinct&lt;br /&gt;parameter,&lt;br /&gt;decimal,&lt;br /&gt;10**(-decimal -0) format best. as zerornd,&lt;br /&gt;10**(-decimal -1) format best. as onernd,&lt;br /&gt;"8." put(decimal +0,1.) as zerofmt,&lt;br /&gt;"8." put(decimal +1,1.) as onefmt&lt;br /&gt;from decimal&lt;br /&gt;;&lt;br /&gt;select * from decimal_1;&lt;br /&gt;quit;&lt;br /&gt;&lt;br /&gt;*Applying decimal formats; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;data desc_stats(keep=parameter fn fmean fmedian fstd fmin fmax );&lt;br /&gt;merge desc_data decimal_1;&lt;br /&gt;by parameter;&lt;br /&gt;fn=compress(put(n,3.));&lt;br /&gt;if mean ne . then fmean=compress(putn(round(mean,onernd),onefmt));&lt;br /&gt;if median ne . then fmedian=compress(putn(round(median,onernd),onefmt));&lt;br /&gt;if std ne . then fstd=compress(putn(round(std,onernd), onefmt));&lt;br /&gt;if min ne . then fmin=compress(putn(round(min,zerornd),zerofmt));&lt;br /&gt;if max ne . then fmax=compress(putn(round(max,zerornd), zerofmt));&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc sort data=desc_stats;&lt;br /&gt;by parameter;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc transpose data=desc_stats out=stat;&lt;br /&gt;var fn fmean fstd fmin fmedian fmax;&lt;br /&gt;by parameter;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;*To align decimal points; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;*Length of integer part of each value is determined and stored in the variable lenint. Further maximum integer length is obtained by determining maximum over lenint and maxint where initial value of the variable maxint is set to zero. While attaining end of the file the value of maxint is assigned to the macro variable max;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;data outdata;&lt;br /&gt;set stat(rename=(col1=value)) end=eof;&lt;br /&gt;retain maxint 0;&lt;br /&gt;lenint=length(compress(scan(value,1,'.')));&lt;br /&gt;maxint = max(maxint, lenint);&lt;br /&gt;if eof then call symput("max", put(maxint, best.));&lt;br /&gt;run; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;*The difference between the variable max and lenint is determined by the variable diffint. For observations whose diffint&gt;0 (i.e.the observations whose integer length is diffint times less than max) white space is inserted diffint-1 times using repeat function (repeat function gives repetitions after the original string) and concatenates that with the value after removing trailing blanks of value using trim function. For observations whose diffint=0 (i.e.the observations whose integer length same as max) no white space is inserted;&lt;br /&gt;&lt;br /&gt;data aligned(drop=maxint lenint diffint value);&lt;br /&gt;retain parameter _name_ value value_aligned;&lt;br /&gt;length value_aligned $15;&lt;br /&gt;set outdata;&lt;br /&gt;if parameter ne '' and value ne '' then do;&lt;br /&gt;diffint = &amp;amp;max - lenint - 1;&lt;br /&gt;if diffint &gt;= 0 then do;&lt;br /&gt;value_aligned = repeat(" ", diffint)trim(left(value));&lt;br /&gt;end;&lt;br /&gt;else do;&lt;br /&gt;value_aligned = trim(left(value));&lt;br /&gt;end;&lt;br /&gt;end;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc format ;&lt;br /&gt;value $stat&lt;br /&gt;"fn"="n"&lt;br /&gt;"fmean"="Mean"&lt;br /&gt;"fstd"="SD"&lt;br /&gt;"fmin"="Minimum"&lt;br /&gt;"fmedian"="Median"&lt;br /&gt;"fmax"="Maximum"&lt;br /&gt;;&lt;br /&gt;run; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;proc print data=aligned;&lt;br /&gt;format _name_ $stat.;&lt;br /&gt;run; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;The output is obtained as &lt;/span&gt;&lt;/p&gt;&lt;img id="BLOGGER_PHOTO_ID_5309959278826720754" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 267px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_AgqsS20RSWk/SbDD1KpBjfI/AAAAAAAAACc/etUIcQnajRI/s320/aa.bmp" border="0" /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-6961265079709198918?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/6961265079709198918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=6961265079709198918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/6961265079709198918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/6961265079709198918'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2009/03/alignment-of-decimal-points-in.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_AgqsS20RSWk/SbDD1KpBjfI/AAAAAAAAACc/etUIcQnajRI/s72-c/aa.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8546873107482022005</id><published>2008-10-10T06:42:00.000-07:00</published><updated>2008-10-10T07:03:17.994-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Km-curve'/><category scheme='http://www.blogger.com/atom/ns#' term='Survival Analysis'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;SURVIVAL ANALYSIS&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Prepared by &lt;a href="mailto:jose@kreara.com"&gt;Jose Abraham&lt;/a&gt;&lt;/span&gt;&lt;a href="mailto:jose@kreara.com"&gt; &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Survival analysis (also called time to event analysis) is concerned with studying the time between entry to a study and a subsequent event. These methods are most often applied to the study of deaths. In fact, they were originally designed for that purpose, which explains the name survival analysis. Survival analysis is an important medical concern and is extremely useful for studying events like onset of disease and recurrence of disease.&lt;br /&gt;&lt;br /&gt;The point of survival analysis is to follow subjects over time and observe at which point in time they experience the event of interest. The data which is obtained from survival studies may contain censored observations. Censoring comes in many forms and occurs for many different reasons.&lt;br /&gt;&lt;br /&gt;For example if we consider a cancer study in which the subjects after response from treatment were followed up for a specific period of time for the recurrence of cancer (event of interest). If a subject experiences recurrence at time t, which is not known exactly and all we know that the event occurred after a specific time T (i.e. t&gt;T), then the last time at which the subject was observed is recorded and the survival time for that subject is considered as right censored. Also if the recurrence is experienced before a specific time, and the exact time is unknown, then the survival time recorded from that subject is considered as left censored. So the times obtained from subjects who are having no recurrence until the end of the study and those who were lost to follow up, before the end of the study period are censored.&lt;br /&gt;&lt;br /&gt;In the aforesaid study, the basic structure of the data is that for each case there is one variable which contains either the time that recurrence happened or, for censored cases, the last time at which the case was observed, both measured from the chosen origin. Another variable that denotes the censoring status of each case is also present (uncensored =1 and censored=1). Also the data contain values of other variables such as markers, tissues etc…. A small part of data in this form is given below&lt;br /&gt;&lt;br /&gt;data molecules;&lt;br /&gt;input marker surv censor stage histo;&lt;br /&gt;datalines;&lt;br /&gt;0 75 1 2 1&lt;br /&gt;1 115 0 3 2&lt;br /&gt;1 96 1 1 1&lt;br /&gt;0 110 0 2 3&lt;br /&gt;0 178 0 3 2&lt;br /&gt;1 149 1 2 3&lt;br /&gt;1 163 1 4 4&lt;br /&gt;0 211 1 1 2&lt;br /&gt;1 167 1 2 1&lt;br /&gt;0 195 0 2 1&lt;br /&gt;1 140 1 3 4&lt;br /&gt;0 202 0 4 4&lt;br /&gt;0 153 0 2 2&lt;br /&gt;1 147 0 1 3&lt;br /&gt;0 132 0 4 1&lt;br /&gt;0 178 1 3 2&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;Analysis of censored data can be easily performed in SAS with the help of various procedures like PROC LIFETEST, PROC PHREG etc.The purpose of the analysis is to model the underlying distribution of the survival time variable and to assess the dependence of the survival time variable on the independent variables.&lt;br /&gt;&lt;br /&gt;The Kaplan Meier curve is plotted by taking disease free survival time on the horizontal axis and survival probability on the vertical axis. This curve is useful to measure the proportion of patients surviving at a specific time. Also we can compare the survival experience of two groups by comparing their curves. This comparison of survival estimates can be done by making use of the strata statement in PROC LIFETEST. The significant differences of the Kaplan Meier curves can be tested by Logrank test. If the p-value in the log-rank test is large (&gt;0.05) then we can say that there is no difference in survival. The piece of SAS code for doing this comparison of survival curves between those cases in which the marker is present (marker=1) and those in which it is not present (marker=0).&lt;br /&gt;&lt;br /&gt;proc lifetest data= survdata method=km plots=(s,lls) outsurv=option;&lt;br /&gt;time surv*censor (0);&lt;br /&gt;strata marker;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;The strata statement provides the log rank test and Wilcoxon test statistics. The outsurv= option in the proc lifetest statement to create a SAS data set that has the KM survival estimates. Plots=(s, lls) produces log-log curves as well as survival curves. The log-log survival curves will be parallel or nearly parallel if the proportional hazard assumption is met.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;We can make use of this lifetest procedure to compute the non parametric estimates of the survivor function by Kaplan Meier method. The option method=km in the PROC LIFETEST produces Kaplan-Meier survival estimates and the option Plots=(s) plots the estimated survival function. A part of SAS output showing the survival estimates and the Kaplan-Meier curve is given below&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5255522100515616066" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 394px; CURSOR: hand; HEIGHT: 289px; TEXT-ALIGN: center" height="278" alt="" src="http://1.bp.blogspot.com/_AgqsS20RSWk/SO9dgWZytUI/AAAAAAAAACE/EBVg1MG53NA/s320/untitled.bmp" width="356" border="0" /&gt; &lt;strong&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:verdana;"&gt;Kaplan – Meire Curves&lt;/span&gt; &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5255522774047207938" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/SO9eHjgPMgI/AAAAAAAAACM/0dEHHt0tAHs/s320/untitled1.bmp" border="0" /&gt; &lt;/p&gt;&lt;p align="justify"&gt;&lt;br /&gt;Hazard ratio is a reasonable estimate for representing the effect of different factors in event occurrence. Cox regression model can be used and it models the time to event data. This can be done in SAS using the PROC PHREG. The following piece of code can be used to model the data&lt;br /&gt;&lt;br /&gt;proc phreg data =molecules;&lt;br /&gt;model surv*censor(0) =marker stage histo /rl ties=breslow selection=b;&lt;br /&gt;baseline out=out1 survival=s logsurv=ls loglogs=lls;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;The backward selection procedure (with the option selection=b) in Cox’s regression removes the non-significant variables from the regression model and it includes only significant variables in the final model. The option ties= breslow is used to handle the ties. Proc phreg produces the regression coefficients and their standard errors for the variables which were included in the final model along with the p-values obtained from the Wald’s chi-square test. Hazard ratios and their 95% confidence intervals for those variables are also included in the output. &lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:verdana;"&gt;A part of the output is given below&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5255523405112705170" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_AgqsS20RSWk/SO9esSZ-gJI/AAAAAAAAACU/ocaszaGwANw/s320/untitled2.bmp" border="0" /&gt;&lt;br /&gt;Hazard ratios can be interpreted similarly as that of interpreting odds ratios, i.e. a hazard ratio of 1 for an explanatory variable can be interpreted as it has no effect on the hazard. While a hazard ratio less than 1 denotes that the variable effect results in a decreased hazard. And a hazard ratio greater than 1, denotes that the variable effect results in an increased hazard.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-8546873107482022005?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/8546873107482022005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=8546873107482022005' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8546873107482022005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8546873107482022005'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/survival-analysis-prepared-by-jose.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_AgqsS20RSWk/SO9dgWZytUI/AAAAAAAAACE/EBVg1MG53NA/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-3133781268340054491</id><published>2008-10-10T05:28:00.000-07:00</published><updated>2008-10-10T06:21:03.046-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Quality Control'/><category scheme='http://www.blogger.com/atom/ns#' term='Parallel Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS QC'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;Quality Control (QC): steps towards effective programs and outputs&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Prepared by &lt;a href="mailto:mohanan@kreara.com"&gt;Mohanan K K&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The term SAS QC refers to the maintenance of the quality of data and quality of programming. The quality of data refers to the Accuracy, Completeness, Consistency, Timeliness, Uniqueness and Validity of data. The quality of programming on the other hand means that the SAS program should produce correct and meaningful outputs and at the same time meet all standards like indentation of statements, optimization of code, use of drop and keep statements and&lt;/span&gt; error/warning free logs to name a few.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The QC personnel involved in the SAS QC process are SAS programmers who are independent of the actual programming that is being carried out for the study. At Kreara, the SAS QC process involves the following steps&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;a) Checking the quality of SAS code and outputs developed.&lt;br /&gt;b) Entering the review comments into the issue tracker.&lt;br /&gt;c) Tracking the resolution of the review comments.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The QC personnel review the code, log and output and raise issues in an issue tracker which is a web application accessible to the team members and which helps in tracking the resolution of issues. The issues raised by the QC are made available to the SAS Programmer who in turn corrects the code as per comments and flags the issue as resolved. The issues are closed by the QC personnel when the correction is satisfactory.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;At Kreara intensive QC of codes and outputs is done in four stages as described below&lt;br /&gt;&lt;br /&gt;1. Output QC&lt;br /&gt;2. Log QC&lt;br /&gt;3. Code QC&lt;br /&gt;4. Parallel Programming&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;1. Output QC&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;The Output QC further includes&lt;br /&gt;&lt;br /&gt;a. Sample or complete check against actual data&lt;br /&gt;b. Check against the template&lt;br /&gt;&lt;br /&gt;During the output QC, the QC personnel checks whether the outputs produced are as per template or requirements. In addition a sample check is performed against the database. The sample size for sample check varies depending on the study. In case of tables a complete check is done on the outputs produced.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Log QC&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The SAS program always generate a log file. As part of the Log QC, the QC personnel is required to look for errors, warnings and critical notes in the log. Critical notes may include “Missing values were generated as a result of performing an operation on missing values”. The Log QC is aimed at making the log free of warnings, errors and notes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3. Code QC&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The code QC involves step by step review of the code. The following aspects of the code need to be reviewed&lt;br /&gt;&lt;br /&gt;a. Adherence to the requirements&lt;br /&gt;b. Logic&lt;br /&gt;c. Syntax&lt;br /&gt;d. Optimization&lt;br /&gt;e. Presentation&lt;br /&gt;f. Completeness of datasets&lt;br /&gt;&lt;br /&gt;A peer review is carried out during which the SAS Programmer is required to explain the code to the QC personnel. Any discrepancies are discussed and corrected by the SAS Programmer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. Parallel Programming&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Parallel programming is included in the QC process at Kreara. Parallel programming helps in both the output QC and optimization of code. During the parallel programming the QC personnel generates the outputs as per requirement without emphasis on the template and SAS programming standards/practices. The outputs generated by parallel program are compared to actual output for discrepancies. The parallel program may also be compared with actual program in order to improve the Quality of programming.&lt;br /&gt;&lt;br /&gt;The following example explains the parallel programming in QC process.&lt;br /&gt;&lt;br /&gt;If a SAS programmer calculates the confidence interval, using the ‘tinv’ function in the data step as shown below, a parallel programmer or QC personnel uses the simple proc means procedure and then the outputs are compared.&lt;br /&gt;&lt;br /&gt;PROC UNIVARIATE DATA=old;&lt;br /&gt;BY id ;&lt;br /&gt;VAR anal;&lt;br /&gt;OUTPUT out=new n = n1 n2&lt;br /&gt;mean = mean1 mean2&lt;br /&gt;std = std1 std2&lt;br /&gt;;&lt;br /&gt;RUN;&lt;br /&gt;&lt;br /&gt;DATA new1;&lt;br /&gt;SET new;&lt;br /&gt;n1 = PUT(n1,4.0);&lt;br /&gt;n2 = PUT(n2,4.0);&lt;br /&gt;mn1 = PUT(mean1,6.1);&lt;br /&gt;mn2 = PUT(mean2,6.1);&lt;br /&gt;sd1 = PUT(std1,7.2);&lt;br /&gt;sd2 = PUT(std2,7.2);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IF n1 NE 0 THEN DO;&lt;br /&gt;clh1 = mean1 + tinv(0.975,n1-1) * std1 / sqrt(n1);&lt;br /&gt;cll1 = mean1 - tinv(0.975,n1-1) * std1 / sqrt(n1);&lt;br /&gt;ci1 = "("PUT(clh1,6.2)","PUT(cll1,6.2)")";&lt;br /&gt;END;&lt;br /&gt;IF n2 NE 0 THEN DO;&lt;br /&gt;clh2 = mean2 + tinv(0.975,n2-1) * std2 / sqrt(n2);&lt;br /&gt;cll2 = mean2 - tinv(0.975,n2-1) * std2 / sqrt(n2);&lt;br /&gt;ci2 = "("PUT(clh2,6.2)","PUT(cll2,6.2)")";&lt;br /&gt;END;&lt;br /&gt;RUN;&lt;br /&gt;&lt;br /&gt;The output can be simply obtained using proc means procedure as follows&lt;br /&gt;&lt;br /&gt;proc means data=new ;&lt;br /&gt;BY id;&lt;br /&gt;VAR anal;&lt;br /&gt;OUTPUT out=sum1&lt;br /&gt;n = n1 n2&lt;br /&gt;mean = mean1 mean2&lt;br /&gt;std = std1 std2&lt;br /&gt;lclm = ll1 ll2&lt;br /&gt;uclm = ul1 ul2;&lt;br /&gt;RUN;&lt;br /&gt;&lt;br /&gt;The given parallel program suggests the reduction of steps and on the other hand the output produced by the parallel program is compared with actual output, as part of the output QC.&lt;br /&gt;&lt;br /&gt;The Quality Control process is carried out until good quality outputs and code are obtained.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-3133781268340054491?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/3133781268340054491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=3133781268340054491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3133781268340054491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3133781268340054491'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/quality-control-qc-steps-towards.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-4158820755043104730</id><published>2008-10-10T05:24:00.000-07:00</published><updated>2008-10-10T06:17:56.238-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='trend'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;Cochran-Armitage Trend Test&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Prepared by &lt;a href="mailto:"&gt;Sreeja E V&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In clinical trials, it is often of interest to investigate the relationship between the increasing dosage and the effect of the drug under study. Usually the dose levels tested are ordinal, and the effect of the drug is measured in binary. In such cases, Cochran-Armitage trend test is most frequently used to test for trend.&lt;br /&gt;&lt;br /&gt;Here, the Null hypothesis (H0): There is no linear trend in effect of the drug under study across increasing levels of dosage. Alternative hypothesis (H1): There is linear trend in effect of the drug under study across increasing levels of dosage. &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;Consider an example. The data set effect contains hypothetical data for a clinical trial of a case control study. The clinical trial investigates whether the variable cascon relates with different genotype statuses. Subjects have one of either three genotype statuses 1, 2 or 3 where 1 represents abnormal, 2 represents partially abnormal and 3 represents normal status. The variable cascon has values 1=’Case’ and 2=’Control’. The number of subjects for each group is represented by the variable Count. &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:verdana;"&gt;&lt;div align="justify"&gt;&lt;br /&gt;data effect;&lt;br /&gt;input status cascon Count @@;&lt;br /&gt;datalines;&lt;br /&gt;1 1 15 1 2 26&lt;br /&gt;2 1 19 2 2 10&lt;br /&gt;3 1 20 3 2 3&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc freq data=effect;&lt;br /&gt;tables status*cascon / trend measures cl;&lt;br /&gt;weight Count;&lt;br /&gt;title 'Clinical Trial for case control study’;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;The output will appear as follows &lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;Cochran-Armitage Trend Test&lt;br /&gt;*************************&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;Statistic (Z) 4.0252&lt;br /&gt;One-sided Pr &gt; Z &lt;.0001 &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;Two-sided Pr &gt; Z &lt;.0001 &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;Sample Size = 93 &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;We consider the two-sided -value tests against either an increasing or decreasing alternative. Using trend test we get Pr &gt; Z &lt;.0001. Thus the null hypothesis is rejected and it is concluded that there exists a trend in binomial proportions of response across gene status. &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-4158820755043104730?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/4158820755043104730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=4158820755043104730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4158820755043104730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4158820755043104730'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/cochran-armitage-trend-test-prepared-by.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-3134776131995660165</id><published>2008-10-10T04:43:00.000-07:00</published><updated>2008-10-10T06:18:32.728-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='format'/><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;strong&gt;&lt;span style="font-family:verdana;"&gt;Execute a set of files in SAS.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:78%;"&gt;Prepared by &lt;/span&gt;&lt;a href="mailto:rupesh@kreara,com"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:78%;"&gt;Rupesh R&lt;/span&gt; &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;There are situations where prior to running a SAS Editor(s) one may be required to run a list of files (SAS or non SAS). Our objective is how to call them in a single statement.&lt;br /&gt;&lt;br /&gt;We need to run a set of SAS files prior to a SAS code. The usual scenario is to execute them one by one. But it is possible to access a set of files or members from this storage location by a single statement as follows.&lt;br /&gt;&lt;br /&gt;Using filename statement we assign the fileref storage in an aggregate location.&lt;br /&gt;&lt;br /&gt;filename storage “An- Aggregate –storage- location”;&lt;br /&gt;&lt;br /&gt;Several files or members from this storage location can be accessed by listing them in parentheses after the fileref in a single %INCLUDE statement&lt;br /&gt;%inc storage (Monthly, Quarterly); Non SAS files can also be accessed using quotation marks around the complete filename listed inside the parentheses. %inc storage ("file-1.txt","file-2.dat","file-3.cat"); Auto call SAS macros and Formats When the SAS editors contain user defined macros the above %inc statement does not work. In this situation we use sasautos option. Usually the formats and macros will be in separate folders. In those situations they can be called as follows. Libname project “project-path”;Libname formlib “format –path”;Libname mymacros “macro-path”; options fmtsearch=(formlib project) sasautos=( mymacros) mautosource ;&lt;br /&gt;The fmtsearch option searches the formats in the files or libraries in the following order&lt;br /&gt;&lt;br /&gt;1. Work.formats&lt;br /&gt;2. formlib.formats&lt;br /&gt;3. project.formats&lt;br /&gt;&lt;br /&gt;Sasautos option invokes the macros in the file reference storage.&lt;br /&gt;&lt;br /&gt;The auto call facility is usually used when all user-defined macros are stored in a standard location and they are not compiled until they are actually needed.&lt;br /&gt;But when we get formats and macros in the same folder it is better to use the following statement.Options fmtsearch=( storage project) sasautos=( storage ) mautosource ; Here even though library work is not specified the fmtsearch option will search for the formats in the work library by default as mentioned earlier.The formats can also be called without using fmtsearch option if we know the name of SAS file which contains all the formats for the particular study. We can access the formats using a single %include statement. &lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;%inc storage (formats);&lt;br /&gt;&lt;br /&gt;Here the SAS editor formats contain all the formats for the study.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-3134776131995660165?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/3134776131995660165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=3134776131995660165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3134776131995660165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3134776131995660165'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/execute-set-of-files-in-sas.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-169185132764623460</id><published>2008-10-10T04:29:00.000-07:00</published><updated>2008-10-10T06:24:38.529-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Proc freq'/><category scheme='http://www.blogger.com/atom/ns#' term='warning'/><category scheme='http://www.blogger.com/atom/ns#' term='Fisher Exact Test'/><category scheme='http://www.blogger.com/atom/ns#' term='Chi-square'/><title type='text'></title><content type='html'>&lt;strong&gt;WARNING: 25% of the cells have expected counts less than 5. Chi-Square may not be a valid test&lt;/strong&gt;.&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;Prepared by &lt;a href="mailto:rajeev@kreara.com"&gt;Rajeev V&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;The chi-square test is a one of the tools in statistics to compare observed data with data we would expect to obtain according to a specific hypothesis. Procedure freq with option chisq help us to determine evidence for the association between two categorical variables in SAS.&lt;br /&gt;&lt;br /&gt;While performing chi square test using proc freq in SAS one may sometimes encounter such a warning, WARNING: 25% of the cells have expected counts les than 5. Chi-Square may not be a valid test.&lt;br /&gt;&lt;br /&gt;This type of warning arises in output window when the expected count in any of the cells is less than 5 when performing Pearson chi-square test; for example the expected counts for row2column1 in the below table is calculated as (16X235)/766 equal to 4.9086. If we see this type of warning just avoid p value corresponding to Pearson chi-square test and take into consideration p value of Fisher’s exact test. These are explained below using an example:-&lt;br /&gt;&lt;br /&gt;Data _cat_;&lt;br /&gt;Input grp $7. Cat1 $4;&lt;br /&gt;Cards;&lt;br /&gt;Case ABN&lt;br /&gt;Control NRM&lt;br /&gt;………………….&lt;br /&gt;………………….&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;ods output Chisq=chitb_1(where =(statistic in ("Chi-Square")))&lt;br /&gt;FishersExact=fishexctb_1(where=(label1="Two-sided Pr&lt;=P")); &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;proc freq data=_cat_;&lt;/div&gt;&lt;div align="justify"&gt;table grp*cat1/chisq expected nocol norow nopercent ; &lt;/div&gt;&lt;div align="justify"&gt;by _name_; &lt;/div&gt;&lt;div align="justify"&gt;run; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;ods output close; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;The output will be, &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5255486747491071794" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 351px; CURSOR: hand; HEIGHT: 310px; TEXT-ALIGN: center" height="310" alt="" src="http://2.bp.blogspot.com/_AgqsS20RSWk/SO89WiH6dzI/AAAAAAAAAB8/D2qDtX1L9Q0/s320/untitled.bmp" width="346" border="0" /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;The p-value obtained on performing the chi-square test above may not measure the association because (2, 1) th expected count is less than 5. SAS automatically performs Fisher's exact test for 2×2 tables but for tables larger than 2x2, exact tests are requested by using the exact option on the table statement or using exact fisher statement after table statement. SAS generate every possible table that is compatible with the given marginal totals, and calculates the exact probability p of each table, using Fisher’s formula (1934). By summing the probabilities of the extreme tables we obtain a P value that is used in the usual classical way as a test of the null hypothesis.From our example we will consider the two sided p value (1.00) from Fisher’s Exact Test.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-169185132764623460?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/169185132764623460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=169185132764623460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/169185132764623460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/169185132764623460'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/warning-25-of-cells-have-expected.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_AgqsS20RSWk/SO89WiH6dzI/AAAAAAAAAB8/D2qDtX1L9Q0/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-7017863475516139644</id><published>2008-10-10T02:35:00.000-07:00</published><updated>2008-10-10T06:20:01.338-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='logistic'/><category scheme='http://www.blogger.com/atom/ns#' term='odds ratio'/><title type='text'></title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;strong&gt;Calculation of adjusted odds ratio using Proc logistic&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;Prepared by &lt;/span&gt;&lt;a href="mailto:resmi@kreara.com"&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;Resmi Sukumar &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Adjusted odds ratios are the odds of a dichotomous event adjusted for or controlling for other possible variables in the model. For example in a model where the response variable is the presence or absence of a disease, an odds ratio for a binomial exposure variable is an adjusted odds ratio for the levels of all other risk factor included in the model.&lt;br /&gt;&lt;br /&gt;Adjusted odds ratio and corresponding 95% confidence interval is obtained by performing logistic regression analysis, this technique is implemented in the SAS® System using PROC LOGISTIC.&lt;br /&gt;&lt;br /&gt;Logistic regression analysis provides adjusted odds ratio if adjustors are used as additional predictors, otherwise it provides unadjusted odds ratio.&lt;br /&gt;&lt;br /&gt;The general syntax of PROC LOGISTIC is:&lt;br /&gt;&lt;br /&gt;PROC LOGISTIC DATA=dsn ;&lt;br /&gt;MODEL depvar = indepvar(s)/options;&lt;br /&gt;RUN;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;Suppose we are interested in conducting a case control study to evaluate the relation among cases and controls between different genotypes. The different gene statuses are ‘abnormal’ and ‘normal’ where normal is considered as referent group. For this purpose we generate a dataset as follows&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;/*Random data generation*/&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;data genestat;&lt;br /&gt;do i=1 to 50;&lt;br /&gt;gene=round(1 + (3-1)*uniform(10));&lt;br /&gt;age =round(1+(3-1)*uniform(15));&lt;br /&gt;ethnic=round(1+(3-1)*uniform(14));&lt;br /&gt;status=round(1+(2-1)*uniform(16));&lt;br /&gt;cascon=round(1+(2-1)*uniform(17));&lt;br /&gt;output;&lt;br /&gt;end ;&lt;br /&gt;drop i;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;/*formats */&lt;br /&gt;proc format;&lt;br /&gt;value gene 1= 'Gene1' 2= 'Gene2' 3= 'Gene3';&lt;br /&gt;value cascon 1='Case' 2='Control';&lt;br /&gt;value age 1='&lt;18' 2="'18-35'" 3="'"&gt;35';&lt;br /&gt;value ethnic 1='Asian' 2='Caucasian' 3='Other';&lt;br /&gt;value status 1='Abnormal' 2='Normal ';&lt;br /&gt;&lt;br /&gt;proc sort data=genestat ;&lt;br /&gt;by gene;&lt;br /&gt;format gene gene. cascon cascon. status status. age age. ethnic ethnic.;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;Let’s consider a model with variable status, age and ethnic are as predictors.&lt;br /&gt;&lt;br /&gt;/*proc logistic for calculating adjusted odds ratio*/&lt;br /&gt;ods trace on;&lt;br /&gt;ods output CLoddsWald=gene_cancer(where=(Effect="status Abnormal vs Normal")); &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;proc logistic data=genestat;&lt;br /&gt;class status/param=ref ref=last;/* reference parameter ref=last&lt;br /&gt;i.e. ref='Normal'*/&lt;br /&gt;model cascon=status age ethnic / clodds=both;/* clodds =gives WALD confidence Interval for odds ratio*/&lt;br /&gt;by gene ;&lt;br /&gt;run; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;ods output close;&lt;br /&gt;ods trace off;&lt;br /&gt;&lt;br /&gt;The MODEL statement names the response variable and the explanatory effects, including covariates, main effects, interactions, and nested effects. The CLASS statement names the classification variables to be used in the analysis. The CLASS Statement permits specification of a reference level. By default, the lowest level of the variable placed in the CLASS Statement is treated as the reference category. The BY statement is used to obtain separate analyses on observations in groups defined by the BY variables.&lt;br /&gt;&lt;br /&gt;The output table is obtained as &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5255462451351306290" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 329px; CURSOR: hand; HEIGHT: 54px; TEXT-ALIGN: center" height="66" alt="" src="http://1.bp.blogspot.com/_AgqsS20RSWk/SO8nQT8ywDI/AAAAAAAAABk/E8nckMonTBE/s320/untitled.bmp" width="320" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;This shows that Gene1 and Gene2 are less likely to have the abnormal genotype status in case than control. Adjusted odds ratio for Gene3 shows that the odds of abnormal genotype occurring in the case group are higher than it occurring in control group.&lt;br /&gt;&lt;br /&gt;Let's now consider the model where status is the only predictor.&lt;br /&gt;&lt;br /&gt;/*proc logistic for calculating unadjusted odds ratio*/&lt;br /&gt;ods trace on;&lt;br /&gt;ods output CLoddsWald=gene_cancer(where=(Effect="status Abnormal vs Normal")); &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;proc logistic data=genestat;&lt;br /&gt;class status/param=ref ref=last;/* reference parameter ref=last&lt;br /&gt;i.e. ref='Normal'*/&lt;br /&gt;model cascon=status / clodds=both;/* clodds =gives WALD confidence interval&lt;br /&gt;for odds ratio*/&lt;br /&gt;by gene ;&lt;br /&gt;run; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;ods output close;&lt;br /&gt;ods trace off;&lt;br /&gt;&lt;br /&gt;The output table is obtained as &lt;/span&gt;&lt;/p&gt;&lt;img id="BLOGGER_PHOTO_ID_5255468597340005538" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_AgqsS20RSWk/SO8s2Dir5KI/AAAAAAAAAB0/yS6-8zQ-9EI/s320/untitled.bmp" border="0" /&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;This shows that the odds of abnormal genotype occurring in the case group are higher than it occurring in control group for gene 3 while it same for genes 1 and 2.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-7017863475516139644?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/7017863475516139644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=7017863475516139644' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/7017863475516139644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/7017863475516139644'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/calculation-of-adjusted-odds-ratio.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_AgqsS20RSWk/SO8nQT8ywDI/AAAAAAAAABk/E8nckMonTBE/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-6024621948496147424</id><published>2008-10-10T00:31:00.001-07:00</published><updated>2008-10-10T00:36:24.054-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='Scrum'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;a href="http://en.wikipedia.org/wiki/Image:Scrum_process.svg"&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="font-size:180%;"&gt;Scrum - Agile project management&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5255425390741030946" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" height="129" alt="" src="http://2.bp.blogspot.com/_OPgks12Yxzc/SO8FjGawCCI/AAAAAAAAATg/FrnnUleYvc0/s200/scrum.gif" width="294" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;Scrum is a process skeleton that includes a set of practices and predefined roles. The main roles in Scrum are the ScrumMaster who maintains the processes and works similar to a project manager, the Product Owner who represents the stakeholders, and the Team which includes the developers.&lt;br /&gt;During each sprint, a 15-30 day period (length decided by the team), the team creates an increment of potential shippable (usable) software. The set of features that go into each sprint come from the product backlog, which is a prioritized set of high level requirements of work to be done. Which backlog items go into the sprint is determined during the sprint planning meeting. During this meeting the Product Owner informs the team of the items in the product backlog that he wants completed. The team then determines how much of this they can commit to complete during the next sprint. During the sprint, no one is able to change the sprint backlog, which means that the requirements are frozen for a sprint.&lt;br /&gt;There are several implementations of systems for managing the Scrum process which range from yellow stickers and white-boards to software packages. One of Scrum's biggest advantages is that it is very easy to learn and requires little effort to start using.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-6024621948496147424?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/6024621948496147424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=6024621948496147424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/6024621948496147424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/6024621948496147424'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/scrum-agile-project-management-scrum-is.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_OPgks12Yxzc/SO8FjGawCCI/AAAAAAAAATg/FrnnUleYvc0/s72-c/scrum.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-819639740079012235</id><published>2008-10-06T05:18:00.000-07:00</published><updated>2008-10-10T06:32:12.703-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Standards'/><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='document'/><title type='text'></title><content type='html'>&lt;div align="justify"&gt;&lt;strong&gt;Maintaining document standards at Kreara&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Prepared by &lt;a href="mailto:sreedevi@kreara.com"&gt;Sreedevi Menon&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Documentation is an integral part of clinical trial studies and maintenance of standards while preparing various documents is of utmost importance. The documents related to clinical trial study may be anything from SOPs to documents related to project management, data management, statistics or SAS.&lt;br /&gt;&lt;br /&gt;At Kreara, all or some of such documents are prepared as per requirement of the study. The emphasis is not only to make these documents as informative as possible but also to convey the information in a concise and effective manner. Further, effort is taken to maintain the quality of the information contained and the way of presentation.&lt;br /&gt;&lt;br /&gt;An SOP for General Documentation Guidelines is maintained at Kreara and all personnel in the organization are trained on the same. This standard operating procedure describes the various guidelines to be followed during preparation and amendment of SOPs in general. It also presents guidelines for preparation of project related documents like the naming conventions to be followed.&lt;br /&gt;&lt;br /&gt;In addition to this, individual SOPs are maintained for each and every document and to maintain standards, templates with instructions regarding the contents, layout and formatting of the contents are maintained in a central repository. The personnel responsible for writing the documents are required to follow the format in the templates while preparing the documents. The QC personnel check for any non-compliance to templates in the document in addition to the relevance of contents. Further the QA manager is responsible to ensure that the process is followed correctly.&lt;br /&gt;&lt;br /&gt;The personnel at Kreara are trained in the SOPs related to document writing. A great deal of exposure in the related field is provided to them so that they are capable of preparing informative and effective documents. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-819639740079012235?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/819639740079012235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=819639740079012235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/819639740079012235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/819639740079012235'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/maintaining-document-standards-at.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2305537254623789594</id><published>2008-10-03T06:35:00.000-07:00</published><updated>2008-10-06T02:50:15.952-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='substr'/><category scheme='http://www.blogger.com/atom/ns#' term='colon'/><title type='text'></title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;strong&gt;SAS COLON MODIFIER “ =: ”&lt;/strong&gt;&lt;br /&gt;Prepared by : &lt;a href="mailto:sujith@kreara.com"&gt;Sujith K G&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Usually we use substr () function to select a string which starts with specific characters or for selecting a part of a string. We can also use Sas Colon Modifier “=:” for performing the same task. Both methods allow comparison of values based on the prefix of a text string. Both these methods have been explained using the following example&lt;br /&gt;&lt;br /&gt;Here we have a dataset adverse which contains patient id and name of adverse event.&lt;br /&gt;&lt;br /&gt;data adverse;&lt;br /&gt;Input id ae $;&lt;br /&gt;cards;&lt;br /&gt;001 asthma&lt;br /&gt;002 chesttightness&lt;br /&gt;003 dizziness&lt;br /&gt;004 cold&lt;br /&gt;005 headache&lt;br /&gt;006 dysphonia&lt;br /&gt;007 commoncold&lt;br /&gt;008 nausea&lt;br /&gt;009 cough&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;We are interested to flag the adverse events starting with “co” namely cough, cold and common cold as Yes and others as No.&lt;br /&gt;&lt;br /&gt;This can be performed by using the SUBSTR() function as described below&lt;br /&gt;&lt;br /&gt;data event;&lt;br /&gt;set adverse;&lt;br /&gt;if lowcase(substr(ae,1,2))='co' then res="Yes";&lt;br /&gt;else res="No";&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;The same purpose can be served by applying the Colon Modifier “=:” as described in the following steps&lt;br /&gt;&lt;br /&gt;Now using, Colon Modifier the condition is,&lt;br /&gt;&lt;br /&gt;data event;&lt;br /&gt;set adverse;&lt;br /&gt;if lowcase(ae) =: "co" then res="Yes";&lt;br /&gt;else res="No";&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;As can be seen from the above examples in the substring function we need to specify the position to extract the first two letters while in Colon modifier such a requirement is not needed.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2305537254623789594?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2305537254623789594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2305537254623789594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2305537254623789594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2305537254623789594'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/10/sas-colon-modifier-prepared-by-sujith-k.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-5327998059695461400</id><published>2008-09-25T22:46:00.001-07:00</published><updated>2008-09-25T22:50:17.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technopark'/><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='Kerala'/><category scheme='http://www.blogger.com/atom/ns#' term='Trivandrum'/><category scheme='http://www.blogger.com/atom/ns#' term='location'/><category scheme='http://www.blogger.com/atom/ns#' term='Thiruvananthapuram'/><category scheme='http://www.blogger.com/atom/ns#' term='clinical trials'/><title type='text'></title><content type='html'>&lt;span style="font-size:180%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;Kreara - Location&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div id="__ss_619434" style="WIDTH: 425px; TEXT-ALIGN: left"&gt;&lt;a title="Technopark" style="DISPLAY: block; MARGIN: 12px 0px 3px; FONT: 14px Helvetica,Arial,Sans-serif; TEXT-DECORATION: underline" href="http://www.slideshare.net/anoopinte/technopark-presentation?type=powerpoint"&gt;Technopark&lt;/a&gt;&lt;object style="MARGIN: 0px" height="355" width="425"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=technopark-1222342495183412-8&amp;amp;stripped_title=technopark-presentation"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=technopark-1222342495183412-8&amp;stripped_title=technopark-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="FONT-SIZE: 11px; PADDING-TOP: 2px; FONT-FAMILY: tahoma,arial; HEIGHT: 26px"&gt;View SlideShare &lt;a title="View Technopark on SlideShare" style="TEXT-DECORATION: underline" href="http://www.slideshare.net/anoopinte/technopark-presentation?type=powerpoint"&gt;presentation&lt;/a&gt; or &lt;a style="TEXT-DECORATION: underline" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="TEXT-DECORATION: underline" href="http://slideshare.net/tag/kreara"&gt;kreara&lt;/a&gt; &lt;a style="TEXT-DECORATION: underline" href="http://slideshare.net/tag/location"&gt;location&lt;/a&gt;)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-5327998059695461400?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/5327998059695461400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=5327998059695461400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5327998059695461400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5327998059695461400'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/kreara-location.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-1949647659842208531</id><published>2008-09-25T00:24:00.001-07:00</published><updated>2008-09-25T00:28:25.290-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='Kerala'/><category scheme='http://www.blogger.com/atom/ns#' term='India'/><category scheme='http://www.blogger.com/atom/ns#' term='clinical trials'/><title type='text'></title><content type='html'>&lt;span style="font-family:arial;font-size:180%;"&gt;&lt;strong&gt;Ethical Guidelines for Clinical Research - India and the World&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div id="__ss_350296" style="WIDTH: 425px; TEXT-ALIGN: left"&gt;&lt;a title="thical Guidelines for Clinical Research - India and the World" style="DISPLAY: block; MARGIN: 12px 0px 3px; FONT: 14px Helvetica,Arial,Sans-serif; TEXT-DECORATION: underline" href="http://www.slideshare.net/bishorvi/thical-guidelines-for-clinical-research-india-and-the-world?type=powerpoint"&gt;thical Guidelines for Clinical Research - India and the World&lt;/a&gt;&lt;object style="MARGIN: 0px" height="355" width="425"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=clinicaltrialrules-1208075074680087-8&amp;amp;stripped_title=thical-guidelines-for-clinical-research-india-and-the-world"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=clinicaltrialrules-1208075074680087-8&amp;stripped_title=thical-guidelines-for-clinical-research-india-and-the-world" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="FONT-SIZE: 11px; PADDING-TOP: 2px; FONT-FAMILY: tahoma,arial; HEIGHT: 26px"&gt;View SlideShare &lt;a title="View thical Guidelines for Clinical Research - India and the World on SlideShare" style="TEXT-DECORATION: underline" href="http://www.slideshare.net/bishorvi/thical-guidelines-for-clinical-research-india-and-the-world?type=powerpoint"&gt;presentation&lt;/a&gt; or &lt;a style="TEXT-DECORATION: underline" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="TEXT-DECORATION: underline" href="http://slideshare.net/tag/research"&gt;research&lt;/a&gt; &lt;a style="TEXT-DECORATION: underline" href="http://slideshare.net/tag/clinical"&gt;clinical&lt;/a&gt;)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-1949647659842208531?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/1949647659842208531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=1949647659842208531' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/1949647659842208531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/1949647659842208531'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/clinical-trials-in-india.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-991523579596881290</id><published>2008-09-24T00:33:00.001-07:00</published><updated>2008-09-25T00:29:15.494-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='Kerala'/><category scheme='http://www.blogger.com/atom/ns#' term='India'/><category scheme='http://www.blogger.com/atom/ns#' term='data management'/><category scheme='http://www.blogger.com/atom/ns#' term='clinical trials'/><title type='text'></title><content type='html'>&lt;span style="font-family:arial;font-size:180%;"&gt;&lt;strong&gt;Kreara - Clinical Data management and Biomterics&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div id="__ss_615047" style="WIDTH: 425px; TEXT-ALIGN: left"&gt;&lt;a title="Kreara - Clinical Data management and Biomterics" style="DISPLAY: block; MARGIN: 12px 0px 3px; FONT: 14px Helvetica,Arial,Sans-serif; TEXT-DECORATION: underline" href="http://www.slideshare.net/anoopinte/kreara-clinical-data-management-and-biomterics-presentation?type=powerpoint"&gt;Kreara - Clinical Data management and Biomterics&lt;/a&gt;&lt;object style="MARGIN: 0px" height="355" width="425"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=clinical-research-1222240905738757-8&amp;amp;stripped_title=kreara-clinical-data-management-and-biomterics-presentation"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=clinical-research-1222240905738757-8&amp;stripped_title=kreara-clinical-data-management-and-biomterics-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="FONT-SIZE: 11px; PADDING-TOP: 2px; FONT-FAMILY: tahoma,arial; HEIGHT: 26px"&gt;View SlideShare &lt;a title="View Kreara - Clinical Data management and Biomterics on SlideShare" style="TEXT-DECORATION: underline" href="http://www.slideshare.net/anoopinte/kreara-clinical-data-management-and-biomterics-presentation?type=powerpoint"&gt;presentation&lt;/a&gt; or &lt;a style="TEXT-DECORATION: underline" href="http://www.slideshare.net/upload?type=powerpoint"&gt;Upload&lt;/a&gt; your own. (tags: &lt;a style="TEXT-DECORATION: underline" href="http://slideshare.net/tag/biomterics"&gt;biomterics&lt;/a&gt; &lt;a style="TEXT-DECORATION: underline" href="http://slideshare.net/tag/sas"&gt;sas&lt;/a&gt;)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-991523579596881290?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/991523579596881290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=991523579596881290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/991523579596881290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/991523579596881290'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/kreara-clinical-data-management-and.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-5158599257320257383</id><published>2008-09-21T21:56:00.000-07:00</published><updated>2008-09-25T00:31:24.848-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='odds ratio'/><title type='text'></title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Odds ratio &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Prepared by &lt;/strong&gt;&lt;strong&gt;&lt;a href="mailto:prajitha@kreara.com"&gt;Prajitha&lt;/a&gt; Nair&lt;/a&gt; &lt;/strong&gt;&lt;/span&gt;&amp;amp; &lt;span style="font-size:78%;"&gt;&lt;a href="mailto:sreeja@kreara.com"&gt;Sreeja&lt;/a&gt; E V&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;In order to quantify the association between the exposure and the outcome of interest the incidence of disease in a group of individuals exposed to the supposed risk factor must be compared with the incidence in a group of persons not exposed. This comparison can be summarized by calculating either the ratio of the measures of disease occurrence for the two groups, which indicates the likelihood of developing the disease in the exposed individuals relative to those unexposed.In case-control studies, it is not possible to directly estimate disease incidence in those exposed and those unexposed, since people are selected on the basis of having or not having the condition of interest, not on the basis of their exposure status. It is however, possible to calculate the odds of exposure in the cases and in the controls.The odds ratio (OR) estimates the magnitude of association between the exposure and outcome. It is defined as the ratio of odds of an event occurring in one group to the odds of it occurring in another group, or to a sample-based estimate of that ratio. These groups might be an experimental group and control group.The 2x2 contingency table showing the relationship between the exposure and the disease is presented as follows: &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;/div&gt;&lt;/span&gt;&lt;img id="BLOGGER_PHOTO_ID_5247677062902200146" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_AgqsS20RSWk/SNN-fD5AN1I/AAAAAAAAAAY/tbCLJkKowbM/s320/untitled1.bmp" border="0" /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;Probability of being exposed among cases=a/(a+c)Probability of being non-exposed among cases=c/(a+c)Odds of being exposed among cases=a/cProbability of being exposed among controls=b/(b+d)Probability of being non-exposed among controls=d/(b+d)Odds of being exposed among controls=b/dOdds ratio = (odds of being exposed among cases)/ (odds of being exposed among controls)= (a/c)/ (b/d)= (a*d)/ (b*c)&lt;br /&gt;In strict terms, the odds ratio obtained tells us how many more (or less, if the exposure is associated with a reduced risk) times likely the cases are to have been exposed to the factor under study compared with the controls.&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-size:85%;"&gt;If odds ratio is equal to 1 then this implies that the condition or event under study is equally likely in both groups. An odds ratio greater than 1 indicates that the condition or event is more likely in the first group. An odds ratio less than 1 indicate that the condition or event is less likely in the first group. The odds ratio can vary from zero to infinity.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-5158599257320257383?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/5158599257320257383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=5158599257320257383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5158599257320257383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5158599257320257383'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/odds-ratio-prepared-by-prajitha-nair.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_AgqsS20RSWk/SNN-fD5AN1I/AAAAAAAAAAY/tbCLJkKowbM/s72-c/untitled1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2523770237912157483</id><published>2008-09-21T21:54:00.000-07:00</published><updated>2008-09-25T00:32:18.304-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='odds ratio'/><title type='text'></title><content type='html'>&lt;strong&gt;&lt;span style="font-family:arial;"&gt;Odds Ratio using SAS&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;strong&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="font-size:78%;"&gt;Prepared by &lt;/span&gt;&lt;a href="http://www.blogger.com/prajitha@kreara.com"&gt;&lt;span style="font-size:78%;"&gt;Prajitha&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt; Nair&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;In &lt;span style="font-family:arial;"&gt;the case-control study, the risk of cervical cancer was examined in relation to a gene XXXX. The status of the genes is abnormal and normal wherein normal is considered as the referent category. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family:arial;"&gt;&lt;p align="justify"&gt;&lt;span style="font-size:85%;"&gt;Consider an example:data gene;input cat $7. genstatus $4. count;cards;case abn 119control abn 68case nor 317control nor 319;run; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-size:85%;"&gt;ods output RelativeRisks=relrisk(where=(studytype="Case-Control (Odds Ratio)"));proc freq data=gene ;tables cat*genstatus/relrisk ;weight count;run;ods output close; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-size:85%;"&gt;The table will be as follows:&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5247680634009880530" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_AgqsS20RSWk/SNOBu7TbB9I/AAAAAAAAAAo/6Ma5uys21rQ/s320/untitled2.bmp" border="0" /&gt;Odds of exposure among cases=119/317Odds of exposure among controls=68/319Odds ratio= odds of exposure among cases/odds of exposure among controls =1.76&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;The odds ratio with respect to XXXX shows that the odds of abnormal genotype occurring in case group is 1.76 times higher than it occurring in control group. The 95% confidence interval for the odds ratio is obtained as (1.26, 2.46).The cervical cancer cases were 76% more likely to have abnormal genes than controls. In short, the odds ratio indicates that women who have abnormal genes were 76% more likely to develop cervical cancer than those with normal genes.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2523770237912157483?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2523770237912157483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2523770237912157483' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2523770237912157483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2523770237912157483'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/odds-ratio-using-sas-prepared-by_8349.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_AgqsS20RSWk/SNOBu7TbB9I/AAAAAAAAAAo/6Ma5uys21rQ/s72-c/untitled2.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2151553032731100695</id><published>2008-09-19T03:06:00.002-07:00</published><updated>2008-09-22T00:25:37.735-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;strong&gt;Odds Ratio when cell count is zero&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Arial;font-size:78%;"&gt;Prepared by &lt;a href="mailto:prajitha@kreara.com"&gt;Prajitha Nair&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;If frequency of the counts in any one of the cell is zero then the odds ratio cannot be computed?&lt;br /&gt;Consider the example:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;data gene;&lt;br /&gt;input cat $7. genstatus $4. count;&lt;br /&gt;cards;&lt;br /&gt;case abn 119&lt;br /&gt;control abn 0&lt;br /&gt;case nor 317&lt;br /&gt;control nor 319&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;ods output RelativeRisks=relrisk(where=(studytype="Case-Control (Odds Ratio)"));&lt;br /&gt;&lt;br /&gt;proc freq data=gene ;&lt;br /&gt;tables cat*genstatus/relrisk ;&lt;br /&gt;weight count;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;ods output close;&lt;br /&gt;&lt;br /&gt;The output will look as follows:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;/span&gt;&lt;img id="BLOGGER_PHOTO_ID_5247684178536670114" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_AgqsS20RSWk/SNOE9Psdo6I/AAAAAAAAAA4/MQE2siBN0y0/s320/untitled.bmp" border="0" /&gt;&lt;br /&gt;This can be resolved as follows:&lt;br /&gt;ods output CommonRelRisks=cmnrelrisk;&lt;br /&gt;proc freq data=gene ;&lt;br /&gt;tables cat*genstatus/relrisk cmh ;&lt;br /&gt;weight count;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;ods output close;&lt;br /&gt;&lt;br /&gt;The output will be produced as:&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5247685090087657650" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_AgqsS20RSWk/SNOFyTfJ4LI/AAAAAAAAABA/BUCmFGSXnGA/s320/untitled5.bmp" border="0" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;data cmnrelrisk_1(keep=Value LowerCL UpperCL);&lt;br /&gt;set cmnrelrisk;&lt;br /&gt;if studytype eq " (Odds Ratio)" then if method eq "Logit **" and value ne . then output;&lt;br /&gt;else if studytype="Case-Control" then if method eq "Mantel-Haenszel" and value not in (.,0.0000) then output;&lt;br /&gt;format LowerCL UpperCL ODDSR8.3 value ODDSR8.3;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;The cmh option will help to tackle the problem. The logit method will add 0.5 in all the cells of the 2 x 2 cross tabulation table where zero is in anyone of the cell and then odds ratio is evaluated.&lt;br /&gt;&lt;br /&gt;Thus the odds ratio obtained is 240.5&lt;/span&gt;06.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2151553032731100695?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2151553032731100695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2151553032731100695' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2151553032731100695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2151553032731100695'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/odds-ratio-when-cell-count-is-zero.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_AgqsS20RSWk/SNOE9Psdo6I/AAAAAAAAAA4/MQE2siBN0y0/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-4430662326102751217</id><published>2008-09-04T05:18:00.000-07:00</published><updated>2008-09-25T00:33:16.471-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chem-informatics'/><category scheme='http://www.blogger.com/atom/ns#' term='Kreara'/><category scheme='http://www.blogger.com/atom/ns#' term='pre-clinical'/><category scheme='http://www.blogger.com/atom/ns#' term='insilico'/><category scheme='http://www.blogger.com/atom/ns#' term='bio-informatics'/><title type='text'></title><content type='html'>&lt;span style="font-family:arial;font-size:180%;"&gt;Kreara - Preclinical research services&lt;br /&gt;&lt;/span&gt;&lt;div id="__ss_582324" style="WIDTH: 425px; TEXT-ALIGN: left"&gt;&lt;a title="Kreara - Preclinical research services" style="DISPLAY: block; MARGIN: 12px 0px 3px; FONT: 14px Helvetica,Arial,Sans-serif; TEXT-DECORATION: underline" href="http://www.slideshare.net/anoopinte/kreara-preclinical-research-services-presentation-582324?src=embed"&gt;Kreara - Preclinical research services&lt;/a&gt;&lt;object style="MARGIN: 0px" height="355" width="425"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=insil-1220529364092396-8&amp;amp;stripped_title=kreara-preclinical-research-services-presentation-582324"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=insil-1220529364092396-8&amp;stripped_title=kreara-preclinical-research-services-presentation-582324" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="FONT-SIZE: 11px; PADDING-TOP: 2px; FONT-FAMILY: tahoma,arial; HEIGHT: 26px"&gt;View SlideShare &lt;a title="View Kreara - Preclinical research services on SlideShare" style="TEXT-DECORATION: underline" href="http://www.slideshare.net/anoopinte/kreara-preclinical-research-services-presentation-582324?src=embed"&gt;presentation&lt;/a&gt; or &lt;a style="TEXT-DECORATION: underline" href="http://www.slideshare.net/upload?src=embed"&gt;Upload&lt;/a&gt; your own.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="VISIBILITY: hidden; WIDTH: 0px; HEIGHT: 0px" height="0" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bHQ9MTIyMDUzMDQyODY4OSZwdD*xMjIwNTMwNDU2MTkxJnA9MTAxOTEmZD*mbj1ibG9nZ2VyJmc9MQ==.gif" width="0" border="0" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-4430662326102751217?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/4430662326102751217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=4430662326102751217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4430662326102751217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4430662326102751217'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/09/kreara-preclinical-research-services.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8947340655238624146</id><published>2008-05-26T22:07:00.000-07:00</published><updated>2008-05-26T22:39:27.027-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;strong&gt;&lt;span style="font-family:arial;"&gt;Understanding the %pageXof Y macro&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Compiled by &lt;a href="mailto:rupesh@kreara.com"&gt;Rupesh R&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The following macro needs to be applied for the purpose of presenting page numbers in Page X of Y format within the body of the document.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;When calling the macro, the proc report code should be quoted by %nrstr as explained in step 1.a below. To avoid clutter of code, here the proc report code is created as a macro. This proc report code should contain a ‘compute before_page_’ block as described in the step 5 below.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;%macro pageXofY (report= /* proc report code, quoted by %nrstr */ /*1.a*/&lt;br /&gt;, dummy=dummy /* name of the dummy output file */&lt;br /&gt;);&lt;br /&gt;%global page pages len; /* 1.b*/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;/-- first run --*/&lt;br /&gt;%let page = 0;&lt;br /&gt;%let len = 8; /* 1.c*/&lt;br /&gt;filename _dummy &amp;amp;dummy.; /* 1.d*/&lt;br /&gt;proc printto print = _dummy; run; /*1.e*/&lt;br /&gt;%unquote (&amp;amp;report.) ;/* 1.f*/&lt;br /&gt;proc printto; run;/*1.g*/&lt;br /&gt;filename _dummy clear; /*1.h*/&lt;br /&gt;&lt;br /&gt;%*-- second run --*;&lt;br /&gt;%let pages = &amp;amp;page.; /*1.i*/&lt;br /&gt;%let page = 0;/*1.j*/&lt;br /&gt;%let len = %eval(%length(&amp;amp;pages.) * 2 + 4); /* 1.k*/&lt;br /&gt;%unquote(&amp;amp;report.);/*1.l*/&lt;br /&gt;%mend pageXofY;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Explanation of Macro&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Step 1&lt;/strong&gt; (1.a): Using %nrstr function we mask the special characters and mnemonics .Here we mask &amp;amp; and % symbols in the proc report code.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2&lt;/strong&gt; (1.b): Initialize three global macro variables&lt;br /&gt;§ The variable ‘page’ returns the current page number&lt;br /&gt;§ The variable ‘pages’ returns the total number of pages&lt;br /&gt;§ The variable ‘len’ returns the expected length of the string ‘_XofY’ (2.c) .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3&lt;/strong&gt; (1.c): The initial values of macro variables ‘page’ and ‘len’ are assigned as 0 and 8 respectively.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 4&lt;/strong&gt; (1.d): A dummy file path is defined for the output of proc printto&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 5&lt;/strong&gt; (1.e): PRINTTO procedure is used for printing the output in the specified dummy file (_dummy).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 6&lt;/strong&gt; (1.f): The proc report code created for generating the output is executed using %unquote function in this step.&lt;br /&gt;&lt;br /&gt;%UNQUOTE is to restore normal tokenization of a value whose tokenization was altered by a previous macro quoting function. %UNQUOTE takes effect during macro execution. If the value is not unmasked before it reaches the SAS compiler, the DATA step does not compile correctly and it produces error messages.&lt;br /&gt;&lt;br /&gt;1) Execute the entire report procedure and generate an output to the specified file path “&amp;amp;dummy.”&lt;br /&gt;&lt;br /&gt;2) In report procedure we should include the following set of statements.&lt;br /&gt;&lt;br /&gt;compute before/after _page_;&lt;br /&gt;call execute('%let page = %eval(&amp;amp;page. + 1);'); /* 2.a*/&lt;br /&gt;length _XofY $&amp;amp;len.; /* 2.b. */&lt;br /&gt;_XofY = symget('page') ' of ' symget('pages');/*2.c*/&lt;br /&gt;line 'page ' _XofY $&amp;amp;len..; /* 2.d. */&lt;br /&gt;endcomp;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;3) Before/After each page of reporting the variable ‘page’ is calculated and so when we exit from this procedure the macro variable ‘page’ has the value of total number of pages. (i.e. The initial value of ‘page’ is ‘0’ when it comes to the first page of file then it becomes ‘1’ and so on, see step (2.a)) &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;4) We get the total pages of report in variable ‘page’.Here the variable “pages” is not initialized. So symget (‘pages’) will return nothing&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;Step 7&lt;/strong&gt; (1.g): Exit the printto procedure and SAS reset the file path to the output window (by default).&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;strong&gt;Step 8&lt;/strong&gt; (1.h): Clear the dummy file.&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;strong&gt;Step 9&lt;/strong&gt; (1.i): Assign the current value of variable ‘page’ to the macro variable ‘pages’. i.e. we assign the total number of pages to the variable ‘pages’&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;strong&gt;Step 10&lt;/strong&gt; (1.j): Reset the variable ‘page’ to ‘0’.&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;strong&gt;Step 11&lt;/strong&gt; (1.k): Calculate the approximate length of the variable ‘_XofY’ based on current value of ‘pages’.&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;strong&gt;Step 12&lt;/strong&gt; (1.l): Re-execute the report procedure for getting the output as per the requirement. &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;1) Execute the entire report procedure and generate output in the specified path given in the ods rtf file statement.&lt;/div&gt;&lt;div align="justify"&gt;2) This time the compute block call the ‘page’ value as the current page and ‘pages’ as the total number of pages. So we will get the page number as Page X of Y form.&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;The following example illustrates the above macro.Here we get page X of Y on the top of each page.&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;data one;&lt;br /&gt;do var = 1 to 100;&lt;br /&gt;output;&lt;br /&gt;end;&lt;br /&gt;run;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;%Macro Report;&lt;br /&gt;proc report data=one nowd;&lt;br /&gt;column var;&lt;br /&gt;define var / display;&lt;br /&gt;compute before _page_;/*2.a*/&lt;br /&gt;call execute('%let page = %eval(&amp;amp;page. + 1);'); /* 2.b*/&lt;br /&gt;length _XofY $&amp;amp;len.; /* 2.c. */&lt;br /&gt;_XofY = symget('page') ' of ' symget('pages');/*2.d*/&lt;br /&gt;line 'page ' _XofY $&amp;amp;len..; /* 2.e. */&lt;br /&gt;endcomp;&lt;br /&gt;run;&lt;br /&gt;%Mend Report;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;/* example usage */&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;options linesize=64 nonumber nodate;&lt;br /&gt;%pageXofY(report=%nrstr(%Report));&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-8947340655238624146?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/8947340655238624146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=8947340655238624146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8947340655238624146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8947340655238624146'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/05/understanding-pagexof-y-macro-compiled.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-4437747939981627519</id><published>2008-04-16T05:11:00.000-07:00</published><updated>2008-04-20T22:14:18.806-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='ODS'/><category scheme='http://www.blogger.com/atom/ns#' term='Header'/><category scheme='http://www.blogger.com/atom/ns#' term='Footer'/><title type='text'></title><content type='html'>&lt;div&gt;&lt;/div&gt;&lt;span style="font-size:180%;"&gt;&lt;strong style="font-family: arial;"&gt;Different ODS Footers&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;p  style="text-align: justify;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;If suppose we have ten observations and we are required to present the output such that the observation are distributed on different pages depending on the value of the variable “order”. Also the different pages need to have different footers , footers being presented in the body of the document.As a first step, a variable "page" is created which represents the page number corresponding to the observation in the dataset as described below.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; color: rgb(0, 0, 153);font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;data  catval1;&lt;br /&gt;set catval end=eof;&lt;br /&gt;  if order le 4 then page=1;&lt;br /&gt; else if 5 le order le 7 then page=2;&lt;br /&gt; else if order ge  8 then page=3;&lt;br /&gt;run;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;The footers can be presented in the body of the document using compute before /after statements in proc report as below.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; color: rgb(0, 0, 153);font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;  proc report data= catval1 &lt;options&gt;;&lt;br /&gt;column order var1 var2   ;&lt;br /&gt;………………………………&lt;br /&gt;………………………………&lt;br /&gt;Other SAS statements;&lt;br /&gt;       …………………………………&lt;br /&gt;       ………………………………..&lt;br /&gt;compute before page;&lt;br /&gt; If page=1 then footer= "\li75 @ Subjects who select more than one race” ;&lt;br /&gt; If page=2 then footer=" ";&lt;br /&gt; If page=3 then footer="\li75 + BMI = Weight (kg) / [Height (m)]^2";&lt;br /&gt;endcomp;&lt;br /&gt;&lt;br /&gt;/*here _page_ is the  SAS generated variable */&lt;br /&gt;&lt;br /&gt;compute after _page_ / style=[just=l protectspecialchars=off];&lt;br /&gt; footer11= footer;&lt;br /&gt; footer12="\li75 # Overall p-value for continuous variables “&lt;br /&gt; footer13="\li for Categorical variables from CMH general association test";&lt;br /&gt; line @1 footer11 $300.;&lt;br /&gt; line @1 footer12 $300.;&lt;br /&gt; line @1 footer13 $300.;&lt;br /&gt;endcomp;&lt;br /&gt;&lt;/options&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; color: rgb(0, 0, 153);font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;/* this will give different footers in each page*/&lt;br /&gt;by page;&lt;br /&gt;run;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;The first page will contain the following footers&lt;br /&gt;&lt;br /&gt;@ Subjects who select more than one race&lt;br /&gt;# Overall p-value for continuous variables&lt;br /&gt;for Categorical variables from CMH general association test&lt;br /&gt;&lt;br /&gt;The second page will contain the following footers&lt;br /&gt;&lt;br /&gt;# Overall p-value for continuous variables&lt;br /&gt;for Categorical variables from CMH general association test&lt;br /&gt;&lt;br /&gt;The third page will contain the following footers&lt;br /&gt;+ BMI = Weight (kg) / [Height (m)]^2&lt;br /&gt;# Overall p-value for continuous variables&lt;br /&gt;for Categorical variables from CMH general association test&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-4437747939981627519?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/4437747939981627519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=4437747939981627519' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4437747939981627519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/4437747939981627519'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/04/different-footers-on-different-pages.html' title=''/><author><name>Sreedevi Menon</name><uri>http://www.blogger.com/profile/15885452678106359423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2591489592799039853</id><published>2008-04-16T03:27:00.000-07:00</published><updated>2008-10-06T02:52:08.711-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SAS'/><category scheme='http://www.blogger.com/atom/ns#' term='Note'/><category scheme='http://www.blogger.com/atom/ns#' term='Proc Report'/><title type='text'></title><content type='html'>&lt;span style="font-family:verdana;font-size:180%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;NOTE: Groups are not created because the usage of parameter is DISPLAY.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;strong style="FONT-FAMILY: arial"&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: justify;font-family:verdana;" &gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;A SAS dataset named subject is created. The SAS code for the creation of the dataset subject is as follows:&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;data subject;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;input patid name$ sex$ visit $ parameter$ result $;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;cards;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0101 lisha f Screening weight 65&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0101 lisha f Screening height 150&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0101 lisha f Visit1 weight 66&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0101 lisha f Visit1 height 150&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0102 manu m Screening weight 80&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0102 manu m Screening height 165&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0102 manu m Visit1 weight 80&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;0102 manu m Visit2 height 165&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;run;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR: rgb(0,0,0);font-size:100%;" &gt;The aim is to summarize the values across a single observation. The template is as follows:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="COLOR: rgb(0,0,0);font-family:verdana;font-size:100%;"  &gt;When using the following code, the output is generated but a Note is also generated in the log as mentioned below: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="COLOR: rgb(0,0,0);font-family:verdana;font-size:100%;"  &gt;proc report data=subject nowindows;&lt;br /&gt;column patid name sex visit parameter result;&lt;br /&gt;define patid/"Patient Number" group;&lt;br /&gt;define name/"Subject Number" group;&lt;br /&gt;define sex/"Sex" group;&lt;br /&gt;define visit/"Visit" group;&lt;br /&gt;define parameter/"Test" display;&lt;br /&gt;define result/"Values" display;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;The SAS log will look like as follows::&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3 data subject;&lt;br /&gt;4 input patid name$ sex$ visit $ parameter$ result $;&lt;br /&gt;5 cards;&lt;br /&gt;NOTE: The data set WORK.SUBJECT has 8 observations and 6 variables.&lt;br /&gt;NOTE: DATA statement used:&lt;br /&gt;real time 0.01 seconds&lt;br /&gt;cpu time 0.00 seconds&lt;br /&gt;14 ;&lt;br /&gt;15 run;&lt;br /&gt;16&lt;br /&gt;17 proc report data=subject nowindows;&lt;br /&gt;18 column patid name sex visit parameter result;&lt;br /&gt;19 define patid/"Patient Number" group;&lt;br /&gt;20 define name/"Subject Number" group;&lt;br /&gt;21 define sex/"Sex" group;&lt;br /&gt;22 define visit/"Visit" group;&lt;br /&gt;23 define parameter/"Test" display;&lt;br /&gt;24 define result/"Values" display;&lt;br /&gt;25 run;&lt;br /&gt;NOTE: Groups are not created because the usage of parameter is DISPLAY.&lt;br /&gt;NOTE: There were 8 observations read from the data set WORK.SUBJECT.&lt;br /&gt;NOTE: PROCEDURE REPORT used:&lt;br /&gt;real time 0.01 seconds&lt;br /&gt;cpu time 0.01 seconds&lt;br /&gt;&lt;/span&gt;&lt;div style="TEXT-ALIGN: justify;font-family:verdana;" &gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="COLOR: rgb(0,0,0);font-family:verdana;font-size:100%;"  &gt;A note is produced in the SAS log “NOTE: Groups are not created because the usage of parameter is DISPLAY.”&lt;br /&gt;To remove this note from the log the following code should be used.&lt;br /&gt;&lt;/span&gt;&lt;div style="TEXT-ALIGN: justify;font-family:verdana;" &gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="COLOR: rgb(0,0,0);font-family:verdana;font-size:100%;"  &gt;proc report data=subject nowindows;&lt;br /&gt;column patid name sex visit parameter result;&lt;br /&gt;define patid/"Patient Number" order;&lt;br /&gt;define name/"Subject Number" order;&lt;br /&gt;define sex/"Sex" order;&lt;br /&gt;define visit/"Visit" order;&lt;br /&gt;define parameter/"Test" display;&lt;br /&gt;define result/"Values" display;&lt;br /&gt;run;&lt;br /&gt;&lt;/span&gt;&lt;div style="TEXT-ALIGN: justify;font-family:verdana;" &gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="COLOR: rgb(0,0,0);font-family:verdana;font-size:100%;"  &gt;The log is generated as&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3 data subject;&lt;br /&gt;4 input patid name$ sex$ visit $ parameter$ result $;&lt;br /&gt;5 cards;&lt;br /&gt;NOTE: The data set WORK.SUBJECT has 8 observations and 6 variables.&lt;br /&gt;NOTE: DATA statement used:&lt;br /&gt;real time 0.00 seconds&lt;br /&gt;cpu time 0.00 seconds&lt;br /&gt;14 ;&lt;br /&gt;15 run;&lt;br /&gt;16&lt;br /&gt;17 proc report data=subject nowindows;&lt;br /&gt;18 column patid name sex visit parameter result;&lt;br /&gt;19 define patid/"Patient Number" order;&lt;br /&gt;20 define name/"Subject Number" order;&lt;br /&gt;21 define sex/"Sex" order;&lt;br /&gt;22 define visit/"Visit" order;&lt;br /&gt;23 define parameter/"Test" display;&lt;br /&gt;24 define result/"Values" display;&lt;br /&gt;25 run;&lt;br /&gt;NOTE: There were 8 observations read from the data set WORK.SUBJECT.&lt;br /&gt;NOTE: PROCEDURE REPORT used:&lt;br /&gt;real time 0.00 seconds&lt;br /&gt;cpu time 0.00 seconds &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:100%;"&gt;&lt;span style="COLOR: rgb(0,0,0)"&gt;The SAS log is now free of the notes, errors and warnings. Instead of using the group variable, use order with display in the define statement&lt;/span&gt;. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2591489592799039853?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2591489592799039853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2591489592799039853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2591489592799039853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2591489592799039853'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/04/avoiding-note-groups-are-not-created.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8903133241014486891</id><published>2008-04-16T02:20:00.000-07:00</published><updated>2008-04-17T02:50:26.381-07:00</updated><title type='text'></title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;&lt;strong&gt;Applying Cochran-Mantel–Haenzel (CMH) general association test&lt;/strong&gt;&lt;/span&gt;&lt;p&gt; &lt;/p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;em&gt;Compiled by &lt;a href="mailto:rupesh@kreara.com"&gt;Rupesh R&lt;/a&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;Here the objective is to determine the general association between categorical variables subject and ranking for each emotion.&lt;br /&gt;&lt;br /&gt;The CMH general association test is applied for this purpose. Proc freq is as described below to carry out the test. Proc freq generates p-values corresponding to each emotion and the results are outputted to the dataset hypnosis1.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;The dataset is created as follows&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;data hypnosis;&lt;br /&gt;input subject emotion $ ranking @@;&lt;br /&gt;cards;&lt;br /&gt;1 fear 4 1 joy 3 1 sadness 1 1 calmness 2&lt;br /&gt;2 fear 4 2 joy 2 2 sadness 3 2 calmness 1&lt;br /&gt;3 fear 3 3 joy 2 3 sadness 4 3 calmness 1&lt;br /&gt;4 fear 4 4 joy 1 4 sadness 2 4 calmness 3&lt;br /&gt;5 fear 1 5 joy 4 5 sadness 3 5 calmness 2&lt;br /&gt;6 fear 4 6 joy 3 6 sadness 2 6 calmness 1&lt;br /&gt;7 joy 4 7 joy 1 7 sadness 2 7 calmness 3&lt;br /&gt;8 joy 3 8 joy 4 8 sadness 2 8 calmness 1&lt;br /&gt;;&lt;br /&gt;run;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;The following code is used to carry out the analysis. The option ‘cmh’ in the ‘tables’ statement carries out the test. The option ‘cmhga’ presents the P-value for CMH General Association without a warning in the log.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;proc sort;&lt;br /&gt;by emotion;&lt;br /&gt;run; &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;proc freq;&lt;br /&gt;tables subject*ranking / cmh;&lt;br /&gt;by emotion;&lt;br /&gt;output out=hypnosis1 cmhga;&lt;br /&gt;run;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;The dataset hypnosis1 is obtained as follows&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;emotion&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;_CMHGA_&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;DF_CMHGA&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;P_CMHGA&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;calmness&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;14&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;14&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;0.449711056 &lt;/span&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;fear&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;10&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;10&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;0.440493285&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;joy&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;20.25&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;21&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;0.505479124&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;sadness&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;21&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;21&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;0.458944209&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;In the dataset p_cmhga will be labeled as ’ P-value for CMH General Association’; df_cmhga as “DF for CMH General Association” and _cmhga_ as “CMH General Association” . &lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-8903133241014486891?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/8903133241014486891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=8903133241014486891' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8903133241014486891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8903133241014486891'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/04/applying-cochran-mantelhaenzel-cmh.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-742352279871186576</id><published>2008-04-15T23:23:00.000-07:00</published><updated>2008-04-17T02:49:57.067-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data presentation'/><title type='text'></title><content type='html'>&lt;span style=";font-family:verdana;font-size:130%;"  &gt;&lt;strong&gt;Using just=dec for alignment of decimals&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:78%;"&gt;Compiled by &lt;/span&gt;&lt;a href="mailto:prajitha@kreara.com"&gt;&lt;span style="font-size:78%;"&gt;Prajitha Nair&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; &lt;/em&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style=";font-family:verdana;font-size:78%;"  &gt;We have a column in proc report with either 1 or 2 digits right of the decimal and an uncertain number of digits to the left. For enhanced output, the values have to be presented such that they are aligned with respect to the decimal point.&lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style=";font-family:verdana;font-size:78%;"  &gt;When the display value contains a decimal point, we can use just=dec to align the numbers directly. The JUST=DEC option can be used to align the decimal points in the values in a column&lt;br /&gt;&lt;br /&gt;define colname / display "Column/header" style=[just=dec];&lt;br /&gt;&lt;br /&gt;where colname is the name of the column name as specified in the SAS.&lt;br /&gt;&lt;br /&gt;If we are using ods rtf tags then we can use the pretext option for the purpose&lt;br /&gt;&lt;br /&gt;define colname /display “Column Header” &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style=";font-family:verdana;font-size:78%;"  &gt;&lt;span style="font-size:78%;"&gt;&lt;span style=";font-family:verdana;font-size:100%;"  &gt;style(column)={pretext="\qj\tqdec\tx1200" protectspecialchars=off just=center};&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-742352279871186576?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/742352279871186576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=742352279871186576' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/742352279871186576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/742352279871186576'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/04/using-justdec-for-alignment-of-decimals.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8893666025263530401</id><published>2008-04-15T23:11:00.000-07:00</published><updated>2008-04-17T02:49:18.512-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;div&gt;&lt;/div&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;&lt;strong&gt;Extracting Engine and Path name of the code&lt;/strong&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:78%;"&gt;&lt;br /&gt;Compiled by &lt;a href="mailto:%20prajitha@kreara.com"&gt;Prajitha Nair&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;The input parameter in the macro will be the name of the SAS file whose path is to be determined.&lt;br /&gt;&lt;br /&gt;%macro PathbyName(progName);&lt;br /&gt;&lt;br /&gt;%global fullPath fullPath1 engine;&lt;br /&gt;%if %index(%upcase(&amp;amp;progName),.SAS) eq 0 %then&lt;br /&gt;%let progName=&amp;amp;progName..sas;&lt;br /&gt;&lt;br /&gt;proc sql noprint;&lt;br /&gt;select xpath into :fullPath&lt;br /&gt;from dictionary.extfiles where&lt;br /&gt;index(upcase(xpath),"%upcase(&amp;amp;progName) " ) gt 0 ;&lt;br /&gt;select setting into :engine from sashelp.voption&lt;br /&gt;where optname="ENGINE";&lt;br /&gt;quit;&lt;br /&gt;&lt;br /&gt;%let engine = %trim(&amp;amp;engine);&lt;br /&gt;%put engine = &amp;engine;&lt;br /&gt;%let fullpath = %trim(&amp;amp;fullPath);&lt;br /&gt;&lt;br /&gt;%put fullpath = &amp;fullPath;&lt;br /&gt;&lt;br /&gt;%mend PathbyName;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-8893666025263530401?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/8893666025263530401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=8893666025263530401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8893666025263530401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/8893666025263530401'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/04/extracting-engine-and-path-name-of-code.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-435815325434812403</id><published>2008-04-15T22:55:00.000-07:00</published><updated>2008-04-17T02:48:46.152-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='macro'/><title type='text'></title><content type='html'>&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;&lt;strong&gt;Accessing the current working directory where the file containing the SAS code is stored&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;em&gt;Compiled by &lt;a href="mailto:prajitha@kreara.com"&gt;Prajitha Nair&lt;/a&gt;&lt;/em&gt;&lt;/span&gt;&lt;a href="mailto:prajitha@kreara.com"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Let the SAS editor containing the code be KR-PH-XXX-SAS-Init.sas and it is stored in a folder named SAS Programs_Final. &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;The following %let statements assigns the folder and editor names to macro variables pgmfld and pgm respectively. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;%let pgmfld = SAS Programs_Final; /*Folder in which SAS code is stored*/&lt;br /&gt;%let pgm= KR-PH-XXX-SAS-Init.sas; /*Name of the program editor*/ &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;The following macro is then used to extract the path of the editor from sashelp.vextfl and determine the path of the folder as “dir1” and of the editor as “dir2”. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;%macro filePath;&lt;br /&gt;%global fpath maxRef;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;proc sql noprint;&lt;br /&gt;select xpath into :fPath&lt;br /&gt;from sashelp.vextfl where xpath ? "&amp;amp;pgm";&lt;br /&gt;quit; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;%let fpath = %trim(&amp;amp;fpath);&lt;br /&gt;%put &amp;fpath;&lt;br /&gt;%global dir1 dir2 pgm1 pgmfld1;&lt;br /&gt;%let pgm1 =%trim(&amp;amp;pgm);&lt;br /&gt;%let pgmfld1= %trim(&amp;amp;pgmfld); &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;data _null_;&lt;br /&gt;x=length("&amp;amp;fpath")-length("&amp;amp;pgm1");&lt;br /&gt;y=length("&amp;amp;fpath")-length("&amp;amp;pgm1")-length("&amp;amp;pgmfld1")-1;&lt;br /&gt;call symput("dir2" ,trim(substr("&amp;amp;fpath",1,x)));&lt;br /&gt;call symput("dir1" ,trim(substr("&amp;amp;fpath",1,y)));&lt;br /&gt;run; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;%mend filePath; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;This macro helps in determining the path of the code and enables the code to be executed in any computer provided the SAS code is saved within a folder and the naming&lt;/span&gt; conventions are followed as above. &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-435815325434812403?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/435815325434812403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=435815325434812403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/435815325434812403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/435815325434812403'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/04/accessing-current-working-directory.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2186812374651941874</id><published>2008-03-14T04:10:00.000-07:00</published><updated>2008-12-09T11:03:20.197-08:00</updated><title type='text'></title><content type='html'>&lt;span style="font-size:180%;"&gt;&lt;span style="font-family: arial; font-weight: bold;"&gt;Hiring&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_OPgks12Yxzc/R9pdkOyJx-I/AAAAAAAAAO4/PHHB-KZhLKU/s1600-h/jobs.GIF"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_OPgks12Yxzc/R9pdkOyJx-I/AAAAAAAAAO4/PHHB-KZhLKU/s200/jobs.GIF" alt="" id="BLOGGER_PHOTO_ID_5177553598640932834" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2186812374651941874?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2186812374651941874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2186812374651941874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2186812374651941874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2186812374651941874'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/03/blog-post.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_OPgks12Yxzc/R9pdkOyJx-I/AAAAAAAAAO4/PHHB-KZhLKU/s72-c/jobs.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-3191427009220328329</id><published>2008-02-15T05:27:00.000-08:00</published><updated>2008-03-14T04:16:15.068-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;&lt;span style="font-size:130%;"&gt;New Abode&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style=";font-family:arial;font-size:78%;"  &gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;Finally after three years of exemplary hard work of all the present &amp;amp; past employees of KREARA, our dream of a beautiful new office came to frution on January 27th 2008. Thanks to all our clients and employees who have helped us make this dream come true&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style=";font-family:arial;font-size:78%;"  &gt;&lt;span style="font-family:verdana;"&gt;&lt;a href="http://picasaweb.google.com/anoopinte/Inauguration"&gt;&lt;img src="http://lh6.google.com/anoopinte/R7VzpebUdAE/AAAAAAAAAL8/_M2mEL2mJbY/s160-c/Inauguration.jpg" style="margin: 1px 0pt 0pt 4px; width: 155px; height: 155px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style=";font-family:arial;font-size:78%;"  &gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-3191427009220328329?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/3191427009220328329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=3191427009220328329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3191427009220328329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/3191427009220328329'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2008/02/new-abode-finally-after-three-years-of.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-5578073133174631018</id><published>2007-11-23T03:41:00.000-08:00</published><updated>2007-11-23T03:43:38.171-08:00</updated><title type='text'></title><content type='html'>&lt;span style=";font-family:arial;font-size:180%;"  &gt;&lt;span style="font-weight: bold;"&gt;Randomisation - Data sets&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div  style="text-align: justify;font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;Compiled by &lt;a href="mailto:info@kreara.com"&gt;Prajitha Nair&lt;/a&gt;&lt;br /&gt;Here is a piece of code that will generate mock randomisation list that the programmers could use to generate the outputs before unblinding the data&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*Creating the dummy dataset for randomisation*/&lt;br /&gt;&lt;br /&gt;Proc format;&lt;br /&gt;value treat 1='Test'&lt;br /&gt;            2='Reference'&lt;br /&gt;            3='Placebo';&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;/*Randomly assigning medical kit number to treatments*/&lt;br /&gt;proc plan seed=111605;&lt;br /&gt;factors medkit_no=220 random block=1 random/noprint;&lt;br /&gt;output out=first;&lt;br /&gt;treatments treat=3 cyclic (1 2 3 );&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc sort data=first out=rand_trt;&lt;br /&gt;by medkit_no;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;data rand_trt(keep=medkitno treat);&lt;br /&gt;set rand_trt;&lt;br /&gt;medkitno=put(medkit_no, z3.);&lt;br /&gt;format treat treat.;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*merge to get the randomised patient included in the study*/&lt;br /&gt;proc sort data=rand_trt;&lt;br /&gt;by medkitno;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;proc sort data=medkit_alloc;/*sas dataset imported from mysql*/&lt;br /&gt;by medkitno;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;data formo.randl;&lt;br /&gt;merge rand_trt(in=a)  medkit_alloc(in=b);&lt;br /&gt;by medkitno;&lt;br /&gt;run;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-5578073133174631018?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/5578073133174631018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=5578073133174631018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5578073133174631018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/5578073133174631018'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2007/11/randomisation-data-sets-compiled-by.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-7311161254220172448</id><published>2007-10-11T04:05:00.001-07:00</published><updated>2008-04-15T23:18:44.018-07:00</updated><title type='text'></title><content type='html'>&lt;span style="FONT-WEIGHT: bold;font-size:180%;" &gt;&lt;span style="font-family:arial;"&gt;Read only access to SAS Data sets&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Compiled by &lt;a href="mailto:info@kreara.com"&gt;Soumya Gopinath&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p class="MsoNormal"  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:10;"&gt;Lock the entire SAS data library by using the option Access=Readonly.&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:10;"&gt;Libname &lt;span style="FONT-STYLE: italic"&gt;libref path&lt;/span&gt; access= Readonly;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-7311161254220172448?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/7311161254220172448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=7311161254220172448' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/7311161254220172448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/7311161254220172448'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2007/10/lock-sas-data-sets-compiled-by-soumya.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-2683590958809180839</id><published>2007-10-11T04:00:00.000-07:00</published><updated>2007-10-11T04:04:30.745-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;span style="font-family: arial;"&gt;Silly Proc Report !&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Compiled by &lt;a href="mailto:info@kreara.com"&gt;Soumya Gopinath&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;An annoying period (.) appeared in the p-value column when the break statement was applied in proc REPORT. How can we eliminate this period (.) from the report (rtf file)?&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;Firstly, the data type of p-value variable is numeric then the break option will replace the missing values with a period. To avoid this situation change the data type of p-value variable to character. Then the missing values will be replaced by blank space only.&lt;br /&gt;Eg:&lt;br /&gt;/* Create dataset with 5 variables and 8 observations*/&lt;br /&gt;data test;&lt;br /&gt;input usubjid $ parameter $ visit $ trtgrp result;&lt;br /&gt;    datalines;&lt;br /&gt;001 FEV1 VISIT1 1 2.34&lt;br /&gt;002 FEV1 VISIT1 3 0.98&lt;br /&gt;001 FEV1 VISIT4 1 2.04&lt;br /&gt;002 FEV1 VISIT4 3 1.98&lt;br /&gt;001 FVC VISIT1 1 2.34&lt;br /&gt;002 FVC VISIT1 3 2.98&lt;br /&gt;001 FVC VISIT4 1 2.44&lt;br /&gt;002 FVC VISIT4 3 1.99&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;/* Carrying out ANOVA*/&lt;br /&gt;ods output ModelAnova= test1;&lt;br /&gt;proc glm data=test;&lt;br /&gt; by parameter visit;&lt;br /&gt; class trtgrp;&lt;br /&gt; model result=trtgrp/ss3;&lt;br /&gt; lsmeans trtgrp/adjust=t pdiff;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;data test2;&lt;br /&gt;    set test1;&lt;br /&gt;    test=' '; /* dummy variable*/&lt;br /&gt;    keep parameter visit probf Test;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;/* Specify the output location*/&lt;br /&gt;&lt;br /&gt;ods rtf file="D:\soumya\test.rtf" style=styles.listingstyle;&lt;br /&gt;&lt;br /&gt;proc report data = test2 nowd spacing = 2 headline headskip split = '*'          missing;&lt;br /&gt;    column parameter visit test,(probf);&lt;br /&gt;    define parameter / group order=data left 'Parameter' ;&lt;br /&gt;    define visit / display  left 'Timepoint' ;&lt;br /&gt;    define Test / across  center "Test" ;&lt;br /&gt;    define probf/ display  left "p-value";&lt;br /&gt;    break after parameter/summarize suppress;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;ods _all_ close; /* Closing all ODS outputs statements*/&lt;br /&gt;&lt;br /&gt;In the above example probf is a numeric variable within the across variable ‘test’. So in the output a period occurred when the break statement active. Eliminate this we add one more statement in the dataset Test2.&lt;br /&gt;probf1=put (probf, pvalue6.); /* for converting numeric type to                                                character*/&lt;br /&gt;&lt;br /&gt;Generally we can say that the numeric variables within the across variable in REPORT procedure should make a period in the blank space and to avoid this convert numeric variables to character by using PUT function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18633351-2683590958809180839?l=kreara.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kreara.blogspot.com/feeds/2683590958809180839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18633351&amp;postID=2683590958809180839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2683590958809180839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18633351/posts/default/2683590958809180839'/><link rel='alternate' type='text/html' href='http://kreara.blogspot.com/2007/10/silly-proc-report-compiled-by-soumya.html' title=''/><author><name>Oracle</name><uri>http://www.blogger.com/profile/01297978606314348662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_OPgks12Yxzc/SkCleuym06I/AAAAAAAAAdA/vnIc-zziDbg/S220/anoop.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18633351.post-8357718989480015013</id><published>2007-10-11T03:51:00.000-07:00</published><updated>2007-10-11T04:00:00.682-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;span style="font-family:arial;"&gt;SAS with mySQL&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;s
