<?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>Ksharp Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>Ksharp Tracker</description>
    <pubDate>Thu, 23 Jul 2026 13:05:02 GMT</pubDate>
    <dc:date>2026-07-23T13:05:02Z</dc:date>
    <item>
      <title>Re: Weird SAS error messages on quoted strings and white spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-SAS-error-messages-on-quoted-strings-and-white-spaces/m-p/990997#M380312</link>
      <description>&lt;P&gt;To suppress this Note or Warning, try this option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;option &lt;STRONG&gt;noquotelenmax&lt;/STRONG&gt;;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jul 2026 06:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-SAS-error-messages-on-quoted-strings-and-white-spaces/m-p/990997#M380312</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-07-17T06:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical order of levels in proc gradar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Alphabetical-order-of-levels-in-proc-gradar/m-p/990914#M25963</link>
      <description>Tom,&lt;BR /&gt;I pad some blanks before values to customize its order.&lt;BR /&gt;Sine the blank is before any A-Z and printable characters in ASCII table, if you order these value, the value which has top blanks is the first one. &lt;BR /&gt;For example:&lt;BR /&gt;'   A' would be before 'A' or any other printable characters.&lt;BR /&gt;&lt;BR /&gt;So I use "ORDERACROSS=FORMATTED" to let sas order its formatted value to get the order I need .&lt;BR /&gt;But sometimes I think "ORDERACROSS=INTERNAL" would be that one, but after testing it ,only FORMATTED get job done .</description>
      <pubDate>Thu, 16 Jul 2026 06:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Alphabetical-order-of-levels-in-proc-gradar/m-p/990914#M25963</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-07-16T06:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical order of levels in proc gradar</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Alphabetical-order-of-levels-in-proc-gradar/m-p/990881#M25960</link>
      <description>&lt;PRE&gt;proc format;
value DM_range    1 = '20-25' 2 = '25-30' 3 = '30-35' ;
 
data wide;
input DM_range  a_flavor b_flavor c_flavor d_flavor e_flavor f_flavor g_flavor  h_flavor;
 
 
format DM_range DM_range.;
output;
 
datalines;
1 9.43  6.60  37.74 21.70 0.00  0.00 0.00 27.36
2 10.73 20.49 24.88 25.85 5.00  0.00 0.00 20.98
3 17.56 24.43 35.88 38.17 18.58 3.54 4.42 4.58
;
run;
 
proc sort data=wide out=long;
    by DM_range ;
run;
 
/* Transpose texture */
proc transpose data=long name=flavor_label out=long1(rename=(COL1 = flavor_value) );
    by DM_range;
    var a_flavor b_flavor c_flavor d_flavor e_flavor f_flavor g_flavor h_flavor;
run;  
 
  PROC PRINT DATA=long1 ;
RUN ;
 
 
/*rename levels if variable texture*/
data longnew;
length flavor_label&lt;STRONG&gt; $ 20;&lt;/STRONG&gt;
    set long1;
    if flavor_label = 'a_flavor' then flavor_label = &lt;STRONG&gt;'       Astringent';&lt;/STRONG&gt;
    else if flavor_label = 'b_flavor' then flavor_label = &lt;STRONG&gt;' Oily'&lt;/STRONG&gt;;
else if flavor_label = 'c_flavor' then flavor_label = &lt;STRONG&gt;'     Green/Grassy'&lt;/STRONG&gt;;
else if flavor_label = 'd_flavor' then flavor_label = &lt;STRONG&gt;'  Nutty';&lt;/STRONG&gt;
else if flavor_label = 'e_flavor' then flavor_label = &lt;STRONG&gt;'    Herbaceus';&lt;/STRONG&gt;
else if flavor_label = 'f_flavor' then flavor_label = &lt;STRONG&gt;'Spicy';&lt;/STRONG&gt;
else if flavor_label = 'g_flavor' then flavor_label = &lt;STRONG&gt;'      Floral';&lt;/STRONG&gt;
else if flavor_label = 'h_flavor' then flavor_label = &lt;STRONG&gt;'   None';&lt;/STRONG&gt;
run;
 
PROC PRINT DATA=longnew ;
RUN ;
 
 
 /* Set the graphics environment */
goptions reset=all cback=white border htitle=12pt htext=12pt;
footnote1  j=c h=10pt "N = 442";  
title1 j=c h=13pt 'Comparison of flavor by DM range for BL516 (relative %)';
 proc gradar data=longnew;
   chart flavor_label / freq=flavor_value  &lt;STRONG&gt;ORDERACROSS=FORMATTED&lt;/STRONG&gt;
                 overlay=DM_range
starcircles=(25 50)
                 cstarcircles=black
                 cstars=(aqua red green)
                 wstars=(2 2 2)
                 cframe=white
                 ;
run;
quit;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1784099370976.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/116438i0E1024E834356C4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1784099370976.png" alt="Ksharp_0-1784099370976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 07:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Alphabetical-order-of-levels-in-proc-gradar/m-p/990881#M25960</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-07-15T07:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values over repeated variable values</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Sum-values-over-repeated-variable-values/m-p/990689#M43997</link>
      <description>&lt;P&gt;As Tom said, you need to transform these characters into numbers and calculated/sum it again and concatenate them back .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data mytab;
    length 
           Value $15 
           VAR1 $80 
           VAR2 $50 
           VAR3 $50;
    
    infile datalines delimiter='|' missover dsd truncover;
    input  Value $ VAR1 $ VAR2 $ VAR3 $;
datalines;
   8 ( 20.5%)|Overall (*)||
   4 ( 10.3%)|ClassA|All|
   1 (  2.6%)||A1|A1
   1 (  2.6%)||A1|A1
   1 (  2.6%)||A1|A1
   1 (  2.6%)||A1|A1
   1 (  2.6%)||A1|A1
   1 (  2.6%)||A2|A2
   1 (  2.6%)|Class345|All|
   1 (  2.6%)||NF1|NF1
;
run;

data mytab2;
 set mytab;
 part1=input(scan(value,1,'( )'),best.);
 part2=input(scan(value,-1,'( )'),percent.);
run;
proc summary data=mytab2 ;
 by var1-var3 notsorted;
 var part1 part2;
 output out=mytab3(drop=_:) sum=;
run;
data mytab4;
 length value $ 20;
 set mytab3;
 value=catx(' ',part1,'(')||tranwrd(put(part2,percent7.1 -r),'  ',' ')||')';
 drop part1 part2;
run;

proc print data=mytab4 noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1783754834246.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/116329i5912A46FDA448E20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1783754834246.png" alt="Ksharp_0-1783754834246.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2026 07:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Sum-values-over-repeated-variable-values/m-p/990689#M43997</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-07-11T07:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate with 2 nested variables for columns, 1 sorted ascending and 1 sorted descending</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-with-2-nested-variables-for-columns-1-sorted/m-p/990647#M380302</link>
      <description>As ballardw said, it would be better if you could post some data and the desired output report.&lt;BR /&gt;So we can test your code and get output .</description>
      <pubDate>Fri, 10 Jul 2026 08:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-with-2-nested-variables-for-columns-1-sorted/m-p/990647#M380302</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-07-10T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Accuracy, format and round</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accuracy-format-and-round/m-p/990601#M380295</link>
      <description>&lt;P&gt;1)&lt;/P&gt;
&lt;P&gt;For your first question, sas is unable to store 73.75 exactly in computer sometimes, so you can't always expect the expression is equal. If you want to compare them ,the best way is using ROUND() function.&lt;/P&gt;
&lt;P&gt;if you need to display&amp;nbsp;&lt;SPAN&gt;"73.7499999999999999999999999999999999" , you need to resort to PICTURE format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;proc format;
picture fmt
low-high='09.99999999999999'
;
run;&lt;/STRONG&gt;

data test;
	x1=(36.9-31)*12.5;
	x2=73.75;
	if x1 &amp;lt;x2 then flag="Y";
put x1=  &lt;STRONG&gt;fmt32.20&lt;/STRONG&gt; x2= &lt;STRONG&gt;fmt32.20&lt;/STRONG&gt;  flag=;

    call missing(flag);
	if &lt;STRONG&gt;round(x1,0.1)&lt;/STRONG&gt; &amp;lt;&lt;STRONG&gt;round(x2,0.1)&lt;/STRONG&gt; then flag="Y";
put x1=  32.20 x2= 32.20 flag=;



    z1=round(x1,0.1);
	z2=round(x2,0.1);
put z1=  32.20 z2= 32.20;

    w1=strip(put(x1,5.1));
	w2=strip(put(x2,5.1));
put w1= w2=;
run;&lt;/PRE&gt;
&lt;PRE&gt;&lt;STRONG&gt;x1=73.74999999999999&lt;/STRONG&gt; x2=73.75000000000000 flag=Y
x1=73.75000000000000000000 x2=73.75000000000000000000 &lt;STRONG&gt;flag=&lt;/STRONG&gt;
z1=73.80000000000000000000 z2=73.80000000000000000000
w1=73.7 w2=73.8
NOTE: 数据集 WORK.TEST 有 1 个观测和 7 个变量。
NOTE: “DATA 语句”所用时间（总处理时间）:
      实际时间          0.03 秒
      CPU 时间          0.03 秒

&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your second question, in sas there is a constant epsolon:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;406  data _null_;
407  ep=constant('MACEPS');
408  put ep=;
409  run;

&lt;STRONG&gt;ep=2.220446E-16
&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Once the difference of two numbers is less than epsolon, then sas would take these two number are same, your situation is this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your third question, I also get surprise at this result. I also think&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;put(x1,5.1)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;would be like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;put(round(x1,5.1),5.1)&lt;/LI-CODE&gt;
&lt;P&gt;and would expect both are 73.8 . Not one is 73.7 and another is 73.8 .&lt;/P&gt;
&lt;P&gt;I suggest you to contact with &lt;SPAN&gt;&amp;nbsp;SAS -Technical -Support&lt;/SPAN&gt; to discover what is wrong with PUT() .&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 07:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accuracy-format-and-round/m-p/990601#M380295</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-07-09T07:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: 串聯檔案問題</title>
      <link>https://communities.sas.com/t5/New-SAS-User/%E4%B8%B2%E8%81%AF%E6%AA%94%E6%A1%88%E5%95%8F%E9%A1%8C/m-p/990114#M43966</link>
      <description>&lt;P&gt;&lt;SPAN&gt;这种情况下，UTF-8编码和wlatin1编码是不可以合并的。&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;因为&lt;/SPAN&gt;&lt;SPAN&gt;有些字符在UTF-8中可以显示，在wlatin1中不可以显示。&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;你需要将这两个SAS数据集编码转为一样的，才可以合并。&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check SAS documentation macro:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p1g1d26os4w0von1cdfh827foo3r.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p1g1d26os4w0von1cdfh827foo3r.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p1f9ghftk3fgrin16t57ub6svmet.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p1f9ghftk3fgrin16t57ub6svmet.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or my paper which is the attachment (PDF).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2026 06:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/%E4%B8%B2%E8%81%AF%E6%AA%94%E6%A1%88%E5%95%8F%E9%A1%8C/m-p/990114#M43966</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-26T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add white row before a variable value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Add-white-row-before-a-variable-value/m-p/990112#M43965</link>
      <description>&lt;P&gt;Just have some fun.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data DB;
  input class :$20. subclass $20.;
cards;
DiseaseC1 Tot  
. variant1
. variant2
DiseaseC2  Tot  
. variant1
. variant12
. variant3
. variant15
;


data want;
 merge DB DB(keep=subclass rename=(subclass=_sub) firstobs=2);
 output;
 if _sub='Tot' then do;
  call missing(of _all_);output;
 end;
 drop _sub;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jun 2026 06:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Add-white-row-before-a-variable-value/m-p/990112#M43965</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-26T06:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the grid in SGPLOT but not setting an upper limit</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Setting-the-grid-in-SGPLOT-but-not-setting-an-upper-limit/m-p/990111#M25952</link>
      <description>&lt;P&gt;Could you post dataset “druonly518” and the desired output graphic ? Without those ,it is hard to give you some advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understood what you mean, all you need to do is just adding one more option&amp;nbsp;VALUESHINT&lt;/P&gt;
&lt;PRE&gt;data have;
 set sashelp.heart;
run;


proc sort data=have(where=(bp_status is not missing)) out=have2;
by bp_status ; 
run;

proc sgplot data=have2; 
   by bp_status ;
   histogram weight /  GROUP=status scale=count transparency=0.5; 
   yaxis grid values=&lt;STRONG&gt;(0 to 1000 by 40)&lt;/STRONG&gt; &lt;STRONG&gt;VALUESHINT&lt;/STRONG&gt;;
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2026 08:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Setting-the-grid-in-SGPLOT-but-not-setting-an-upper-limit/m-p/990111#M25952</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-26T08:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: odbc performance mystery--libname access slow, but sending same SQL via pass-through is really f</title>
      <link>https://communities.sas.com/t5/SAS-Programming/odbc-performance-mystery-libname-access-slow-but-sending-same/m-p/990064#M380251</link>
      <description>1)&lt;BR /&gt;If these two tables were not too big, I suggest you to copy them into sas side and do SQL's join statement.&lt;BR /&gt;&lt;BR /&gt;proc copy in=vdw out=work noclone;&lt;BR /&gt;select utilization dx ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;Did you try option insertbuff= ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jun 2026 06:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/odbc-performance-mystery-libname-access-slow-but-sending-same/m-p/990064#M380251</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-25T06:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: LSMeans i proc mix for subgroup category</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-i-proc-mix-for-subgroup-category/m-p/989948#M49497</link>
      <description>You might need these ?&lt;BR /&gt;&lt;BR /&gt;             &lt;A href="https://support.sas.com/kb/61/830.html" target="_blank"&gt;https://support.sas.com/kb/61/830.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             &lt;A href="https://support.sas.com/kb/37/228.html" target="_blank"&gt;https://support.sas.com/kb/37/228.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jun 2026 06:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-i-proc-mix-for-subgroup-category/m-p/989948#M49497</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-22T06:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mean and Standard Deviation for Large Amounts of Data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mean-and-Standard-Deviation-for-Large-Amounts-of-Data/m-p/989935#M49490</link>
      <description>I remembered &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; wrote a blog about this topic. Check this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2026/04/06/welford-mean-var.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2026/04/06/welford-mean-var.html&lt;/A&gt;</description>
      <pubDate>Sat, 20 Jun 2026 14:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mean-and-Standard-Deviation-for-Large-Amounts-of-Data/m-p/989935#M49490</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-20T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-Data/m-p/989807#M380235</link>
      <description>&lt;P&gt;If your data include one&amp;nbsp;&lt;SPAN&gt;customer has both&amp;nbsp;NON_COE and COE rows, that would not be a problem, sas would generate two columns as you wanted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But if your data include only&amp;nbsp;&amp;nbsp;NON_COE or COE row in each customer, that is another story, you need to pad&amp;nbsp;both&amp;nbsp;NON_COE and COE rows in it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input customer flag $ count;
cards;
12345 NON_COE 2
12346 COE 5
;

data flag;
input flag $;
cards;
NON_COE
COE
;

proc sql;
create table have2 as
select a.*,coalesce(b.count,0) as count
 from 
(
select * from
(select distinct customer from have),
(select distinct flag from flag)
) as a natural left join have as b
;
quit;

proc transpose data=have2 out=want;
by customer;
var count;
id flag;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2026 07:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-Data/m-p/989807#M380235</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-18T07:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Autocorrelation in Repeated Measures Count Data with Overdispersion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Autocorrelation-in-Repeated-Measures-Count-Data-with/m-p/989732#M49482</link>
      <description>&lt;P&gt;1)Could you try&amp;nbsp;Generalized Estimating Equations model ? Like:&lt;/P&gt;
&lt;P&gt;PROC GENMOD&lt;/P&gt;
&lt;P&gt;PROC GEE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)It looks like you want to do panel data analysis. Check:&lt;/P&gt;
&lt;P&gt;PROC PANEL&lt;/P&gt;
&lt;P&gt;PROC&amp;nbsp;&lt;SPAN&gt;COUNTREG&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;can be used for repeated count responses (panel data).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But they are all under SAS/ETS module , suggest you to post it at Forecasting Forum:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 07:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Autocorrelation-in-Repeated-Measures-Count-Data-with/m-p/989732#M49482</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-17T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mixed constrast statement how to use specific examples</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-constrast-statement-how-to-use-specific-examples/m-p/989676#M49477</link>
      <description>Here is an example how to write ESTIMATE for PROC MIXED if you want to compare random effect.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://sas.service-now.com/csm/en/obtaining-subject-specific-parameter-estimates-and-tests-for-a-random?id=kb_article_view&amp;amp;sysparm_article=KB0057270" target="_blank"&gt;https://sas.service-now.com/csm/en/obtaining-subject-specific-parameter-estimates-and-tests-for-a-random?id=kb_article_view&amp;amp;sysparm_article=KB0057270&lt;/A&gt;</description>
      <pubDate>Tue, 16 Jun 2026 06:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-constrast-statement-how-to-use-specific-examples/m-p/989676#M49477</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-16T06:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS interruption and problems with reinstallation</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-interruption-and-problems-with-reinstallation/m-p/989645#M30838</link>
      <description>Try to reinstall SAS software again ?</description>
      <pubDate>Mon, 15 Jun 2026 07:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-interruption-and-problems-with-reinstallation/m-p/989645#M30838</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-15T07:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recurring question: Automatically Adjust Row Height in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recurring-question-Automatically-Adjust-Row-Height-in-Excel/m-p/989536#M380210</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;
&lt;P&gt;Could you adjust it by hand ? Just click this button when you tap a cell.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1781161154884.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/115787iBBE977C1B34F10EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1781161154884.png" alt="Ksharp_0-1781161154884.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 06:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recurring-question-Automatically-Adjust-Row-Height-in-Excel/m-p/989536#M380210</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-11T06:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Recurring question: Automatically Adjust Row Height in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recurring-question-Automatically-Adjust-Row-Height-in-Excel/m-p/989444#M380207</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;
&lt;P&gt;You could try option "tagattr=“ to avoid&amp;nbsp; &lt;SPAN&gt;wrapping&amp;nbsp;&lt;/SPAN&gt; a line when you want to outpu an excel file.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data HAVE;
  x = catx( '0D0A'x, '0000000000', '4445566778','9999999999','9991123456'); 
run;

ods excel file="c:\temp\print.xlsx" options(sheet_name='Test');          
  proc report data=HAVE nowd ;
  columns x;
  define _all_/display style={&lt;STRONG&gt;tagattr="wrap:no"&lt;/STRONG&gt;};
  run;
ods excel close;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jun 2026 07:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recurring-question-Automatically-Adjust-Row-Height-in-Excel/m-p/989444#M380207</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-10T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time by comparing conditions and dates vertically</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Calculate-time-by-comparing-conditions-and-dates-vertically/m-p/989402#M43923</link>
      <description>&lt;P&gt;Assuming the data has been sorted by ID and DATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data DB;
  input ID :$200. Event:$200. Date :date09.;
    format Date date9.;
cards;
0001 CR    01SEP2024
0001 PR    10OCT2024
0001 CR    15DEC2024
0001 PD    22MAR2025
0001 CR    08AUG2025
0001 PD    20OCT2025
0001 Death 02DEC2025
0002 CR    01SEP2024
0002 PR    10OCT2024
0002 CR    15DEC2024
0002 PD    01MAR2025
0002 CR    08AUG2025
0002 PD    20OCT2025
;

data PD;
 set DB(where=(Event='PD'));
 by ID;
 if first.id;
run;

data other;
 set DB(where=(Event not in ('PD' 'Death')));
 by ID;
 if first.id;
run;

data want;
 merge PD other(rename=(event=event2 date=date2));
 by id;
 diff=date-date2;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2026 06:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Calculate-time-by-comparing-conditions-and-dates-vertically/m-p/989402#M43923</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-09T06:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Visitnumber derivation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Visitnumber-derivation/m-p/989348#M380198</link>
      <description>&lt;P&gt;Assuming I understood what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
infile cards truncover expandtabs dlm=' ';
input USUBJID	(PARAMCD	ADTM) (:$40.)	AVISITN 	AVISIT	&amp;amp;$20. ADY	EOTDY		AVALC &amp;amp;$20. 	AVAL;
cards;
101	ABCD0102	2025-01-20T12:54:00	1	Week 1	 4	354	 	Slightly severe	 2
101	ABCD0102	2025-01-21T07:52:00	1	Week 1	 5	354	 	Slightly severe	 2
101	ABCD0102	2025-01-22T07:16:00	1	Week 1	 6	354	 	 	 
101	ABCD0102	2025-01-23T12:09:00	1	Week 1	 7	354	 	 	 
101	ABCD0102	2025-01-24T17:15:00	2	Week 2	 8	354	 	 	 
101	ABCD0102	2025-01-26T13:10:00	2	Week 2	 10	354	 	Severe	 3
101	ABCD0102	2025-01-28T11:09:00	2	Week 2	 12	354	 	Severe	 3
101	ABCD0102	2025-01-30T14:04:00	2	Week 2	 14	354	 	Slightly severe	 2
101	ABCD0102	2025-02-01T09:23:00	3	Week 3	 16	354	 	Slightly severe	 2
101	ABCD0102	2025-02-02T19:56:00	3	Week 3	 17	354	 	Slightly severe	 2
101	ABCD0102	2025-02-03T14:48:00	3	Week 3	 18	354	 	Slightly severe	 2
101	ABCD0102	2025-02-04T13:22:00	3	Week 3	 19	354	 	Slightly severe	 2
101	ABCD0102	2025-02-06T18:44:00	3	Week 3	 21	354	 	Slightly severe	 2
101	ABCD0102	2025-02-08T18:09:00	4	Week 4	 23	354	 	Slightly severe	 2
101	ABCD0102	2025-02-09T17:24:00	4	Week 4	 24	354	 	Not severe	 1
101	ABCD0102	2025-02-10T16:40:00	4	Week 4	 25	354	 	Not severe	 1
101	ABCD0102	2025-02-11T19:27:00	4	Week 4	 26	354	 	Not severe	 1
;

proc format;
invalue fmt
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9
10=10
11=11
12=12
13-15=13
16-18=14
19-21=15
22-24=16
25-27=17
28-30=18
;
data have2;
set have;
id=input(AVISITN,fmt.);
run;
proc sql;
create table want as
select * from have2
 group by  USUBJID ,PARAMCD ,id
  having AVAL =max(AVAL );
quit;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2026 07:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Visitnumber-derivation/m-p/989348#M380198</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-08T07:25:26Z</dc:date>
    </item>
  </channel>
</rss>

