<?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>DBailey Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>DBailey Tracker</description>
    <pubDate>Tue, 12 May 2026 19:24:03 GMT</pubDate>
    <dc:date>2026-05-12T19:24:03Z</dc:date>
    <item>
      <title>Re: SAS Logs from LSF Scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962144#M29780</link>
      <description>&lt;P&gt;This is what I did (which works in testing...not sure about production yet).&amp;nbsp; Based on what sas thinks the log is, we looked at that location for the files matching that description and took the one with the most recent timestamp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro rma_error_alert();

%put RMA_ERROR_ALERT;
%put SYSCC=&amp;amp;SYSCC;


%if &amp;amp;SYSCC Gt 4 %then %do;
	
	
	%PUT _ALL_;

	%LET tLOG=%SYSFUNC(GETOPTION(LOG));
	%LET tWork=%SYSFUNC(GETOPTION(Work));	
	%let ActLog=X;

	%put tlog=&amp;amp;tlog;
	%put twork=&amp;amp;twork;
	%put SYSCC=&amp;amp;SYSCC;
	
	filename oscmd pipe "ls -1tr &amp;amp;tLog.*.*|tail -1";

	data _null_;
		infile oscmd truncover;
		input filename $100.;
		call symput('ActLog',filename);
		run;


	%put ActLog=&amp;amp;ActLog;

	filename tmail email	
		from=('xxxxx')
		SENDER=('xxxxx')
		to=( 'xxxxxxx')
		subject=('Production Error')
		%if "&amp;amp;ActLog" ne "X" %then %do;
			attach = ("&amp;amp;ActLog" ct="text/plain")
			%end;
		;
	
	data _null_;
		file tmail;		
		current= "SYSCC=&amp;amp;SYSCC";
		LogPath = "Log Path: &amp;amp;tLog.";
		Workpath = "Work Path: &amp;amp;tWork.";
		SEText = "SysErrorText: &amp;amp;SYSERRORTEXT";
		put "SYSCC=&amp;amp;SYSCC.";
		put "Logpath=&amp;amp;tLOG.";
		put "Workpath=&amp;amp;tWork.";
		put "SysError: &amp;amp;SYSERRORTEXT.";
		put ;
		put ;
		put "This email address is not monitored for replies.";
		put ;
	run;
	
	%end;

%mend;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 20:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962144#M29780</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-03-18T20:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Logs from LSF Scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962133#M29775</link>
      <description>&lt;P&gt;which seems to match our config&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  &amp;lt;appender class="FileAppender" name="BatchFileAppender"&amp;gt;
      &amp;lt;param name="Append" value="false"/&amp;gt;
      &amp;lt;param name="Unique" value="true"/&amp;gt;
      &amp;lt;param name="FileNamePattern" value="%S{App.Log}%d{yyyy.MM.dd_hh.mm.ss}.log"/&amp;gt;
      &amp;lt;layout&amp;gt;
         &amp;lt;param name="ConversionPattern" value="%m"/&amp;gt;
      &amp;lt;/layout&amp;gt;
   &amp;lt;/appender&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;Is there a way to map it back so that the executing job knows the actual log name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 19:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962133#M29775</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-03-18T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Logs from LSF Scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962124#M29771</link>
      <description>&lt;P&gt;We use the LSF Scheduler to submit jobs.&amp;nbsp; I tested a few ways...and the most recent is that (from management console) the "command to run" is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/sasconfig/compute/Lev1/SASApp/BatchServer/sasbatch.sh -log /mkt/Logs/RMA/Z_Test_z_test_con.log -batch -noterminal -logparm "rollover=session" -sysin /mkt/BatchJobs/z_test_con.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what got actually created was&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/mkt/Logs/RMA/Z_Test_z_test_con.log_2025.03.18_12.16.34.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the test, we have a macro that is included in z_test_con.sas that checks the syscc value.&amp;nbsp; If it is &amp;gt;4, then it sends an email alerting of a failure (using sas email processing).&amp;nbsp; I need to attach the lob to that email...but can't work out the actual log file name.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 17:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962124#M29771</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-03-18T17:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Logs from LSF Scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962119#M29767</link>
      <description>yes.</description>
      <pubDate>Tue, 18 Mar 2025 16:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962119#M29767</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-03-18T16:28:20Z</dc:date>
    </item>
    <item>
      <title>SAS Logs from LSF Scheduled jobs</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962090#M29762</link>
      <description>&lt;P&gt;I'm trying to map the log file that SAS thinks it's using to what LSF actually uses so that we can email the log if the job fails.&amp;nbsp; In testing, I see this from SAS's perspective:&lt;/P&gt;
&lt;P&gt;19 %LET LOG=%SYSFUNC(GETOPTION(LOG));&lt;BR /&gt;20 %put log=&amp;amp;log;&lt;BR /&gt;log=/mkt/Logs/RMA/Z_Test_z_test_con_#Y.#m.#d_#H.#M.#s.log&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;from the actual log is /mkt/Logs/RMA/Z_Test_z_test_con_#Y.#m.#d_#H.#M.#s.log_2025.03.18_08.51.10.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I find the actual log?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 13:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Logs-from-LSF-Scheduled-jobs/m-p/962090#M29762</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-03-18T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956131#M373375</link>
      <description>&lt;P&gt;specifying a schema is required if you need something other than the default and if you want to browse the library contents.&amp;nbsp; I think the most often used default is dbo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and i'm going to try and get the auth domain so I can execute the libname statement directly.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 20:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956131#M373375</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T20:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956130#M373374</link>
      <description>&lt;P&gt;I just tried that:&lt;/P&gt;
&lt;DIV&gt;proc sql;&lt;/DIV&gt;
&lt;DIV&gt;select count(*) as recs&lt;/DIV&gt;
&lt;DIV&gt;from quest.businessunit;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;connect using quest as q;&lt;/DIV&gt;
&lt;DIV&gt;create table work.test as select * from connection to q (&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; select * from businessunit&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; );&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;disconnect from q;&lt;/DIV&gt;
&lt;DIV&gt;quit;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the count worked but the connect using did not.&lt;/P&gt;
&lt;P&gt;ODBC_2: Prepared: on connection 1&lt;BR /&gt;select COUNT(*) as "recs" from "dbo"."businessunit" TXT_1 WITH (NOLOCK)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ODBC_3: Executed: on connection 1&lt;BR /&gt;Prepared statement ODBC_2&lt;BR /&gt;&lt;BR /&gt;ACCESS ENGINE: SQL statement was passed to the DBMS for fetching data. &lt;BR /&gt;37 &lt;BR /&gt;38 connect using quest as q;&lt;BR /&gt;ERROR: CLI error trying to establish connection: [DataDirect][ODBC lib] Data source name not found and no default driver specified&lt;BR /&gt;&lt;BR /&gt;I'll see if I can find the authdomain and try a "connect to" instead of "connect as"&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 20:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956130#M373374</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T20:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956118#M373371</link>
      <description>&lt;P&gt;we do use "connect using" for other predefined libraries...but they're oracle and not sqlserver.&amp;nbsp; just trying to troubleshoot a bit&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956118#M373371</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956113#M373367</link>
      <description>&lt;P&gt;I see&amp;nbsp;&lt;/P&gt;
&lt;P&gt;credentials cache 'XXXXX' not found&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956113#M373367</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956107#M373365</link>
      <description>&lt;P&gt;So in our environment, the username/passwords are stored in an authdomain and are used in the predefined library.&amp;nbsp; If I try and use just the datasource name, I get this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;BR /&gt;35 connect to sqlsvr as q (datasrc=QUEST);&lt;BR /&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC SQL Server Wire Protocol driver][SQL Server]Login failed for user ''.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 19:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956107#M373365</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T19:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956104#M373362</link>
      <description>&lt;P&gt;I do.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 18:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956104#M373362</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T18:59:34Z</dc:date>
    </item>
    <item>
      <title>proc sql and connect using</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956061#M373347</link>
      <description>&lt;P&gt;We have a sas grid environment with predefined libraries (against sql server).&amp;nbsp; This works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
create table work.test as select * from quest.BusinessUnit;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, this fails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql noprint;
connect using quest as q;
create table work.test as
select * from connection to q (
	select * from businessunit
);
disconnect from q;
quit;&lt;/PRE&gt;
&lt;P&gt;with this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;39 connect using quest as q;&lt;BR /&gt;ERROR: CLI error trying to establish connection: [DataDirect][ODBC lib] Data source name not found and no default driver specified&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 14:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-connect-using/m-p/956061#M373347</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2025-01-14T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Enterprise Guide 8.2 Pane options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-8-2-Pane-options/m-p/634610#M35714</link>
      <description>&lt;P&gt;Trying the latest EG....I can't figure out how to have the task panes hidden but docked like we did in 7.1.&amp;nbsp; The options are Float and Hide....when I hide, I have to go back to the menu to display it again.&amp;nbsp; 7.1 could dock but only pop out when you hovered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 00:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-8-2-Pane-options/m-p/634610#M35714</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2020-03-25T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Range selection based of lowest price</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Range-selection-based-of-lowest-price/m-p/543582#M150292</link>
      <description>&lt;P&gt;I don't understand what you're asking me to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 16:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Range-selection-based-of-lowest-price/m-p/543582#M150292</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2019-03-15T16:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Range selection based of lowest price</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Range-selection-based-of-lowest-price/m-p/543559#M150278</link>
      <description>Couldn't follow much of the discussion....but this is a simple coding exercise for proc sql.  It may take a while to run on 300GB of data...but you would have to process that data anyway to get the results you want.&lt;BR /&gt;&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;create table want as&lt;BR /&gt;select&lt;BR /&gt;  product,&lt;BR /&gt;  on_sale_date,&lt;BR /&gt;  off_sale_date,&lt;BR /&gt;  min(Price) as Price&lt;BR /&gt;from have&lt;BR /&gt;group by &lt;BR /&gt;  product,&lt;BR /&gt;  on_sale_date,&lt;BR /&gt;  off_sale_date&lt;BR /&gt;;&lt;BR /&gt;quit;</description>
      <pubDate>Fri, 15 Mar 2019 14:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Range-selection-based-of-lowest-price/m-p/543559#M150278</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2019-03-15T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reset OBS= Global Option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reset-OBS-Global-Option/m-p/524160#M142502</link>
      <description>isn't it just obs=max?</description>
      <pubDate>Wed, 02 Jan 2019 19:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reset-OBS-Global-Option/m-p/524160#M142502</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2019-01-02T19:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Upadting row value in sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upadting-row-value-in-sas-dataset/m-p/520594#M141192</link>
      <description>&lt;P&gt;Sounds pretty straight-forward....&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;update work.have&lt;/P&gt;
&lt;P&gt;set udf_value = '2016q4'&lt;/P&gt;
&lt;P&gt;where udf_nm='X_CASE_PRD' ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 21:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upadting-row-value-in-sas-dataset/m-p/520594#M141192</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2018-12-11T21:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Upadting row value in sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upadting-row-value-in-sas-dataset/m-p/520516#M141149</link>
      <description>&lt;P&gt;I could not understand what you wanted to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, you can update datasets via proc sql:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to update the new column to a null value if it can't find a match, then you might use something like this:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;update work.have as t1&lt;/P&gt;
&lt;P&gt;set t1.udf_value=(select new_value from some_data_set where col=t1.col)&lt;/P&gt;
&lt;P&gt;where t1.udf_nm='X_CASE_PRD' ;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to update the new column only when there is a match, you can add to the criteria:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;update work.have as t1&lt;/P&gt;
&lt;P&gt;set t1.udf_value=(select new_value from some_data_set where col=t1.col)&lt;/P&gt;
&lt;P&gt;where t1.udf_nm='X_CASE_PRD'&amp;nbsp; and exists (select new_value from some_data_set where col=t1.col);&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 19:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upadting-row-value-in-sas-dataset/m-p/520516#M141149</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2018-12-11T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count for a specific date range</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-for-a-specific-date-range/m-p/511117#M2114</link>
      <description>&lt;P&gt;similar to other solution....&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input api_date:mmddyy10. api_count;
format api_date mmddyy10. api_count 8.0;
datalines;
1/1/2017 125
8/2/2017 126
8/3/2017 127
8/4/2017 128
8/5/2017 129
8/6/2017 130
8/7/2017 131
8/8/2017 132
8/9/2017 133
8/10/2017 134
8/11/2017 135
8/12/2017 136
8/13/2017 137
8/14/2017 138
8/15/2017 139
8/16/2017 140
8/17/2017 141
8/18/2017 142
8/19/2017 143
8/20/2017 144
8/21/2017 145
8/22/2017 146
8/23/2017 147
8/24/2017 148
8/25/2017 149
8/26/2017 150
8/27/2017 151
8/28/2017 152
8/29/2017 153
8/30/2017 154
8/31/2017 155
9/1/2017 156
9/2/2017 157
9/3/2017 158
9/4/2017 159
9/5/2017 160
9/6/2017 161
;
run;

proc sql;
create table want as select		
	intnx('month',api_date,case when api_date&amp;gt;=nwkdom(5,6,month(api_date),year(api_date)) then 1 else 0 end,'begin') format mmddyy10. as  Period,
	case
		/*if api_date &amp;gt;= last saturday of current month then use last saturday of current month*/
		when api_date &amp;gt;=nwkdom(5,6,month(api_date),year(api_date)) then nwkdom(5,6,month(api_date),year(api_date))
		/*else use last saturday of previous month*/
		else nwkdom(5,6,month(intnx('month',api_date,-1,'same')),year(intnx('month',api_date,-1,'same')))
		end format mmddyy10. as PeriodStart,
	case
		/*if api_date &amp;gt;= last saturday of current month then use last saturday of next month*/
		when api_date &amp;gt;=nwkdom(5,6,month(api_date),year(api_date)) then nwkdom(5,6,month(intnx('month',api_date,1,'same')),year(intnx('month',api_date,1,'same')))
		/*else use last saturday of current month*/
		else nwkdom(5,6,month(api_date),year(api_date))
		end 
		/*and backup one day from that*/
		-1 format mmddyy10. as PeriodEnd,
	sum(api_count) as Total_API_Count
from	
	have
group by
	calculated period
	,calculated periodstart
	,calculated periodEnd
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Nov 2018 18:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-for-a-specific-date-range/m-p/511117#M2114</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2018-11-07T18:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Importing files in SAS and storing them in Oracle as blobs</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Importing-files-in-SAS-and-storing-them-in-Oracle-as-blobs/m-p/508392#M15757</link>
      <description>&lt;P&gt;you can definitely store the row/colum data from the excel sheet in oracle as described....but is that what you want to do?&amp;nbsp; It sounded like you want to store the spreadsheet itself as a binary large object in oracle.&amp;nbsp; I think it can be done as well, but not using proc import.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 16:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Importing-files-in-SAS-and-storing-them-in-Oracle-as-blobs/m-p/508392#M15757</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2018-10-29T16:09:47Z</dc:date>
    </item>
  </channel>
</rss>

