<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Statskom</title>
	<atom:link href="http://statskom.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://statskom.com</link>
	<description>Clinical programming</description>
	<lastBuildDate>Thu, 05 Oct 2017 09:04:02 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>Clinical Metadata &#8211; PhUSE conference paper abstract</title>
		<link>http://statskom.com/508/</link>
		<comments>http://statskom.com/508/#comments</comments>
		<pubDate>Thu, 05 Oct 2017 08:55:57 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=508</guid>
		<description><![CDATA[<p>Clinical Metadata will be presenting their Clinical Metadata Repository at the PhUse conference in Edinburgh next week. Read the abstract below or find it on the PhUSE wiki  Abstract Metadata is now an integral part of the clinical trial process. CDISC&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/508/">Clinical Metadata &#8211; PhUSE conference paper abstract</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a title="Clinical Metadata Repository" href="https://www.clinicalmetadata.com">Clinical Metadata</a> will be presenting their Clinical Metadata Repository at the PhUse conference in Edinburgh next week. Read the abstract below or find it on the <a title="Clinical Metadata - PhUSE Wiki" href="http://www.phusewiki.org/wiki/index.php?title=Clinical_Metadata">PhUSE wiki </a></p>
<p><span style="font-size: large;">Abstract</span></p>
<p>Metadata is now an integral part of the clinical trial process. CDISC provides the framework for this metadata and Define.xml provides a way to share the final product. There is, however, no standard way to efficiently collect, manage and collaborate in the process of creating metadata.</p>
<p><a title="Clinical Metadata - Metadata management with a CDISC mindset" href="https://www.clinicalmetadata.com">Clinical Metadata </a>provides an end-to-end metadata management solution, including CDASH, SDTM, ADaM and output metadata. It generates SAS code fragments and submission deliverables, automating repetitive programming tasks, accelerating and simplifying the development process. Clinical Metadata is built as a web-based single page application, using the latest technologies and practices, and is securely hosted in the Amazon Web Services cloud. Its visualisation tools present the user with a high-level metadata overview and allows them to drill down into individual metadata fragments. In-built standards management, traceability and impact analysis tools help users understand the relationships between each metadata element as well as encourage Agile and collaborative ways of working.</p>
<div id="attachment_509" style="width: 310px" class="wp-caption alignnone"><a href="http://statskom.com/wp-content/uploads/2017/10/phuse-logo.jpg"><img class="size-medium wp-image-509" alt="PhUse Conference" src="http://statskom.com/wp-content/uploads/2017/10/phuse-logo-300x133.jpg" width="300" height="133" /></a><p class="wp-caption-text">PhUse Conference</p></div>
<p>The post <a rel="nofollow" href="http://statskom.com/508/">Clinical Metadata &#8211; PhUSE conference paper abstract</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/508/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clinical Metadata at Phuse next week</title>
		<link>http://statskom.com/clinical-metadata-phuse-next-week/</link>
		<comments>http://statskom.com/clinical-metadata-phuse-next-week/#comments</comments>
		<pubDate>Mon, 02 Oct 2017 15:03:08 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Clinical Metadata]]></category>
		<category><![CDATA[CDISC]]></category>
		<category><![CDATA[Data standards]]></category>
		<category><![CDATA[SAS]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=505</guid>
		<description><![CDATA[<p>Clinical Metadata will be presenting their metadata and projects standards tool at the PhUse conference in Edinburgh on Tuesday 10th October. Join them to learn how Clinical Metadata can help the pharmaceutical industry manage its clinical trial metadata and data&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/clinical-metadata-phuse-next-week/">Clinical Metadata at Phuse next week</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a title="Clinical Metadata - Metadata management with a CDISC mindset" href="https://www.clinicalmetadata.com" target="_blank">Clinical Metadata</a> will be presenting their metadata and projects standards tool at the PhUse conference in Edinburgh on Tuesday 10th October.</p>
<p>Join them to learn how Clinical Metadata can help the pharmaceutical industry manage its clinical trial metadata and data standards. The tool also helps users obtain CDISC compliance and accelerates the reporting process by generating SAS code and submission deliverables.</p>
<p><a href="http://statskom.com/wp-content/uploads/2017/10/clinical-metadata.jpg"><img class="alignnone size-medium wp-image-506" alt="clinical metadata" src="http://statskom.com/wp-content/uploads/2017/10/clinical-metadata-300x164.jpg" width="300" height="164" /></a></p>
<p>The post <a rel="nofollow" href="http://statskom.com/clinical-metadata-phuse-next-week/">Clinical Metadata at Phuse next week</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/clinical-metadata-phuse-next-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clinical Metadata can help you manage your clinical trial metadata and achieve CDISC compliance</title>
		<link>http://statskom.com/clinical-metadata-can-help-manage-clinical-trial-metadata-achieve-cdisc-compliance/</link>
		<comments>http://statskom.com/clinical-metadata-can-help-manage-clinical-trial-metadata-achieve-cdisc-compliance/#comments</comments>
		<pubDate>Wed, 20 Sep 2017 08:44:45 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[CDISC]]></category>
		<category><![CDATA[Clinical Metadata]]></category>
		<category><![CDATA[Data standards]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=502</guid>
		<description><![CDATA[<p>Clinicalmetadata.com is a new web-based tool, built of the latest technologies, designed to help you manage your clinical trial metadata, data standards and achieve CDISC compliance. The tool also generates SAS code and submission deliverables including define.xml and annotated crfs. Visit&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/clinical-metadata-can-help-manage-clinical-trial-metadata-achieve-cdisc-compliance/">Clinical Metadata can help you manage your clinical trial metadata and achieve CDISC compliance</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a title="Clinical Metadata" href="http://www.clinicalmetadata.com" target="_blank">Clinicalmetadata.com</a> is a new web-based tool, built of the latest technologies, designed to help you manage your clinical trial metadata, data standards and achieve CDISC compliance. The tool also generates SAS code and submission deliverables including define.xml and annotated crfs. Visit <a title="Clinical Metadata" href="http://www.clinicalmetadata.com" target="_blank">ClinicalMetadata.com</a> to learn more.</p>
<p>The post <a rel="nofollow" href="http://statskom.com/clinical-metadata-can-help-manage-clinical-trial-metadata-achieve-cdisc-compliance/">Clinical Metadata can help you manage your clinical trial metadata and achieve CDISC compliance</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/clinical-metadata-can-help-manage-clinical-trial-metadata-achieve-cdisc-compliance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phastar SAS art competition</title>
		<link>http://statskom.com/phastar-sas-art-competition-2/</link>
		<comments>http://statskom.com/phastar-sas-art-competition-2/#comments</comments>
		<pubDate>Mon, 21 Dec 2015 17:57:23 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=497</guid>
		<description><![CDATA[<p>Statskom&#8217;s lead programmer Andrew Ndikom came first in Phastar&#8217;s 2015 SAS art competition, view the results here.</p><p>The post <a rel="nofollow" href="http://statskom.com/phastar-sas-art-competition-2/">Phastar SAS art competition</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Statskom&#8217;s lead programmer Andrew Ndikom came first in Phastar&#8217;s 2015 SAS art competition, view the results <a title="Phastar SAS art competition" href="http://www.phastar.co.uk/Latest-News/sasart15.html">here</a>.</p>
<p><a href="http://statskom.com/wp-content/uploads/2015/12/phastarart2015andrewndikom.jpeg"><img class="alignnone size-medium wp-image-498" alt="phastarart2015andrewndikom" src="http://statskom.com/wp-content/uploads/2015/12/phastarart2015andrewndikom-300x225.jpeg" width="300" height="225" /></a></p>
<p>The post <a rel="nofollow" href="http://statskom.com/phastar-sas-art-competition-2/">Phastar SAS art competition</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/phastar-sas-art-competition-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NYC Marathon Statistical Analysis</title>
		<link>http://statskom.com/nyc-marathon-statistical-analysis/</link>
		<comments>http://statskom.com/nyc-marathon-statistical-analysis/#comments</comments>
		<pubDate>Thu, 15 Oct 2015 18:39:24 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Data analysis]]></category>
		<category><![CDATA[marathon]]></category>
		<category><![CDATA[running]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=494</guid>
		<description><![CDATA[<p>Read runningshoesguru.com article exploring New York City Marathon data, with data analysis provided by Statskom here: http://www.runningshoesguru.com/2015/10/nyc-marathon-30-years-of-results-analyzed/</p><p>The post <a rel="nofollow" href="http://statskom.com/nyc-marathon-statistical-analysis/">NYC Marathon Statistical Analysis</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Read <a href="runningshoesguru.com">runningshoesguru.com</a> article exploring New York City Marathon data, with data analysis provided by Statskom here: <a href="http://www.runningshoesguru.com/2015/10/nyc-marathon-30-years-of-results-analyzed/">http://www.runningshoesguru.com/2015/10/nyc-marathon-30-years-of-results-analyzed/</a></p>
<p>The post <a rel="nofollow" href="http://statskom.com/nyc-marathon-statistical-analysis/">NYC Marathon Statistical Analysis</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/nyc-marathon-statistical-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phastar SAS Art Competition</title>
		<link>http://statskom.com/phastar-sas-art-competition/</link>
		<comments>http://statskom.com/phastar-sas-art-competition/#comments</comments>
		<pubDate>Sat, 03 Jan 2015 20:25:08 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SAS]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=481</guid>
		<description><![CDATA[<p>Statskom&#8217;s Lead Programmer Andrew Ndikom came second in Phastar&#8217;s SAS Art Competition. http://www.phastar.co.uk/Latest-News/sasartresults.html</p><p>The post <a rel="nofollow" href="http://statskom.com/phastar-sas-art-competition/">Phastar SAS Art Competition</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Statskom&#8217;s Lead Programmer Andrew Ndikom came second in Phastar&#8217;s SAS Art Competition. <a href="http://www.phastar.co.uk/Latest-News/sasartresults.html">http://www.phastar.co.uk/Latest-News/sasartresults.html</a></p>
<p>The post <a rel="nofollow" href="http://statskom.com/phastar-sas-art-competition/">Phastar SAS Art Competition</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/phastar-sas-art-competition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAS paper review 6-Deciphering PROC COMPARE return codes/</title>
		<link>http://statskom.com/sas-paper-review-6/</link>
		<comments>http://statskom.com/sas-paper-review-6/#comments</comments>
		<pubDate>Tue, 18 Nov 2014 22:23:35 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[SAS paper review]]></category>
		<category><![CDATA[BAND function]]></category>
		<category><![CDATA[PROC COMPARE]]></category>
		<category><![CDATA[SAS]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=475</guid>
		<description><![CDATA[<p>This week our SAS paper review looks at “Deciphering PROC COMPARE Codes: The Use of the bAND Function  ” by Joseph Hinson and Margaret Coughlin of  Merck Sharp &#38; Dohme Corp. PROC COMPARE is often seen as the gold standard for validating&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/sas-paper-review-6/">SAS paper review 6-Deciphering PROC COMPARE return codes/</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>This week our SAS paper review looks at “Deciphering PROC COMPARE Codes: The Use of the bAND Function  ” by Joseph Hinson and Margaret Coughlin of  Merck Sharp &amp; Dohme Corp.</p>
<p>PROC COMPARE is often seen as the gold standard for validating datasets within clinical trials. However the output it produces can often be extensive and manually interpreting this can be timely and error prone. This paper discusses an automated approach for examining the results of PROC COMPARE, by interpreting the return code that the procedure creates. This approach allows the user to quickly create single page summaries displaying the comparison results of multiple (i.e. more than 30) comparisons in an easy to interpret one observation per comparison format.</p>
<p>We have previously seen several papers that have explained how to utilise PROC COMPARE return codes, however what differentiates this paper is its clever use of the SAS bAND function to interpret the return codes.</p>
<p>The paper was presented at the SAS  Global Forum, 2012. Download the paper <a href="http://support.sas.com/resources/papers/proceedings12/063-2012.pdf">here</a>.</p>
<p>The post <a rel="nofollow" href="http://statskom.com/sas-paper-review-6/">SAS paper review 6-Deciphering PROC COMPARE return codes/</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/sas-paper-review-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAS-paper-review-5/</title>
		<link>http://statskom.com/sas-paper-review-5/</link>
		<comments>http://statskom.com/sas-paper-review-5/#comments</comments>
		<pubDate>Thu, 13 Nov 2014 02:12:01 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[SAS paper review]]></category>
		<category><![CDATA[CDISC]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[FDA]]></category>
		<category><![CDATA[SAS]]></category>
		<category><![CDATA[SDTM]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=471</guid>
		<description><![CDATA[<p>This week our SAS paper review looks at “TIPS AND TRICKS OF EFFICIENT SAS® PROGRAMMING FOR SDTM DATA ” by Eric Qi and Fikret Karahoda of Merck &#38; Co. The paper examines problems which can result from processing and storing large SDTM  datasets and&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/sas-paper-review-5/">SAS-paper-review-5/</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>This week our SAS paper review looks at “TIPS AND TRICKS OF EFFICIENT SAS® PROGRAMMING FOR SDTM DATA ” by Eric Qi and Fikret Karahoda of Merck &amp; Co.</p>
<p>The paper examines problems which can result from processing and storing large SDTM  datasets and how to resolve them. Although this paper was written in 2010, we feel that the issues and techniques discussed in this paper are particularly important in the light of the guidance provided by CDISC  (SDTM Implementation Guide 3.2 &#8211; section 4.1.2.9) that:</p>
<p><em>Very large transport files have become an issue for FDA to process. One of the main contributors to the large file sizes has been sponsors using the maximum length of 200 for character variables. To help rectify this situation:</em><br />
<em>• The maximum SAS Version 5 character variable length of 200 characters should not be used unless necessary.</em></p>
<p>The paper presents several methods for handling large datasets more efficiently and suggests ways in which the size of datasets can be reduced. We particularly liked the tables which show real time, CPU time and memory costs associated with different approaches, which provide a tangible illustration of the benefits of efficiency savings.</p>
<p>The paper was presented at the SESUG conference, Savannah, GA, 2010. Download the paper <a href="http://analytics.ncsu.edu/sesug/2010/PO10.Qi.pdf">here</a>.</p>
<p>The post <a rel="nofollow" href="http://statskom.com/sas-paper-review-5/">SAS-paper-review-5/</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/sas-paper-review-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAS tips &amp; tricks #11 &#8211; PROC SQL; INSERT INTO</title>
		<link>http://statskom.com/sas-tips-tricks-11-proc-sql-insert-into/</link>
		<comments>http://statskom.com/sas-tips-tricks-11-proc-sql-insert-into/#comments</comments>
		<pubDate>Thu, 06 Nov 2014 08:19:52 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[SAS Tips & Tricks]]></category>
		<category><![CDATA[INSERT INTO]]></category>
		<category><![CDATA[PROC SQL]]></category>
		<category><![CDATA[sas tips and tricks]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=465</guid>
		<description><![CDATA[<p>In this tips &#38; tricks post we look at how PROC SQL INSERT INTO provides a concise method for inserting additional rows into a dataset. Sometimes it is necessary to force additional observations into your datasets, inserting new observations into&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/sas-tips-tricks-11-proc-sql-insert-into/">SAS tips &#038; tricks #11 &#8211; PROC SQL; INSERT INTO</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>In this tips &amp; tricks post we look at how PROC SQL INSERT INTO provides a concise method for inserting additional rows into a dataset.</p>
<p>Sometimes it is necessary to force additional observations into your datasets, inserting new observations into a dataset with the Data Step usually involves either creating ta new dataset containing the new observations using a  DATALINES statement and then appending this dataset with the original, or alternatively  using multiple OUTPUT statements  within a Data Step.</p>
<h3><strong> DATALINES method</strong></h3>
<pre>DATA class_in;
  ATTRIB name LENGTH = $8 sex LENGTH = $1;
  INFILE DATALINES;
  INPUT name sex age height weight;
  DATALINES;
Andy M 30 190 100
Ben M 60 180 110
Paul M 26 170 120
;
RUN;
PROC APPEND BASE = class DATA = class_in;
RUN;</pre>
<h3><strong>Multiple OUTPUT statement method</strong></h3>
<pre>DATA class;
  SET class;
  OUTPUT;
  name = "Andy";
  sex  = "M";
  age = 30;
  height = 190;
  weight = 100;
  OUTPUT; 
  name = "Ben";
  sex  = "M";
  age = 60;
  height = 180;
  weight = 110;
  OUTPUT; 
  name = "Paul";
  sex  = "M";
  age = 26 ;
  height = 170 ;
  weight = 120;
  OUTPUT; 
RUN;</pre>
<p>&nbsp;</p>
<h3><strong>PROC SQL INSERT INTO method</strong></h3>
<p>The DATALINES method is not ideal as it involves creating an additional dataset and ensuring that the variable lengths in the new dataset  are consistent with the length in the original dataset, otherwise truncation can occur. Whereas the Multiple OUTPUT statement method can be time consuming and error prone because it required one assignment statement to be manually typed out for each variable in each observation. The PROC SQL INSERT INTO approach provides a concise alternative to these methods. This approach inserts lines using the VALUES statement in combination with a comma separated list, as shown below:</p>
<pre>PROC SQL NOPRINT ; 
  INSERT INTO class
  VALUES ("Andy", "M", 30,190,100)
  VALUES ("Ben", "M", 60,180,110)
  VALUES ("PAUL", "M", 26,170,120); 
QUIT;</pre>
<p>If using this approach, care should be taken to ensure that the order of the values in the comma separated list is consistent with the order of the associated variable in the dataset. To minimise the possibility of making a mistake in the order, or if you want to populate certain columns only, the columns which you wish to update, and the order of the variables in your comma separated list can be specified in brackets after the name of the dataset, as shown below:</p>
<pre>PROC SQL; 
  INSERT INTO class (name,weight)
  VALUES ("Andy",100)
  VALUES ("Ben",110)
  VALUES ("PAUL",.); 
QUIT;</pre>
<p>The post <a rel="nofollow" href="http://statskom.com/sas-tips-tricks-11-proc-sql-insert-into/">SAS tips &#038; tricks #11 &#8211; PROC SQL; INSERT INTO</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/sas-tips-tricks-11-proc-sql-insert-into/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAS tips &amp; tricks #10 &#8211; ERROR: Variable X not found.</title>
		<link>http://statskom.com/sas-tips-tricks-10-error-variable-x-not-found/</link>
		<comments>http://statskom.com/sas-tips-tricks-10-error-variable-x-not-found/#comments</comments>
		<pubDate>Sun, 12 Oct 2014 17:49:03 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[SAS Tips & Tricks]]></category>
		<category><![CDATA[ERROR: Variable X not found]]></category>
		<category><![CDATA[SAS errors]]></category>
		<category><![CDATA[SAS notes]]></category>
		<category><![CDATA[sas tips and tricks]]></category>
		<category><![CDATA[SAS warnings]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=451</guid>
		<description><![CDATA[<p>In SAS tips &#38; tricks #9, we looked at what happens when SAS encounters an uninitialized variable within a DATA Step. Here we look at the possibly more serious scenario of what happens when SAS cannot find a reqruied variable&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/sas-tips-tricks-10-error-variable-x-not-found/">SAS tips &#038; tricks #10 &#8211; ERROR: Variable X not found.</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>In <a title="SAS tips &amp; tricks #9 – NOTE: Variable X is uninitialized." href="http://statskom.com/sas-tips-tricks-9-note-variable-x-is-uninitialized/">SAS tips &amp; tricks #9</a>, we looked at what happens when SAS encounters an uninitialized variable within a DATA Step. Here we look at the possibly more serious scenario of what happens when SAS cannot find a reqruied variable within a PROC Step. You will usually notice that this has happened because the log will display the following message:</p>
<p><strong>&#8220;ERROR: Variable X not found&#8221; </strong></p>
<h2>What causes the message?</h2>
<p>This message occurs when a PROC Step  attempts to use a variable which is not present in the input dataset. This usually happens if, the variable was dropped or not kept in a preceding step, or if the code to create it has been accidentally omitted, or code has been copied from one place to another without making the necessary alterations.</p>
<h2>What happens when this occurs?</h2>
<p>When SAS cannot find a variable within a PROC Step, SAS will:</p>
<ul>
<li>outputs a message to a log stating the name of the variable(s) it cannot find, e.g. &#8220;<strong>ERROR: Variable X not found&#8221; </strong>implying that the variable X  is not present in the input dataset.</li>
<li>stop the execution of the current PROC Step and not produce any output.</li>
</ul>
<p>You will notice that SAS&#8217; behavior here is different to uninitialized variables in DATA Steps as in that instance it continues to create the output dataset.</p>
<h2>How to resolve it?</h2>
<p>To resolve this issue, ensure that the <em>not found</em> variable is available in the input dataset to the PROC Step, or udpate the PROC Step so that it does not require the <em>not found </em>variable in order to execute.</p>
<h3><span style="font-size: 1.5em; line-height: 1.5em;">Example</span></h3>
<p>The following code attempts to sort the SASHELP.CLASS dataset by the variables AGE, BSA and BMI variables.</p>
<pre>PROC SORT DATA = sashelp.class OUT=class;
  BY age bsa bmi;
RUN;</pre>
<p>This code results in the following messages being printed to the log.:</p>
<pre> 
 43         PROC SORT DATA = sashelp.class OUT=class;
 44           BY age bsa bmi;
 ERROR: Variable BSA not found.
 ERROR: Variable BMI not found.
 45         RUN;

 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.CLASS may be incomplete.  When this step was stopped there were 0 observations and 0 variables.</pre>
<p>The lines:</p>
<pre>ERROR: Variable BSA not found.
ERROR: Variable BMI not found.</pre>
<p>Tell us that the BSA and BMI variables respectively were not present in the dataset SASHELP.CLASS.</p>
<p>While the line:</p>
<pre> 
WARNING: The data set WORK.CLASS may be incomplete.  When this step was stopped there were 0 observations and 0 variables.</pre>
<p>Tells us that as a result of the error, the output dataset was not created.<br />
To resolve this issue, either the BSA and BMI  variables should be present in the input dataset or else they should be removed from the PROC Step.</p>
<p>For example, here we use a DATA Step to first derive the BSA variable and then remove the BMI variable from the PROC SORT:</p>
<pre>DATA class;
  SET sashelp.class;
  bsa = ((height *weight )/ 3131 )**1/2;
RUN;

PROC SORT DATA = class OUT=class2;
  BY age bsa ;
RUN;</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="http://statskom.com/sas-tips-tricks-10-error-variable-x-not-found/">SAS tips &#038; tricks #10 &#8211; ERROR: Variable X not found.</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/sas-tips-tricks-10-error-variable-x-not-found/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
