<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: get the max value of one variable among all datasets saved under work. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119909#M24651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;I used the %sysfunc to check the nobs and delete it if it is empty. But it seems that the empty datasets were still there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; i = 2&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &amp;amp;maxN;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;STRONG&gt;&lt;EM&gt;joint&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;i,&amp;amp;i); *** create table optimal_&amp;amp;i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: green; font-size: 8pt;"&gt;*** check if the data is empty;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; dsid=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;(OPEN(work.optimal_&amp;amp;i));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; nobs=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;(ATTRN(&amp;amp;dsid.,NOBS));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; rc=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;(CLOSE(&amp;amp;dsid.));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%IF&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: teal; font-size: 8pt;"&gt;Nobs.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; EQ &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; background: white; font-family: 'Cumberland AMT';"&gt;0&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%THEN&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%DO&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc datasets;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete optimal_&amp;amp;i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%END&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;data allscan/view = allscan;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set optimal_:indsname=dsname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;create table opt as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;select * from allscan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;having EN=min(EN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 02:15:14 GMT</pubDate>
    <dc:creator>jojo</dc:creator>
    <dc:date>2013-02-25T02:15:14Z</dc:date>
    <item>
      <title>get the max value of one variable among all datasets saved under work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119907#M24649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; I want to identify the max value of one variable among all identical datasets (have same variables in each dataset) created and saved under work and exact the row. But got a note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: A stored DATA STEP view cannot run under a different operating system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data allscan/view = allscan;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set optimal_:indsname=dsname;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table min as&lt;/P&gt;&lt;P&gt;select * from allscan&lt;/P&gt;&lt;P&gt;having EN=min(EN);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA STEP view saved on file WORK.ALLSCAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: A stored DATA STEP view cannot run under a different operating system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: The following columns were not found in the contributing tables: EN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: View WORK.ALLSCAN.VIEW used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 01:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119907#M24649</guid>
      <dc:creator>jojo</dc:creator>
      <dc:date>2013-02-25T01:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value of one variable among all datasets saved under work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119908#M24650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Note is just a note, it doesn't signal an error. The error seems to be that at least one of your WORK.OPTIMAL_* datasets doesn't include a variable called EN. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 01:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119908#M24650</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-02-25T01:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value of one variable among all datasets saved under work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119909#M24651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;I used the %sysfunc to check the nobs and delete it if it is empty. But it seems that the empty datasets were still there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; i = 2&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &amp;amp;maxN;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;STRONG&gt;&lt;EM&gt;joint&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;i,&amp;amp;i); *** create table optimal_&amp;amp;i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: green; font-size: 8pt;"&gt;*** check if the data is empty;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; dsid=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;(OPEN(work.optimal_&amp;amp;i));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; nobs=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;(ATTRN(&amp;amp;dsid.,NOBS));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; rc=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%SYSFUNC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;(CLOSE(&amp;amp;dsid.));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%IF&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: teal; font-size: 8pt;"&gt;Nobs.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; EQ &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 8pt; background: white; font-family: 'Cumberland AMT';"&gt;0&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%THEN&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%DO&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc datasets;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete optimal_&amp;amp;i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%END&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: blue; font-size: 8pt;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;data allscan/view = allscan;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set optimal_:indsname=dsname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;create table opt as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;select * from allscan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;having EN=min(EN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cumberland AMT'; background: white; color: black; font-size: 8pt;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 02:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-the-max-value-of-one-variable-among-all-datasets-saved-under/m-p/119909#M24651</guid>
      <dc:creator>jojo</dc:creator>
      <dc:date>2013-02-25T02:15:14Z</dc:date>
    </item>
  </channel>
</rss>

