<?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>New board topics in SAS Support Communities</title>
    <link>https://communities.sas.com/</link>
    <description>SAS Support Communities</description>
    <pubDate>Mon, 31 Oct 2022 07:03:52 GMT</pubDate>
    <dc:creator>Community</dc:creator>
    <dc:date>2022-10-31T07:03:52Z</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>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>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>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>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>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>Fun With SAS ODS Graphics: Happy Halloween Ellipses Pumpkin</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Halloween-Ellipses-Pumpkin/m-p/841553#M23234</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HappyHalloween2022.png" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76784i9DCF7112D9477DBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="HappyHalloween2022.png" alt="HappyHalloween2022.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another holiday, another SAS ODS Graphics &lt;A href="http://itsmejd.com/easy-diy-halloween-cards-make-minimal-supplies" target="_self"&gt;"craft project"&lt;/A&gt;. Happy Halloween, all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: Happy Halloween Ellipses Pumpkin
  Inspired by neat craft project at itsmejd.com/easy-diy-halloween-cards-make-minimal-supplies;
  
data pumpkin;          * Need one "dummy" point to use ellipseparm statements;
retain x y 0;  
                       * SAS ODS Graphics GTL Halloween greetings;
ods graphics on / reset antialias width=4in height=5.5in;
proc template;         * 5 ellipseparms + 2 drawrectangles + 1 drawtext (and 1 "dummy" scatterplot);
define statgraph pumpkin;
begingraph / backgroundcolor=black border=false pad=0in; 
layout overlay / xaxisopts=(display=none linearopts=(viewmin=-1 viewmax=1) offsetmin=0 offsetmax=0) 
                 yaxisopts=(display=none linearopts=(viewmin=-1 viewmax=1.1) offsetmin=.05 offsetmax=.15) 
                 walldisplay=none border=false outerpad=0in;
scatterplot x=x y=y;    * "Dummy" plot - single point (x=0, y=0), needed for ellipseparm); 
drawrectangle x=.05 y=1 width=.3 height=.6 / layer=back heightunit=data widthunit=data drawspace=datavalue rotate=-20 display=(fill) fillAttrs=(color=cx2EB62C); * Green "stem";
ellipseparm semiminor=.5 semimajor=1 xorigin=-1 yorigin=y slope=. / display=(fill outline) fillattrs=(color=cxFF7518) outlineattrs=(color=black); * Arranged to show desired outlines; 
ellipseparm semiminor=.5 semimajor=1 xorigin=-.5 yorigin=y slope=. / display=(fill outline) fillattrs=(color=cxFF7518) outlineattrs=(color=black); 
ellipseparm semiminor=.5 semimajor=1 xorigin=1 yorigin=y slope=. / display=(fill outline) fillattrs=(color=cxFF7518) outlineattrs=(color=black); 
ellipseparm semiminor=.5 semimajor=1 xorigin=.5 yorigin=y slope=. / display=(fill outline) fillattrs=(color=cxFF7518) outlineattrs=(color=black); 
ellipseparm semiminor=.5 semimajor=1 xorigin=0 yorigin=y slope=. / display=(fill outline) fillattrs=(color=cxFF7518) outlineattrs=(color=black); 
drawrectangle x=0 y=-.15 width=2 height=.5 / anchor=top layer=front heightunit=data widthunit=data drawspace=datavalue display=(fill) fillAttrs=(color=black); 
drawtext textattrs=(size=20pt weight=bold color=white) "HAPPY HALLOWEEN!" /
         layer=front anchor=center justify=center width=100 widthunit=percent xspace=datavalue yspace=datavalue x=0 y=-.4;
endlayout;
endgraph;
end;

proc sgrender data=pumpkin(obs=1) template=pumpkin; * Generate chart!;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;BEFORE COLORING&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HappyHalloween2022Wireframe.png" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76785iD39F84561A3AEDBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="HappyHalloween2022Wireframe.png" alt="HappyHalloween2022Wireframe.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 21:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Halloween-Ellipses-Pumpkin/m-p/841553#M23234</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2022-10-30T21:45:58Z</dc:date>
    </item>
    <item>
      <title>SET BULKLOAD OPTIONS (POSTGRES ENGINE) TO SCD2 TRANSFORMATION IN DIS</title>
      <link>https://communities.sas.com/t5/Developers/SET-BULKLOAD-OPTIONS-POSTGRES-ENGINE-TO-SCD2-TRANSFORMATION-IN/m-p/841544#M6199</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I set BULK LOAD option as active, SCD2 transformation create the following code (for ETLS_CLOSE as example):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;      proc append base = EXT_VI."W6B3BTSM"n
         (
            BULKLOAD=YES
         )
         data = work."ETLS_CLOSE"n force; 
      run;&lt;/PRE&gt;&lt;P&gt;But this code doesn't work. I need to set "bl_psql_path='/PATH' " and "bl_delete_datafile=no" dataset option to BULKLOAD works properly.&lt;/P&gt;&lt;P&gt;I aware that I can change the automatic generated code to add these options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to configure these options at the transformation level? Or a way that I can add these options without change the code manually?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 19:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SET-BULKLOAD-OPTIONS-POSTGRES-ENGINE-TO-SCD2-TRANSFORMATION-IN/m-p/841544#M6199</guid>
      <dc:creator>Egrodrigues2014</dc:creator>
      <dc:date>2022-10-30T19:49:47Z</dc:date>
    </item>
    <item>
      <title>SAS BI Web services - RESTful JSON response - strign parameters only</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-BI-Web-services-RESTful-JSON-response-strign-parameters-only/m-p/841534#M332750</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have created a stored process with input and output parameters that I'm trying to call using SAS BI Web Services. My endpoint is JSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;*ProcessBody; 
 
%global BANK 
        CALCULATIONTYPE 
        COMPANYID 
        CUSTOMERID 
        MODELCODE 
        PREVIOUSCALCULATIONDATE 
        PREVIOUSEXPECTEDLOSS 
        PREVIOUSLOSSGIVENDEFAULT 
        PREVIOUSPROBABILITYOFDEFAULT 
        QUESTIONNAIREGRADE; 
 
%STPBEGIN; 
 
*  End EG generated code (do not edit this line); 
 
 
proc printto log=" D:\RiskModels\RestLogs\web_service_test_%sysfunc(today(),yymmdd10.)-%sysfunc(compress(%sysfunc(time( ),time.),":")).log";
   run;
libname srcdata "D:\RiskModels\SourceData";
proc sql noprint;
select distinct Client_LGD format=16.8 into :lgd from srcdata.lgd_table where 
ID =&amp;amp;customerID;
quit;
%let probabilityOfDefault=0.5;
%let lossGivenDefault = &amp;amp;lgd;
%let expectedLoss = %sysevalf(&amp;amp;lgd. * &amp;amp;probabilityOfDefault.);


*  Begin EG generated code (do not edit this line); 
;*';*";*/;quit; 
%STPEND; 
 
*  End EG generated code (do not edit this line); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My output parameters were defined as DOUBLE, but in the response in my API tester tool (POSTMAN for example),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;they all show as STRING.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "outputParameters": {
        "expectedLoss": "0.22068032",
        "probabilityOfDefault": "0.5",
        "lossGivenDefault": "0.44136064"
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I looked in SAS documentation the example shows a response with string variables only.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anyone succeed transfer numeric parameters?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/itechcdc/9.4/wbsvcdg/n1wblekhip1yrln1fv2s5b6a2d9f.htm" target="_self"&gt;https://documentation.sas.com/doc/en/itechcdc/9.4/wbsvcdg/n1wblekhip1yrln1fv2s5b6a2d9f.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 985px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76782i6FCE4D9876E23695/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nufar.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 13:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-BI-Web-services-RESTful-JSON-response-strign-parameters-only/m-p/841534#M332750</guid>
      <dc:creator>NY</dc:creator>
      <dc:date>2022-10-30T13:52:19Z</dc:date>
    </item>
    <item>
      <title>looking for sas code for proc lifereg and proc mianalyze combined together</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/looking-for-sas-code-for-proc-lifereg-and-proc-mianalyze/m-p/841507#M41723</link>
      <description>&lt;P&gt;Hi All SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for SAS code that can combine proc lifereg with Weibull distribution and proc mianalyze and the proc lifereg starts with the intercept only and adds one variable a time until all variables of interest are added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have spent some time searching so far nothing addressing all of the above requirements are found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone of you provide the SAS codes or point me to the existing postings or paper please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 09:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/looking-for-sas-code-for-proc-lifereg-and-proc-mianalyze/m-p/841507#M41723</guid>
      <dc:creator>redspring</dc:creator>
      <dc:date>2022-10-30T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Do I need to cancel my subscription?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Do-I-need-to-cancel-my-subscription/m-p/841493#M1236</link>
      <description>&lt;P&gt;I signed up for the 30 day free trial, I can not remember if I gave SAS Institute my credit card details or not. I have finished my Programming 2 course with in the 30 days, and I am not impressed to say the least, and I do NOT want to be changed $1200 AUD or any subscription fees after the 30 days end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I cancel the subscription right now as I am not interested in any other courses.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 22:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Do-I-need-to-cancel-my-subscription/m-p/841493#M1236</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-10-29T22:06:28Z</dc:date>
    </item>
    <item>
      <title>Finding inconsistencies within a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Finding-inconsistencies-within-a-group/m-p/841483#M82170</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a very large dataset and I need to be able to locate data discrepancies to exclude from my rate calculation.&amp;nbsp; In my example below, column Verd1 is the main identifier and column LocalVerd is another identifier created by a vendor.&amp;nbsp; I need to figure out how to code to identify erroneous data within a group.&amp;nbsp; In the example below, under column Plan, Pacific would pass and is correct as the rows within Pacific contain consistent identifier information (Same Verd1 and same localVerd).&amp;nbsp; However, Plan Delta for product X33ui will need to be excluded as this product (X33ui) contain two different LocalVerd identifiers (PX333 and Rx988) for this same Verd1 identifier (Twa88)- LocalVerd should be PX333 but reported Rx988. &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to code to output table containing all the Plan and product containing inconsistencies?&amp;nbsp; &amp;nbsp; Data table is below and my output table I would like is the second table.&amp;nbsp; Thank you in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="256"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Plan&lt;/TD&gt;
&lt;TD width="64"&gt;Product&lt;/TD&gt;
&lt;TD width="64"&gt;Verd1&lt;/TD&gt;
&lt;TD width="64"&gt;LocalVerd&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Delta&lt;/TD&gt;
&lt;TD&gt;X33ui&lt;/TD&gt;
&lt;TD&gt;Twa88&lt;/TD&gt;
&lt;TD&gt;PX333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Delta&lt;/TD&gt;
&lt;TD&gt;X33ui&lt;/TD&gt;
&lt;TD&gt;Twa88&lt;/TD&gt;
&lt;TD&gt;PX333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Delta&lt;/TD&gt;
&lt;TD&gt;X33ui&lt;/TD&gt;
&lt;TD&gt;Twa88&lt;/TD&gt;
&lt;TD&gt;RX988&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Pacific&lt;/TD&gt;
&lt;TD&gt;V933aa&lt;/TD&gt;
&lt;TD&gt;Lbl322&lt;/TD&gt;
&lt;TD&gt;QT770&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Pacific&lt;/TD&gt;
&lt;TD&gt;V933aa&lt;/TD&gt;
&lt;TD&gt;Lbl322&lt;/TD&gt;
&lt;TD&gt;QT770&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;Wanted OUTPUT&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Plan&lt;/TD&gt;
&lt;TD&gt;Product&lt;/TD&gt;
&lt;TD&gt;Verd1&lt;/TD&gt;
&lt;TD&gt;LocalVerd&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Delta&lt;/TD&gt;
&lt;TD&gt;X33ui&lt;/TD&gt;
&lt;TD&gt;Twa88&lt;/TD&gt;
&lt;TD&gt;PX333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Delta&lt;/TD&gt;
&lt;TD&gt;X33ui&lt;/TD&gt;
&lt;TD&gt;Twa88&lt;/TD&gt;
&lt;TD&gt;PX333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Delta&lt;/TD&gt;
&lt;TD&gt;X33ui&lt;/TD&gt;
&lt;TD&gt;Twa88&lt;/TD&gt;
&lt;TD&gt;RX988&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 20:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Finding-inconsistencies-within-a-group/m-p/841483#M82170</guid>
      <dc:creator>Sanna_K</dc:creator>
      <dc:date>2022-10-29T20:39:09Z</dc:date>
    </item>
    <item>
      <title>Now available on SAS Community: SAS Explore 2022 sessions</title>
      <link>https://communities.sas.com/t5/SAS-Explore-Discussion/Now-available-on-SAS-Community-SAS-Explore-2022-sessions/m-p/841459#M27</link>
      <description>&lt;P&gt;All of the great technical content that you saw (or somehow missed) from SAS Explore 2022 is now available &lt;STRONG&gt;here&lt;/STRONG&gt;&amp;nbsp;in the SAS Explore hub on SAS Communities. Over 80 presentations -- including SAS training, User Presentations, Super Demos, R&amp;amp;D Breakout sessions and more -- can be found in the &lt;A href="https://communities.sas.com/t5/SAS-Explore-Presentations/tkb-p/SAS_Exploretkb-board" target="_self"&gt;SAS Explore Presentations library&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Explore-Presentations/tkb-p/SAS_Exploretkb-board" target="_self"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="explore-vids.png" style="width: 857px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76747iB46CC419DF380C9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="explore-vids.png" alt="explore-vids.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also find &lt;A href="https://video.sas.com/category/videos/sas-explore-2022" target="_self"&gt;these sessions along with select plenary presentations&lt;/A&gt; on the SAS Video Portal. And &lt;A href="https://www.youtube.com/sasusers" target="_self"&gt;watch/subscribe to the SAS Users YouTube channel&lt;/A&gt; -- selected presentations are coming there to live alongside regular programming of hundreds of SAS tutorials and other SAS user-focused shows.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 14:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Explore-Discussion/Now-available-on-SAS-Community-SAS-Explore-2022-sessions/m-p/841459#M27</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-10-29T14:41:22Z</dc:date>
    </item>
    <item>
      <title>Perl-regular expressions in SAS to add imputations to date and highlight data errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expressions-in-SAS-to-add-imputations-to-date-and/m-p/841450#M332731</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to use perl-regular expressions to impute missing datetime variables to eventually put in a macro as the imputed variable (e.g adtmc) is quite common in datasets. My approach works to a degree but I was wondering is it possible to further expand it to highlight uncommon data problems. Also depending on data raw datetime variables can sometimes contain a space or a T in between date and time. My current code only accounts for spacing but how can I account for both but make sure the T is removed and replaced by a space? I've provided sample data, desired output and the code I'm using currently to apply&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length ecdtc $16;
infile datalines truncover;
input @1 ecdtc $16.;
datalines;
2020-01-01 01:02
2020-01-01T01:02
2020-01-01T01:
2020-01-01T01:89
2020-01-01T
2020-01-01' '/*Space indicates a possible datetime*/
2020-01-02
2020-01
2020
junk
;;;;
run;


data want;
length ecdtc $16;
infile datalines truncover;
input @1 ecdtc $16.;
datalines;
2020-01-01 01:02
2020-01-01 01:02
2020-01-01 01:XX
2020-01-01 01:XX
2020-01-01 XX:XX
2020-01-01 XX:XX 
2020-01-02 
2020-01-XX
2020-XX-XX
junk
;;;;
run;


data want;
  set have;
  length adtmc $16;
  array vals[3] $;
  vals[1]='XXXX';
  vals[2]='-XX';
  vals[3]='-XX';
  _rx = prxparse('/(\d{4})(-\d{2})?(-\d{2})?( \d{2}:\d{2})?/ios');
  _rc = prxmatch(_rx,ecdtc);   *this does the matching.  Probably should check for value of _rc to make sure it matched before continuing.;
  do _i = 1 to 4;   *now iterate through the four capture buffers;
    _rt = prxposn(_rx,_i,ecdtc);
    if _i le 3 then vals[_i] = coalescec(_rt,vals[_i]);
    else timepart = _rt;  *we do the timepart outside the array since it needs to be catted with a space while the others do not, easier this way;
  end;
  
  adtmc = cats(of vals[*]);  *cat them together now - if you do not capture the hyphen then use catx ('-',of vals[*]) instead;
  if timepart ne ' ' then adtmc = catx(' ',adtmc,timepart);  *and append the timepart after.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Oct 2022 21:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expressions-in-SAS-to-add-imputations-to-date-and/m-p/841450#M332731</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2022-10-29T21:49:48Z</dc:date>
    </item>
    <item>
      <title>DO BLOCK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-BLOCK/m-p/841429#M332713</link>
      <description>Data chk;&lt;BR /&gt;do name="mk", "pk", "kk", "ck"; output;&lt;BR /&gt;do ord=1,2,3,4; output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;How can i get my desired output like below&lt;BR /&gt;______________________&lt;BR /&gt;OBS Name Ord&lt;BR /&gt;_____________________&lt;BR /&gt;1 Mk 1&lt;BR /&gt;2 pk 2&lt;BR /&gt;3 kk 3&lt;BR /&gt;4 ck 4&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Oct 2022 07:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-BLOCK/m-p/841429#M332713</guid>
      <dc:creator>MK_96</dc:creator>
      <dc:date>2022-10-29T07:57:28Z</dc:date>
    </item>
    <item>
      <title>PROC SURVEYLOGISTIC Domain with interaction term doesn't work?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SURVEYLOGISTIC-Domain-with-interaction-term-doesn-t-work/m-p/841427#M82168</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When I tried to include an interaction term (VTQ200A*income) in the PROC SURVEYLOGISTIC statement, it wouldn't include the ORs for the VTQ200A variable when I stratified it by the income variable using the DOMAIN statement. It would only include&amp;nbsp;VTQ200A when&amp;nbsp;VTQ200A*income was not part of the model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also tried making another dataset that was exactly same as the other one I was using but had an added variable,&amp;nbsp;VTQ200A_income, that was equal to the interaction term (VTQ200A_income = VTQ200A*income).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I only really learned how to do PROC LOGISTIC and not PROC SURVEYLOGISTIC, so I'm not sure how to account for effect modification and stratification correctly. This was just my attempt using what I learned about PROC LOGISTIC. Since income seems to be an effect modifier of&amp;nbsp;VTQ200A, I want to stratify the analysis by income. Is this even on the right track? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc surveylogistic data=ile.fulldata3; *adjusted model w/o interaction term;
class VTQ200A (ref="2") RIAGENDR (ref="2") race (ref="1")  income (ref="2") PAlevel (ref='1')/param=ref;
model hbp=VTQ200A income palevel RIAGENDR race  RIDAGEYR DBD895;*using this model w/o VTQ200A*income for now;
weight WTINTPRP;
run;&lt;BR /&gt;
proc surveylogistic data=ile.fulldata3; *adjusted model w/interaction term_test1;
class VTQ200A (ref="2") RIAGENDR (ref="2") race (ref="1") income (ref="2") PAlevel (ref='1')/param=ref;
model hbp= VTQ200A income RIAGENDR race palevel RIDAGEYR DBD895 VTQ200A*income; *the VTQ200A*income causes the OR for VTQ200A to not show up?;
weight WTINTPRP;
domain income;
run;&lt;BR /&gt;
data ile.fulldata_int; 
set ile.fulldata3;
VTQ200A_income =VTQ200A*income; run;&lt;BR /&gt;
proc surveylogistic data=ile.fulldata_int; *adjusted model w/interaction term_test2?;
class VTQ200A (ref="2") RIAGENDR (ref="2") race (ref="1") income (ref="2") PAlevel (ref='1')/param=ref;
model hbp= VTQ200A income RIAGENDR race palevel RIDAGEYR DBD895 VTQ200A_income;
weight WTINTPRP;
domain income;
run; *VTQ200A isnt in the OR table when I add VTQ200A*income, so I made a new var VTQ200A_income. The ORs are the same as the model without VTQ200A*income;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 04:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SURVEYLOGISTIC-Domain-with-interaction-term-doesn-t-work/m-p/841427#M82168</guid>
      <dc:creator>Niveus</dc:creator>
      <dc:date>2022-10-29T04:51:07Z</dc:date>
    </item>
    <item>
      <title>Error create table with data step in SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-create-table-with-data-step-in-SQL-Server/m-p/841415#M332708</link>
      <description>&lt;P&gt;Error create table with data step in SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Error attempting to CREATE a DBMS table. .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not indicate an error description and when executing via pass-through it does not fail, but the SCD 2 transformation generates the tables with data passing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 03:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-create-table-with-data-step-in-SQL-Server/m-p/841415#M332708</guid>
      <dc:creator>SAS_LuisBolivar</dc:creator>
      <dc:date>2022-10-29T03:25:37Z</dc:date>
    </item>
    <item>
      <title>Compile records based on rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compile-records-based-on-rules/m-p/841412#M332706</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I wanted to compile records into the target data set "want" based on some simple rules for the data I have "have" as below. The simple rules include&lt;/P&gt;
&lt;P&gt;(1) When multiple records per person have the same state info and the complementary Type_CDs, compile them into one record, for example, person1, person2, person 3, and person4.&lt;/P&gt;
&lt;P&gt;(2)&amp;nbsp;When multiple records per person have the different state info and their Type_CDs are different, the records cannot be compiled, for example, person5 and person6. However, if one record has no Type_CDs available at all, then the record with any available Type_CDs should be picked, and Person8 is this case.&lt;/P&gt;
&lt;P&gt;(3) Any other Type_CD is subset of Type_CD&amp;nbsp; 1. Because of this, any record with Type_CD=1 can overwrite other records per person if the records have the same state info. for example, Person7.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines truncover dsd;
input DummyID $ State $ Type_CD1-Type_CD6
;
datalines;
Person1,NJ,,,,15,1,1
Person1,NJ,15,15,15,,,
Person2,NY,7,7,7,7,7,
Person2,NY,,,,,,7
Person3,NY,,,,,,7
Person3,NY,,,,7,7,
Person4,NY,,,,7,7,7
Person4,NY,7,7,7,,,
Person5,NY,7,7,7,7,7,7
Person5,CA,,,,,,4
Person6,NY,7,7,7,7,7,
Person6,NJ,,,,,,15
Person7,AR,1,1,1,1,1,1
Person7,AR,,,7,7,7,7
Person8,NY,,,,1,1,1
Person8,NJ,,,,,,
;
run;

data want;
infile datalines truncover dsd;
input DummyID $ State $ Type_CD1-Type_CD6
;
datalines;
Person1,NJ,15,15,15,15,1,1
Person2,NY,7,7,7,7,7,7
Person3,NY,,,,7,7,7
Person4,NY,7,7,7,7,7,7
Person7,AR,1,1,1,1,1,1
Person8,NY,,,,1,1,1
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions are greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 15:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compile-records-based-on-rules/m-p/841412#M332706</guid>
      <dc:creator>lichee</dc:creator>
      <dc:date>2022-10-29T15:36:30Z</dc:date>
    </item>
  </channel>
</rss>

