<?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>rss.livelink.posts-in-node</title>
    <link>https://communities.sas.com/</link>
    <description>SAS Support Communities</description>
    <pubDate>Mon, 31 Oct 2022 07:03:17 GMT</pubDate>
    <dc:creator>Community</dc:creator>
    <dc:date>2022-10-31T07:03:17Z</dc:date>
    <item>
      <title>Dataflux: shceduling process job</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-shceduling-process-job/m-p/841577#M20597</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I need to schedule my Dataflux jobs to run via CA7. I created a small test process job, with a data job embedded. I then created a shell script to call the process job and created a JCL on the mainframe to run this shell script. The process job gets kicked off, but it is unable to open the embedded data job. I am attaching the log. Please could anyone help?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 06:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-shceduling-process-job/m-p/841577#M20597</guid>
      <dc:creator>HeidiDT</dc:creator>
      <dc:date>2022-10-31T06:34:13Z</dc:date>
    </item>
    <item>
      <title>DataFlux bulkload to SQL Server with datetimeoffset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DataFlux-bulkload-to-SQL-Server-with-datetimeoffset/m-p/841576#M20596</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am ding a load of 183m rows from Dataflux into a SQL Server table. The current job is just a normal insert, but I am playing around with the bulk row count option to see if I can't speed it up (it ran for 42 hours). However, I am getting an error with a datetimeoffset field. The field seems to be a character value in Dataflux, so I would have thought it would be coerced into a datetime value, but I get this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[4:DEST_ODBC:Consolidated Customer Matchcode] Data Access Plugin - Max. ODBC error count (49999) exceeded. Last error: [22018] [DataFlux][ODBC SQL Server Wire Protocol driver]Invalid character value. Error in parameter 11. (0);[HY008] [DataFlux][ODBC SQL Server Wire Protocol driver]Operation cancelled. Error in parameter 116. (0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then created a new date variable and converted the character value to a date field (date DOB DOB=todate(left(DateOfBirth,10)), and mapped that to the datetimeoffset field, but I am still getting the same error. Has anyone had any experience with this, and can offer some suggestions, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To complicate matters further, it runs fine locally but gives that error when running on the server, so I assume it is using different ODBC drivers.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 06:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DataFlux-bulkload-to-SQL-Server-with-datetimeoffset/m-p/841576#M20596</guid>
      <dc:creator>HeidiDT</dc:creator>
      <dc:date>2022-10-31T06:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count monthly disenrollment</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-monthly-disenrollment/m-p/841575#M41609</link>
      <description>&lt;P&gt;thank you. But if I want count 2021 disenrollment, the rest of the month dose not&amp;nbsp; enrolled should be counted as disenroll, hwo could I do that&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;similar to this ..but it is disenroll. How to ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Finding-the-continous-and-discontinous-months-enrollment-over/td-p/614455" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Finding-the-continous-and-discontinous-months-enrollment-over/td-p/614455&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 04:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-monthly-disenrollment/m-p/841575#M41609</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2022-10-31T04:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get hour and minutes of the (current time minus 20 second) into macro variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-hour-and-minutes-of-the-current-time-minus-20-second-into/m-p/841574#M332760</link>
      <description>Have you tried&lt;BR /&gt;&lt;BR /&gt;%let now = %sysfunc(time() ) - 20;&lt;BR /&gt;&lt;BR /&gt;The other statements probably figure out to perform the math without even adding %eval</description>
      <pubDate>Mon, 31 Oct 2022 04:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-hour-and-minutes-of-the-current-time-minus-20-second-into/m-p/841574#M332760</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-10-31T04:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count monthly disenrollment</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-monthly-disenrollment/m-p/841573#M41608</link>
      <description>You don't need to change the data.  You just need PROC FREQ to apply a format.  For example:&lt;BR /&gt;&lt;BR /&gt;proc freq data=have;&lt;BR /&gt;  format enrollment yrmon7.;&lt;BR /&gt;  tables member_id enrollment;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 31 Oct 2022 04:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-monthly-disenrollment/m-p/841573#M41608</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-10-31T04:31:38Z</dc:date>
    </item>
    <item>
      <title>Count monthly disenrollment</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-monthly-disenrollment/m-p/841572#M41607</link>
      <description>&lt;P&gt;I need count monthly disenrollment&amp;nbsp; for 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data table :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="386"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="105"&gt;MEMBER_ID&lt;/TD&gt;
&lt;TD width="115"&gt;ENROLLMENT&amp;nbsp;&lt;/TD&gt;
&lt;TD width="166"&gt;DISENROLLEMNT&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A0001&lt;/TD&gt;
&lt;TD&gt;2/1/2021&lt;/TD&gt;
&lt;TD&gt;3/1/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A0001&lt;/TD&gt;
&lt;TD&gt;5/29/2021&lt;/TD&gt;
&lt;TD&gt;6/24/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A0001&lt;/TD&gt;
&lt;TD&gt;7/1/2021&lt;/TD&gt;
&lt;TD&gt;8/1/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0001&lt;/TD&gt;
&lt;TD&gt;6/3/2021&lt;/TD&gt;
&lt;TD&gt;8/2/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B0001&lt;/TD&gt;
&lt;TD&gt;10/1/2021&lt;/TD&gt;
&lt;TD&gt;11/1/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I have the monthly disenroll , and count by member_ID: as following&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Member_ID, Disenroll_Month_Flg&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;202104&lt;/P&gt;
&lt;P&gt;A0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;202107&lt;/P&gt;
&lt;P&gt;A0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;202209&lt;/P&gt;
&lt;P&gt;B0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;202109&lt;/P&gt;
&lt;P&gt;B0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;202112&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Summary: disenroll by month&amp;nbsp;&lt;/P&gt;
&lt;P&gt;month&amp;nbsp; &amp;nbsp; &amp;nbsp; count:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;202104&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;202107&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;202109&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;202112&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Summery disenroll by member:&lt;/P&gt;
&lt;P&gt;Member&amp;nbsp; &amp;nbsp; &amp;nbsp;Count&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;B0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 04:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-monthly-disenrollment/m-p/841572#M41607</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2022-10-31T04:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: recode catergorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/recode-catergorical-variables/m-p/841571#M332759</link>
      <description>Have you examined the log and the output of the program you posted?  It creates a character variable DISTRICTS that does not take on numeric values like 1, 2, and 3.  Yet your second DATA step seems to expect those values.  So it is impossible to determine what data you have, and what result you would like.  Perhaps you need statements that look more like:&lt;BR /&gt;&lt;BR /&gt;bay = (districts = "bay");&lt;BR /&gt;&lt;BR /&gt;That statement would at least match the sample data you posted.&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Oct 2022 04:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/recode-catergorical-variables/m-p/841571#M332759</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-10-31T04:20:00Z</dc:date>
    </item>
    <item>
      <title>assign value for a group under condition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/assign-value-for-a-group-under-condition/m-p/841570#M82176</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to sas and I was trying to achieve such thing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the dataset:&lt;/P&gt;&lt;DIV&gt;PERMNO EVTDATE first_event inter_event&lt;/DIV&gt;&lt;DIV&gt;10001 8/1/11 1 0&lt;/DIV&gt;&lt;DIV&gt;10001 4/2/12 0 1&lt;/DIV&gt;&lt;DIV&gt;10002 7/6/98 1 0&lt;/DIV&gt;&lt;DIV&gt;10002 10/27/98 0 1&lt;/DIV&gt;&lt;DIV&gt;10011 11/13/95 1 0&lt;/DIV&gt;&lt;DIV&gt;10011 5/28/96 0 1&lt;/DIV&gt;&lt;DIV&gt;10011 5/29/96 0 1&lt;/DIV&gt;&lt;DIV&gt;10016 12/9/99 1 0&lt;/DIV&gt;&lt;DIV&gt;10016 5/3/00 0 1&lt;/DIV&gt;&lt;DIV&gt;10020 4/6/87 1 0&lt;/DIV&gt;&lt;DIV&gt;10020 10/21/87 0 1&lt;/DIV&gt;&lt;DIV&gt;10020 12/11/87 0 1&lt;/DIV&gt;&lt;DIV&gt;10020 4/17/90 1 0&lt;/DIV&gt;&lt;DIV&gt;10020 4/24/90 0 1&lt;/DIV&gt;&lt;DIV&gt;10028 8/17/99 1 0&lt;/DIV&gt;&lt;DIV&gt;10028 3/3/00 0 1&lt;/DIV&gt;&lt;DIV&gt;10028 7/14/06 1 0&lt;/DIV&gt;&lt;DIV&gt;10028 5/10/07 0 1&lt;/DIV&gt;&lt;DIV&gt;I would like to create another column call program and the column will state as:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;PERMNO EVTDATE first_event inter_event define a program, and numbers of event in the group&lt;/DIV&gt;&lt;DIV&gt;10001 8/1/11 1 0 2&lt;/DIV&gt;&lt;DIV&gt;10001 4/2/12 0 1 2&lt;/DIV&gt;&lt;DIV&gt;10002 7/6/98 1 0 2&lt;/DIV&gt;&lt;DIV&gt;10002 10/27/98 0 1 2&lt;/DIV&gt;&lt;DIV&gt;10011 11/13/95 1 0 3&lt;/DIV&gt;&lt;DIV&gt;10011 5/28/96 0 1 3&lt;/DIV&gt;&lt;DIV&gt;10011 5/29/96 0 1 3&lt;/DIV&gt;&lt;DIV&gt;10016 12/9/99 1 0 2&lt;/DIV&gt;&lt;DIV&gt;10016 5/3/00 0 1 2&lt;/DIV&gt;&lt;DIV&gt;10020 4/6/87 1 0 3&lt;/DIV&gt;&lt;DIV&gt;10020 10/21/87 0 1 3&lt;/DIV&gt;&lt;DIV&gt;10020 12/11/87 0 1 3&lt;/DIV&gt;&lt;DIV&gt;10020 4/17/90 1 0 2&lt;/DIV&gt;&lt;DIV&gt;10020 4/24/90 0 1 2&lt;/DIV&gt;&lt;DIV&gt;10028 8/17/99 1 0 2&lt;/DIV&gt;&lt;DIV&gt;10028 3/3/00 0 1 2&lt;/DIV&gt;&lt;DIV&gt;10028 7/14/06 1 0 2&lt;/DIV&gt;&lt;DIV&gt;10028 5/10/07 0 1 2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;let say for permno 10001, there are two obs and they form a program and the program has two event in a row, so it will be definded as 2 for each of the two obs.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you so much for your help!&lt;/DIV&gt;&lt;DIV&gt;Appreciated,&lt;/DIV&gt;&lt;DIV&gt;Zhongda&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/assign-value-for-a-group-under-condition/m-p/841570#M82176</guid>
      <dc:creator>Zhongda</dc:creator>
      <dc:date>2022-10-31T03:54:16Z</dc:date>
    </item>
    <item>
      <title>Get hour and minutes of the (current time minus 20 second) into macro variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-hour-and-minutes-of-the-current-time-minus-20-second-into/m-p/841569#M332758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to put hour and minute of the time 20 second before current time into macro variable.&lt;/P&gt;
&lt;P&gt;The code below might convey my idea better.&lt;/P&gt;
&lt;P&gt;Can you please help?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let now=%sysfunc(time()       MINUS 20 SECOND);
%let hh=%sysfunc(hour(&amp;amp;now),z2.);
%let mm=%sysfunc(minute(&amp;amp;now),z2.);

%put &amp;amp;hh &amp;amp;mm;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-hour-and-minutes-of-the-current-time-minus-20-second-into/m-p/841569#M332758</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2022-10-31T03:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841568#M332757</link>
      <description>&lt;P&gt;This works for any dataset of your choosing, not just those in the SASHELP library. You can specify sending your data to a new sheet and provide the name:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1667186211521.png" style="width: 260px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76787iF5D83F27120F1F58/image-dimensions/260x241?v=v2" width="260" height="241" role="button" title="SASKiwi_0-1667186211521.png" alt="SASKiwi_0-1667186211521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841568#M332757</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-31T03:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841566#M332756</link>
      <description>That was just an example since I cannot share privately owned data. The task is to export any resulting dataset to its respective tab.&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841566#M332756</guid>
      <dc:creator>carlos_m_jimenez</dc:creator>
      <dc:date>2022-10-31T03:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841564#M332755</link>
      <description>&lt;P&gt;You don't have to code to do that. Just click on the Data icon in the SAS tab and click the Browse button. Select library SASHELP and dataset CARS and select Open. The default sheet name stays as Sheet1 but you can just change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1667183159917.png" style="width: 506px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76786i85664C09433520AB/image-dimensions/506x105?v=v2" width="506" height="105" role="button" title="SASKiwi_0-1667183159917.png" alt="SASKiwi_0-1667183159917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 02:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841564#M332755</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-31T02:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Colon (:) to resolve a condition in Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Colon-to-resolve-a-condition-in-Macro/m-p/841563#M332754</link>
      <description>&lt;P&gt;You can't use '=:' in macro logic. It is simply not available. You can do the same thing though like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %substr(&amp;amp;output,1,2) ^= SC %then %do;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Oct 2022 02:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Colon-to-resolve-a-condition-in-Macro/m-p/841563#M332754</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-31T02:14:27Z</dc:date>
    </item>
    <item>
      <title>How to use Colon (:) to resolve a condition in Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Colon-to-resolve-a-condition-in-Macro/m-p/841562#M332753</link>
      <description>&lt;P&gt;I am trying to resolve the condition of the macro in my code.&amp;nbsp; I have the two conditions&amp;nbsp; where I want to&amp;nbsp; output the error in log based on the input macro variable 'fld' . If it starts with numeric then it have to put one condition otherwise it need to put another error in log ( most of my names with 'SC' if its not numeric&lt;/P&gt;
&lt;P&gt;In my example fld= 101-281 then I am expecting&amp;nbsp; to print 'ERROR: 101281 starts with Numeric", My second one is mostly my name starts with 'SC' how can I control the second condition using the ':' colon in the % if condition to print 'ERROR:&amp;amp;dsn ( numeric values of the 'fld' name)&amp;nbsp; starts with alpha character SC"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to use ':' in dataset condition but not sure how to use it the macro, instead of writing every&amp;nbsp; name in the 'If' Condtion.&lt;/P&gt;
&lt;P&gt;Thank you for your inputs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro check (fld=);
*%global output dsn;
%let output = %sysfunc(compress(&amp;amp;fld, "-"));


%if &amp;amp;output ^=: SC %then %do;
	%let dsn= %substr(&amp;amp;output.,1,6);

data _281;
	putlog  "ERROR: &amp;amp;dsn starts with Numeric";
run;

%end;

%else %if &amp;amp;output = :SC %then %do;
	%let dsn= %substr(&amp;amp;output.,3,6);
data _109;
	putlog  "ERROR:&amp;amp;dsn starts with alpha character SC";
run;
%end;

%put &amp;amp;output &amp;amp;dsn;


%mend;

%check (fld= 101-281);
%check (fld= 121-281);
%check (fld= SC100426);
%check (fld= SC100843);
%check (fld= SC102126);
%check (fld= SC105143);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Oct 2022 01:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Colon-to-resolve-a-condition-in-Macro/m-p/841562#M332753</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-31T01:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: System Option for Displaying Macro Source Code on Log Only Once</title>
      <link>https://communities.sas.com/t5/SASware-Ballot-Ideas/System-Option-for-Displaying-Macro-Source-Code-on-Log-Only-Once/idc-p/841561#M4813</link>
      <description>&lt;P&gt;MPRINT is not showing the macro code, it's showing the SAS code that the macro generates.&amp;nbsp; Each time a macro is called, it may generate different SAS code (depending on the parameters passed, the input data, global macro variables, etc etc.)&amp;nbsp; So if the admins want to be able to read the log to see all the SAS code executed (which I think is reasonable, I always leave MPRINT on), I don't think an option to show the results of MPRINT once per macro called would meet that need.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 23:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SASware-Ballot-Ideas/System-Option-for-Displaying-Macro-Source-Code-on-Log-Only-Once/idc-p/841561#M4813</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-10-30T23:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: So it is all spam I write ... (or: What on Earth... )</title>
      <link>https://communities.sas.com/t5/All-Things-Community/So-it-is-all-spam-I-write-or-What-on-Earth/m-p/841560#M4717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's got to be frustrating.&amp;nbsp; Please see this post with tips:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Community-Memo/What-to-do-when-our-spam-filter-traps-your-post/ba-p/454914" target="_blank"&gt;https://communities.sas.com/t5/Community-Memo/What-to-do-when-our-spam-filter-traps-your-post/ba-p/454914&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd suggest emailing communities@sas.com to report the overactive spam filter.&amp;nbsp; The admins should be able to find your messages and un-spam them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 23:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/So-it-is-all-spam-I-write-or-What-on-Earth/m-p/841560#M4717</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-10-30T23:33:26Z</dc:date>
    </item>
    <item>
      <title>So it is all spam I write ... (or: What on Earth... )</title>
      <link>https://communities.sas.com/t5/All-Things-Community/So-it-is-all-spam-I-write-or-What-on-Earth/m-p/841559#M4716</link>
      <description>&lt;P&gt;Dear Community!&lt;/P&gt;&lt;P&gt;I find my postings being silently deleted quite immediately after being posted ... 4 out of 7 today. Not only are they deleted, they vanish without a trace in the haze and are neither listed in my profile (under recent postings) nor do I get any feedback that they have been deleted for a certain reason (not speaking of mentioning the reason itself).&lt;/P&gt;&lt;P&gt;I would suggest to at least provide some sort of feedback in cases like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is superfluous to mention that I am pretty upset with that. If you are not interested in my contributions, fair enough ... but you should at least let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 22:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/So-it-is-all-spam-I-write-or-What-on-Earth/m-p/841559#M4716</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2022-10-30T22:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use PROC SQL to merge more than two datasets by one common variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Use-PROC-SQL-to-merge-more-than-two-datasets-by-one-common/m-p/841558#M82175</link>
      <description>&lt;P&gt;Thank you! I used the first solution you mentioned.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 22:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Use-PROC-SQL-to-merge-more-than-two-datasets-by-one-common/m-p/841558#M82175</guid>
      <dc:creator>SanKH1</dc:creator>
      <dc:date>2022-10-30T22:22:12Z</dc:date>
    </item>
    <item>
      <title>recode catergorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/recode-catergorical-variables/m-p/841557#M332752</link>
      <description>&lt;P&gt;i am trying to recode my district variables so i can use proc reg and its not working .&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data flgrads;&lt;BR /&gt;input districts $ 1-9 year $ 10-20 percentage;&lt;BR /&gt;datalines;&lt;BR /&gt;alachua 2016-2017 82.7&lt;BR /&gt;alachua 2017-2018 88&lt;BR /&gt;alachua 2018-2019 88.5&lt;BR /&gt;alachua 2019-2020 90.4&lt;BR /&gt;alachua 2020-2021 86.6&lt;BR /&gt;baker 2016-2017 81&lt;BR /&gt;baker 2017-2018 75.5&lt;BR /&gt;baker 2018-2019 78.8&lt;BR /&gt;baker 2019-2020 84.5&lt;BR /&gt;baker 2020-2021 85.7&lt;BR /&gt;bay 2016-2017 78.0&lt;BR /&gt;bay 2017-2018 81.1&lt;BR /&gt;bay 2018-2019 82.5&lt;BR /&gt;bay 2019-2020 88.5&lt;BR /&gt;bay 2020-2021 90.2&lt;BR /&gt;bradford 2016-2017 78.9&lt;BR /&gt;bradford 2017-2018 89&lt;BR /&gt;bradford 2018-2019 87.7&lt;BR /&gt;bradford 2019-2020 98.2&lt;BR /&gt;bradford 2020-2021 85&lt;BR /&gt;brevard 2016-2017 85.9&lt;BR /&gt;brevard 2017-2018 88.1&lt;BR /&gt;brevard 2018-2019 88.3&lt;BR /&gt;brevard 2019-2020 90.3&lt;BR /&gt;brevard 2020-2021 90.6&lt;BR /&gt;broward 2016-2017 81&lt;BR /&gt;broward 2017-2018 84.3&lt;BR /&gt;broward 2018-2019 86.2&lt;BR /&gt;broward 2019-2020 89.4&lt;BR /&gt;broward 2020-2021 89.1&lt;BR /&gt;calhoun 2016-2017 80.9&lt;BR /&gt;calhoun 2017-2018 86.9&lt;BR /&gt;calhoun 2018-2019 87.9&lt;BR /&gt;calhoun 2019-2020 89.9&lt;BR /&gt;calhoun 2020-2021 93.1&lt;BR /&gt;Charlotte 2016-2017 81.0&lt;BR /&gt;Charlotte 2017-2018 87.6&lt;BR /&gt;Charlotte 2018-2019 86.4&lt;BR /&gt;Charlotte 2019-2020 90.4&lt;BR /&gt;Charlotte 2020-2021 90.9&lt;BR /&gt;Citrus 2016-2017 78.9&lt;BR /&gt;Citrus 2017-2018 84.1&lt;BR /&gt;Citrus 2018-2019 86.0&lt;BR /&gt;Citrus 2019-2020 87.1&lt;BR /&gt;Citrus 2020-2021 88.1&lt;BR /&gt;Clay 2016-2017 88.4&lt;BR /&gt;Clay 2017-2018 91.1&lt;BR /&gt;Clay 2018-2019 91.9&lt;BR /&gt;Clay 2019-2020 93.4&lt;BR /&gt;Clay 2020-2021 92.7&lt;BR /&gt;Collier 2016-2017 88.2&lt;BR /&gt;Collier 2017-2018 91.9&lt;BR /&gt;Collier 2018-2019 91.9&lt;BR /&gt;Collier 2019-2020 92.2&lt;BR /&gt;Collier 2020-2021 92.7&lt;BR /&gt;Columbia 2016-2017 70.7&lt;BR /&gt;Columbia 2017-2018 88.4&lt;BR /&gt;Columbia 2018-2019 92.4&lt;BR /&gt;Columbia 2019-2020 95.4&lt;BR /&gt;Columbia 2020-2021 95.6&lt;BR /&gt;MiamiDade 2016-2017 80.7&lt;BR /&gt;MiamiDade 2017-2018 85.4&lt;BR /&gt;MiamiDade 2018-2019 85.6&lt;BR /&gt;MiamiDade 2019-2020 89.6&lt;BR /&gt;MiamiDade 2020-2021 90.1&lt;BR /&gt;DeSoto 2016-2017 63.8&lt;BR /&gt;DeSoto 2017-2018 60.9&lt;BR /&gt;DeSoto 2018-2019 71.3&lt;BR /&gt;DeSoto 2019-2020 84.6&lt;BR /&gt;DeSoto 2020-2021 82&lt;BR /&gt;Dixie 2016-2017 89.5&lt;BR /&gt;Dixie 2017-2018 96.9&lt;BR /&gt;Dixie 2018-2019 90.6&lt;BR /&gt;Dixie 2019-2020 89.8&lt;BR /&gt;Dixie 2020-2021 84&lt;BR /&gt;Duval 2016-2017 80.8&lt;BR /&gt;Duval 2017-2018 85.1&lt;BR /&gt;Duval 2018-2019 86.5&lt;BR /&gt;Duval 2019-2020 90.2&lt;BR /&gt;Duval 2020-2021 89.6&lt;BR /&gt;;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;BR /&gt;data flgrads2;&lt;BR /&gt;set flgrads;&lt;BR /&gt;Alachua= (district= 0);&lt;BR /&gt;Baker= (districts= 1);&lt;BR /&gt;Bay = (districts= 2);&lt;BR /&gt;Bradford= (districts= 3);&lt;BR /&gt;Brevard= (districts= 4);&lt;BR /&gt;Broward= (districts= 5);&lt;BR /&gt;Calhoun= (districts= 6);&lt;BR /&gt;Charlotte= (districts= 7);&lt;BR /&gt;Citrus= (districts= 8);&lt;BR /&gt;Clay= (districts= 9);&lt;BR /&gt;Collier= (districts= 10);&lt;BR /&gt;Columbia= (districts= 11);&lt;BR /&gt;MiamiDade= (districts= 12);&lt;BR /&gt;DeSoto= (districts= 13);&lt;BR /&gt;Dixie= (districts= 14);&lt;BR /&gt;Duval= (districts= 15);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 22:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/recode-catergorical-variables/m-p/841557#M332752</guid>
      <dc:creator>Nyac122</dc:creator>
      <dc:date>2022-10-30T22:12:30Z</dc:date>
    </item>
    <item>
      <title>System Option for Displaying Macro Source Code on Log Only Once</title>
      <link>https://communities.sas.com/t5/SASware-Ballot-Ideas/System-Option-for-Displaying-Macro-Source-Code-on-Log-Only-Once/idi-p/841555</link>
      <description>&lt;P&gt;Due to cybersecurity restrictions, our SAS Site Administrators have enforced system options like SOURCE, SOURCE2 and MPRINT on every SAS session to make sure that every single line of submitted code is printed on the SAS Log.&lt;BR /&gt;Options SOURCE and SOURCE2 pose no particular problem.&amp;nbsp; But a locked-in MPRINT option has the unwanted effect of multiplying the number of lines of Macro Code being printed on the Log, every time a Macro is invoked.&lt;BR /&gt;Having a system option that displays the Macro Code only once (regardless of how many times the Macro is called in the program) would be very helpful to reduce the number of lines displayed on the Log.&lt;BR /&gt;MPRINT is a debugging option that works well as it does.&lt;BR /&gt;The new option could be named somewhat differently (maybe MLOG ?).&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 22:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SASware-Ballot-Ideas/System-Option-for-Displaying-Macro-Source-Code-on-Log-Only-Once/idi-p/841555</guid>
      <dc:creator>F_Pierantoni</dc:creator>
      <dc:date>2022-10-30T22:02:34Z</dc:date>
    </item>
  </channel>
</rss>

