<?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: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507594#M1476</link>
    <description>Thanks a lot for your response and time. I think it might be an issue in the data, but I figured I would check here to see if it was something else I was missing.</description>
    <pubDate>Thu, 25 Oct 2018 21:17:37 GMT</pubDate>
    <dc:creator>tugtrog</dc:creator>
    <dc:date>2018-10-25T21:17:37Z</dc:date>
    <item>
      <title>PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestamp</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507576#M1464</link>
      <description>&lt;P&gt;I am trying to write a query that will select MIN and MAX timestamp on a single day. I am able to get a vast majority of my data to pull, but there are issues on a few of the rows where I can pull the MIN date but when I change it to MAX I get a page break as the results. There are multiple timestamps per day, but if not it still should select the same timestamp for MIN and MAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is extremely long or I would post it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a having statement to select the min and max similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;

SELECT distinct t2.no,
					T1._ID,
					t2.id, 
					t3.First_Name
					t3.last_name
					t3.TITLE, 
					t3.02_LOCATION
					t3.Level_01, 
					t3.Level_02, 
					T1.M_TS
					T1.O_TS
					t3.employee
					T1.O_A
				FROM TEST.DAY T2
					INNER JOIN B.LE T1 ON (T2.ID = T1._ID and (PUT(DATEPART(T2.ADate),date9.) = PUT(DATEPART(T1.M_TS),date9.)))
					INNER JOIN B.E T3 ON (T1.O_A = T3.EMPLOYEE AND (t3.O_TS &amp;gt; '15Dec9999:0:0:0'dt))
					WHERE T2.NO = '11111-11111'
						GROUP BY T1._ID
							HAVING M_TS = MAX(T1.M_TS) and 
								O_TS = MIN(T1.O_TS) AND
								FIRST_NAME = scan(t3.first_name,1,' ') AND 
								LAST_NAME = SCAN(T3.LAST_NAME,1,' ')
;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I change nothing in the code but the MAX to MIN and the code works. Does anyone have an idea of what could cause this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 21:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507576#M1464</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-25T21:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507577#M1465</link>
      <description>&lt;P&gt;Full code, log and error info plz&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 20:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507577#M1465</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-25T20:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507580#M1466</link>
      <description>Without seeing the query it's kind of hard to say. Can you make some sample data that replicates your issue. &lt;BR /&gt;&lt;BR /&gt;Otherwise my recommendation would be to switch to some form of a data step and use BY group processing to get the max/min.</description>
      <pubDate>Thu, 25 Oct 2018 21:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507580#M1466</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-25T21:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507581#M1467</link>
      <description>I posted the code, but I am not getting an error I am just having nulls returned in the columns when I put it in a created table, and page brake when looking at results.</description>
      <pubDate>Thu, 25 Oct 2018 21:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507581#M1467</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-25T21:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507583#M1468</link>
      <description>Thanks for the reply, I just posted a code.</description>
      <pubDate>Thu, 25 Oct 2018 21:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507583#M1468</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-25T21:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507584#M1469</link>
      <description>Is it possible that coupled with the other conditions that you omit all records for some groups? Or that they're mutually exclusive in some manner? &lt;BR /&gt;&lt;BR /&gt;My guess it would be O_TS=MIN and M_TS=Max() maybe never happens together?</description>
      <pubDate>Thu, 25 Oct 2018 21:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507584#M1469</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-25T21:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507589#M1472</link>
      <description>So whats actually happening here is, There are 2 different sub queries, one selects MIN and the other selects MAX. So it should just select the MIN and then the MAX separately. Regardless of the other one. I get the correct values for almost all of the rows, this is just an example of one of the rows where it returned a MIN value and no MAX value. and the MIN will work in both but the MAX will not work in either sub query.&lt;BR /&gt;&lt;BR /&gt;I hope that's clear</description>
      <pubDate>Thu, 25 Oct 2018 21:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507589#M1472</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-25T21:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507590#M1473</link>
      <description>&lt;P&gt;Got it.&lt;/P&gt;
&lt;PRE&gt;HAVING M_TS = MAX(T1.M_TS) and 
								O_TS = MIN(T1.O_TS) AND
								FIRST_NAME = scan(t3.first_name,1,' ') AND 
								LAST_NAME = SCAN(T3.LAST_NAME,1,' ')
;&lt;/PRE&gt;
&lt;P&gt;Nothing wrong with the above syntactically. From a business logic or data point of view can't tell. However,&amp;nbsp; simple conclusion is that no records satisfy all the conditions specified in "having" filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 21:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507590#M1473</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-25T21:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507591#M1474</link>
      <description>Sounds to me like you have an edge case in your data that I again suspect you're losing with one of your other filters. Try removing them and see if you get results. It would definitely help to provide some sample data, especially for those edge cases.</description>
      <pubDate>Thu, 25 Oct 2018 21:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507591#M1474</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-25T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507594#M1476</link>
      <description>Thanks a lot for your response and time. I think it might be an issue in the data, but I figured I would check here to see if it was something else I was missing.</description>
      <pubDate>Thu, 25 Oct 2018 21:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507594#M1476</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-25T21:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507595#M1477</link>
      <description>Thanks a lot for you help, I think you are right and I am going to have to look deeper into it. I thought it might just be something I was overlooking. I appreciate your help.</description>
      <pubDate>Thu, 25 Oct 2018 21:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507595#M1477</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-25T21:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507602#M1479</link>
      <description>&lt;P&gt;MH&amp;nbsp;2 cents thought:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are at an organization that uses SAS at enterprise level on a commercial level, I would rather prefer to deal a lot of this in piecemeal preferably taking advantage with a datastep approach unless something is preferred by egoistic imbecile bosses who think they have achieved a great deal after an explicit sql connect pass through&amp;nbsp; writing tons of variable names with the potential&amp;nbsp; leading to typos and &lt;U&gt;&lt;STRONG&gt;plus the risk of "remerge"&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp; that may cause so much duplication and other unwarranted intricacies causing inaccuracy and integrity issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Taking advantage of the beautiful PDV block with exquisite block of addresses that holds the operands reading the descriptor portion giving us the breathing space to play with variables of interest for create, insert,&amp;nbsp; update, delete alone is priceless while the other variables can just sleep and still be neatly written to the output buffer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, I love proc sql and have/will use when it's not unwieldy and that involves cleaner column processing involving less lexicon. Sure Proc Sql also has to have a memory address block and even the great guru Paul Dorfman has mentioned the APP functions can be put to effect in proc sql which might of my personal interest at some point in the future. Nevertheless, long select clauses with many nested in it will certainly cause someone a heartache for sure. HTH&lt;/P&gt;
&lt;DIV id="yg1" class="yg"&gt;&lt;INS class="adsbygoogle" data-ad-format="horizontal" data-ad-slot="5649217835" data-ad-client="ca-pub-2694630391511205" data-ad-channel="4658665838+4327361345" data-kw-type="broad" data-kw="unwieldy" data-adsbygoogle-status="done"&gt;&lt;INS id="aswift_0_expand"&gt;&lt;INS id="aswift_0_anchor"&gt;&lt;IFRAME width="728" height="90" name="aswift_0" frameborder="0" scrolling="no" allowfullscreen="true" id="aswift_0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true"&gt;&lt;/IFRAME&gt;&lt;/INS&gt;&lt;/INS&gt;&lt;/INS&gt;&lt;/DIV&gt;
&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Thu, 25 Oct 2018 21:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507602#M1479</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-25T21:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507614#M1485</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;I love your answers and learn from you,&amp;nbsp;&lt;SPAN&gt;i agree that&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Data step gives more flexibility in terms of Data processing&amp;nbsp; but&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Explicit sql has significant impact in run times and they are very important when they are lots of records.&lt;/P&gt;
&lt;P&gt;2. Other than Proc sql , no other SQL implementation(as far as I know) allow remerge but multiple passes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 23:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507614#M1485</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-10-25T23:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507615#M1486</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;&amp;nbsp;--"&lt;SPAN&gt;1. Explicit sql has significant impact in run times and they are very important when they are lots of records."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not necessarily.&amp;nbsp; I will prove that to you in time. Unfortunately not at 6:10 chicago time while on a hurry to catch red line CTA to get back home.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I agree to 2.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally Thank you for the kind note.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 23:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507615#M1486</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-25T23:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507618#M1487</link>
      <description>&lt;P&gt;sure.&amp;nbsp;I worked&amp;nbsp; on code to process close to 200 millions records with close to 3000 lines of SAS code to Teradata sql, difference was from 20 min to 18 hours. major time issue is because of&amp;nbsp; I/0&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 23:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507618#M1487</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-10-25T23:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507622#M1488</link>
      <description>&lt;P&gt;You should post data for one of the problem cases so that we can help you debug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can cut down your code (and data) to just what is needed to show your issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example we don't need to see all of the variables you are selecting to see what your basic logic is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your description of the logic doesn't seem to match what the code is doing.&lt;/P&gt;
&lt;P&gt;You said you where taking the MIN() and MAX(), but there are no MIN() or MAX() functions in the values you are selecting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead you are using MIN() and MAX() in a HAVING clause.&amp;nbsp; One side effect of that is that your result set could have multiple observations due to ties.&amp;nbsp; So if the MAX(time) is '17:00't and there are three observations with that time then three observations will be selected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 00:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507622#M1488</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-26T00:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507626#M1490</link>
      <description>That depends upon the quality of SAS user and not the product/language plus taking into account he objective/need.and optimum approaches.</description>
      <pubDate>Fri, 26 Oct 2018 01:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507626#M1490</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-26T01:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507627#M1491</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;That depends upon the quality of SAS user and not the product/language plus taking into account he objective/need.and optimum approaches.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Usually it has to do with running on a server versus running on a desktop is my guess.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a good workaround when you can't afford a SAS server, but need the power of a server. You are limited by the type of work though, because it's mostly standard data manipulation. Until SQL introduced PIVOT (2008ish) and some of the more statistical techniques it was more of an issue.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 01:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507627#M1491</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-26T01:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507632#M1494</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;. Well noted, The discussion might next slip into performance of&amp;nbsp; proc sql vs datastep(libname) at engine level as the latter indeed has a higher overhead measuring direct extracts/in general column processing as opposed to row, fewer joins/set operators/indexes (more flexible in proc sql than datastep or even proc datasets for obvious reasons. Reference; complete guide to indexes - by author Micheal raithel) utmost.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Datastep is indeed powerful for various tasks that can be accomplished. However, saying that how extensive, variety/complexity it can get pretty much seems unlimited especially&amp;nbsp; to the readers eye on this very forum when demonstrated by some whom we look up to as role models.( don't wanna keep repeating the ones I adore lol)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The matter of typing and maintaining convenience, control and the kind of objective./business requirement beyond the set of functionality described in paragraph one by proc sql and the &lt;U&gt;control&lt;/U&gt; of handling variables to the tune of a&amp;nbsp;&amp;nbsp;SAS user be row level processing or column level processing(I must emphasize the required proficiency hash, array(multi) and dow etc) is what makes SAS the classy gem, a kind of its own and yet one can be obliterate to the descriptors(meta portion) i.e not having to worry about the variables that's that not required for processing which doesn't hinder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand in proc sql, if fewer select clauses with small number of vars&amp;nbsp; is fine, however long clauses with a huge list of variables, and joins made on multiple variables(with several AND operations) , aliases, ambiguous references and many more unnecessary nits to take care of. And on top of the that, Cartesian is another sweetheart to &lt;U&gt;beware.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to conclude, besides the server and other things, my view is that different objectives may warrant efficient approaches that would test the individual super user to his/her merits&amp;nbsp; in coming up with the most optimum quality solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS IMHO,&amp;nbsp; if SAS didn't provide the scope of competitiveness to pursue further far and wide, the charm and joy of coding wouldn't exist. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Lastly, I use sql when that happens to be&amp;nbsp; the most laziest option to type(code)&amp;nbsp; yet comparable to other options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 02:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507632#M1494</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-26T02:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue where MIN function is working but when changed to MAX returns nothing on timestam</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507769#M1508</link>
      <description>&lt;P&gt;This really helped, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-SQL-issue-where-MIN-function-is-working-but-when-changed-to/m-p/507769#M1508</guid>
      <dc:creator>tugtrog</dc:creator>
      <dc:date>2018-10-26T14:57:04Z</dc:date>
    </item>
  </channel>
</rss>

