<?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>SAS Procedures topics</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/bd-p/sas_procedures</link>
    <description>SAS Procedures topics</description>
    <pubDate>Thu, 22 Jul 2021 16:53:22 GMT</pubDate>
    <dc:creator>sas_procedures</dc:creator>
    <dc:date>2021-07-22T16:53:22Z</dc:date>
    <item>
      <title>Accept Self-signed certificate with PROC HTTP</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755964#M80811</link>
      <description>&lt;P&gt;Hi there, I'm trying to translate this code into SAS code with &lt;STRONG&gt;PROC HTTP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl --insecure -k  https://server/oauth/token -H "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&amp;amp;username=user&amp;amp;password=xxxx" -u client:clientsecret"&lt;/PRE&gt;&lt;P&gt;So far, I have this SAS code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc http url="&amp;amp;server_host/&amp;amp;server_endpoint_token"&lt;BR /&gt;    in=jsonin&lt;BR /&gt;    webusername="client"&lt;BR /&gt;    webpassword="clientsecret"&lt;BR /&gt;    CT="Content-Type=application/x-www-form-urlencoded"&lt;BR /&gt;    out=jsonout&lt;BR /&gt;    headerout=headout;&lt;BR /&gt;	debug level=3;&lt;BR /&gt;    headers "Accept"="application/json" ;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The problem is that I have to accept the &lt;STRONG&gt;self-signed certificate&lt;/STRONG&gt; but I don't know how to implement that in the PROC HTTP procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone know how to do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 14:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755964#M80811</guid>
      <dc:creator>valengvz</dc:creator>
      <dc:date>2021-07-22T14:49:37Z</dc:date>
    </item>
    <item>
      <title>proc lifetest Brookmeyer-Crowley confidence interval for median: conftype=?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-lifetest-Brookmeyer-Crowley-confidence-interval-for-median/m-p/755778#M80809</link>
      <description>&lt;P&gt;since SAS 9.2, the default CONFTYPE=LOGLOG in proc lifetest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if I want calculate BrookMeyer-Crowley confidence interval for the medial survival, must I set CONFTYPE = LINEAR?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I know the confidence interval I got is Brookmeyer-Crowley CI?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 22:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-lifetest-Brookmeyer-Crowley-confidence-interval-for-median/m-p/755778#M80809</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2021-07-21T22:57:08Z</dc:date>
    </item>
    <item>
      <title>t grouping is showing in bar not letter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/t-grouping-is-showing-in-bar-not-letter/m-p/754884#M80802</link>
      <description>&lt;P&gt;i want to know when i see the sas 1st time i see the t grouping comes out with letter and means but nowadays i see it is coming with means and bar diagram though the value is ok for me, it is hard to present in front of someone cause they sometimes couldn't understand the bar but they can understand the lettering.is there anyone who can help me with&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 571px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61344i476502F2A97C6806/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="it is new style" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;it is new style&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 738px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61345iCF9A20EEAC345E5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="it is old one where grouping comes with lettering" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;it is old one where grouping comes with lettering&lt;/span&gt;&lt;/span&gt; this?&lt;BR /&gt;i have attached 2 pictures for understanding my question. Number 1 is new and number 2 is the old one. please give me a solution.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 20:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/t-grouping-is-showing-in-bar-not-letter/m-p/754884#M80802</guid>
      <dc:creator>atikurmamun</dc:creator>
      <dc:date>2021-07-18T20:41:03Z</dc:date>
    </item>
    <item>
      <title>OPTION Groups Enterprise Guide versus Windowing Environment</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/OPTION-Groups-Enterprise-Guide-versus-Windowing-Environment/m-p/754055#M80795</link>
      <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;can someone explain to me, why I get a different number of OPTION Groups (and presumably also a different number of options! ) when runninng PROC OPTIONS in SAS Enterprise Guide like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options listgroups long; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which results in the following Log output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;GROUP=ADABAS ADABAS&lt;/P&gt;&lt;P&gt;GROUP=ANIMATION Animation&lt;/P&gt;&lt;P&gt;GROUP=CAS CAS Options&lt;/P&gt;&lt;P&gt;GROUP=CODEGEN Code generation&lt;/P&gt;&lt;P&gt;GROUP=COMMUNICATIONS Networking and encryption&lt;/P&gt;&lt;P&gt;GROUP=DATACOM Datacom&lt;/P&gt;&lt;P&gt;GROUP=DATAQUALITY Data Quality&lt;/P&gt;&lt;P&gt;GROUP=DB2 DB2&lt;/P&gt;&lt;P&gt;GROUP=EMAIL E-mail&lt;/P&gt;&lt;P&gt;GROUP=ENVDISPLAY Display&lt;/P&gt;&lt;P&gt;GROUP=ENVFILES Files&lt;/P&gt;&lt;P&gt;GROUP=ERRORHANDLING Error handling&lt;/P&gt;&lt;P&gt;GROUP=EXECMODES Initialization and operation&lt;/P&gt;&lt;P&gt;GROUP=EXTFILES External files&lt;/P&gt;&lt;P&gt;GROUP=GRAPHICS Driver settings&lt;/P&gt;&lt;P&gt;GROUP=HELP Help&lt;/P&gt;&lt;P&gt;GROUP=IDMS IDMS&lt;/P&gt;&lt;P&gt;GROUP=IMS IMS&lt;/P&gt;&lt;P&gt;GROUP=INPUTCONTROL Data Processing&lt;/P&gt;&lt;P&gt;GROUP=INSTALL Installation&lt;/P&gt;&lt;P&gt;GROUP=ISPF ISPF&lt;/P&gt;&lt;P&gt;GROUP=LANGUAGECONTROL Language control&lt;/P&gt;&lt;P&gt;GROUP=LISTCONTROL Procedure output&lt;/P&gt;&lt;P&gt;GROUP=LOGCONTROL SAS log&lt;/P&gt;&lt;P&gt;GROUP=LOG_LISTCONTROL SAS log and procedure output&lt;BR /&gt;GROUP=MACRO SAS macro&lt;/P&gt;&lt;P&gt;GROUP=MEMORY Memory&lt;/P&gt;&lt;P&gt;GROUP=META Metadata&lt;/P&gt;&lt;P&gt;GROUP=ODSPRINT ODS Printing&lt;/P&gt;&lt;P&gt;GROUP=PDF PDF&lt;/P&gt;&lt;P&gt;GROUP=PERFORMANCE Performance&lt;/P&gt;&lt;P&gt;GROUP=REXX REXX&lt;/P&gt;&lt;P&gt;GROUP=SASFILES SAS Files&lt;/P&gt;&lt;P&gt;GROUP=SECURITY Security&lt;/P&gt;&lt;P&gt;GROUP=SMF SMF&lt;/P&gt;&lt;P&gt;GROUP=SORT Procedure options&lt;/P&gt;&lt;P&gt;GROUP=SQL SQL&lt;/P&gt;&lt;P&gt;GROUP=SVG SVG&lt;/P&gt;&lt;P&gt;GROUP=TK TK&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;versus using the SAS Windowing Environment by opening the SAS Options Environment Window via command line:&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-left" image-alt="COMMAND_LINE_WENV.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61240i7F4BC73F9953A426/image-size/medium?v=v2&amp;amp;px=400" role="button" title="COMMAND_LINE_WENV.jpg" alt="COMMAND_LINE_WENV.jpg" /&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;and then counting the OPTION GROUPS, that are shown:&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="OPTION_Groups_WENV.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61241i7F3006FD1756137A/image-size/large?v=v2&amp;amp;px=999" role="button" title="OPTION_Groups_WENV.JPG" alt="OPTION_Groups_WENV.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the first case, I counted 39 Option Groups, while in the later case, I only got 31 (I did not count the "Top Folders" like "Communications", "Environment Control", etc. since they do not have any options but only seem to be an aggregation of several Option Groups).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In essence, I am observing a deviance in the sense of not being displayed of the following OPTIONS GROUPS in Windowing Environment:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ADABAS&lt;/LI&gt;&lt;LI&gt;Datacom&lt;/LI&gt;&lt;LI&gt;DB2&lt;/LI&gt;&lt;LI&gt;IDMS&lt;/LI&gt;&lt;LI&gt;IMS&lt;/LI&gt;&lt;LI&gt;ISPF&lt;/LI&gt;&lt;LI&gt;REXX&lt;/LI&gt;&lt;LI&gt;SMF&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 13:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/OPTION-Groups-Enterprise-Guide-versus-Windowing-Environment/m-p/754055#M80795</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2021-07-14T13:08:14Z</dc:date>
    </item>
    <item>
      <title>How to specify multiple terms in the macro with proc nlmixed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754013#M80786</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am seeking help to write a macro using proc nlmixed with multiple terms.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to define the model in proc nlmixed with multiple dummies (let say D1, D2, D3, D4, D5) and the interaction terms between variable X with each of those dummy variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code can be written normally as:&lt;/P&gt;
&lt;P&gt;proc nlmixed data=have;&lt;/P&gt;
&lt;P&gt;eta = int + a1*D1 + a2* D2 + a3*D3 + a4*D4 + a5*D5 + b1*D1*X + b2*D2*X + b3*D3*X + b4*D4*X + b5*D5*X;&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My actual model is much longer than that since I have up to 9 dummies and 2 variables X. In total, I will need to specify around 30 terms in my model.&amp;nbsp;Is there way to make my model specification shorter which allows me to modify the model easily?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much in advance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 09:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754013#M80786</guid>
      <dc:creator>windy</dc:creator>
      <dc:date>2021-07-14T09:16:54Z</dc:date>
    </item>
    <item>
      <title>Lookup table and fill in missing values (ACS data)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753570#M80773</link>
      <description>&lt;P class="p1"&gt;I have two tables, first and second, that contains data from the American Community Survey (ACS). The first table has missing values (always across 4 variables), whereas the second table contains values I wish to fill in for the missing values in the first table (through matching/joining by PAT_ID).&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* ACS variables at census block level */
data first;
input PAT_ID INCOME_BLOCK EDU_BLOCK UNEMPLOY_BLOCK HOMEOWNER_BLOCK @@;
datalines;
1 45810 93.82 13.07 9.32
2 35264 54.94 27.81 4.76
3 . . . .&amp;nbsp;
4 . . . .&amp;nbsp;
5 42346 18.62 1.87 1.29
6 42346 41.11 4.76 10.29
7 250001 41.11 3.02 1.29
8 115290 93.82 27.81 1.87
9 215493 21.65 10.29 3.60
10 . . . .&amp;nbsp;
11 215493 15.61 27.81 3.02
12 77521 18.62 7.17 9.32
13 215493 54.94 5.95 27.81
14 . . . .&amp;nbsp;
15 115290 34.35 1.29 9.32
16 30872 34.35 10.29 7.17
17 105039 15.61 4.76 13.07
18 . . . .&amp;nbsp;&amp;nbsp;
19 38964 9.55 4.76 2.45
20 38964 54.94 10.29 10.29
;

/* variables at the zipcode level (INCOME_ZIPCODE EDU_ZIPCODE UNEMPLOY_ZIPCODE HOMEOWNER_ZIPCODE)
 but named the same as above to help with merging*/ 
data second; 
input PAT_ID INCOME_BLOCK EDU_BLOCK UNEMPLOY_BLOCK HOMEOWNER_BLOCK @@; 
datalines; 
1 50127 8.33 35.00 82.71 
2 43578 29.01 44.06 58.68 
3 36251 14.93 50.14 62.01 
4 136686 14.93 29.44 67.86 
5 136686 22.49 33.52 87.99 
6 43578 22.49 50.14 87.99 
7 32374 10.86 33.52 64.28 
8 39755 7.51 56.55 58.68 
9 34548 12.48 56.55 80.46 
10 34548 14.93 38.84 58.68 
11 50127 72.73 31.91 82.71 
12 50127 9.22 50.14 87.99 
13 37981 14.93 44.06 75.23 
14 61270 8.33 41.37 87.99 
15 57101 8.33 50.14 80.46 
16 36251 4.79 38.84 62.01 
17 136686 8.33 48.14 80.46 
18 37981 72.73 31.91 67.86 
19 50127 9.22 33.52 62.01 
20 136686 19.81 41.37 62.01 
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* values filled in for missing are from zip-code level instead of census block level&amp;nbsp; &amp;nbsp;*/&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;data want;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;input PAT_ID INCOME_BLOCK EDU_BLOCK UNEMPLOY_BLOCK HOMEOWNER_BLOCK @@;
datalines;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;1 45810 93.82 13.07 9.32&lt;BR /&gt;2 35264 54.94 27.81 4.76&lt;BR /&gt;3&amp;nbsp;36251 14.93 50.14 62.01&amp;nbsp;&lt;BR /&gt;4&amp;nbsp;136686 14.93 29.44 67.86 &lt;BR /&gt;5 42346 18.62 1.87 1.29&lt;BR /&gt;6 42346 41.11 4.76 10.29&lt;BR /&gt;7 250001 41.11 3.02 1.29&lt;BR /&gt;8 115290 93.82 27.81 1.87&lt;BR /&gt;9 215493 21.65 10.29 3.60&lt;BR /&gt;10&amp;nbsp;34548 14.93 38.84 58.68&amp;nbsp;&lt;BR /&gt;11 215493 15.61 27.81 3.02&lt;BR /&gt;12 77521 18.62 7.17 9.32&lt;BR /&gt;13 215493 54.94 5.95 27.81&lt;BR /&gt;14&amp;nbsp;61270 8.33 41.37 87.99 &lt;BR /&gt;15 115290 34.35 1.29 9.32&lt;BR /&gt;16 30872 34.35 10.29 7.17&lt;BR /&gt;17 105039 15.61 4.76 13.07&lt;BR /&gt;18 37981 72.73 31.91 67.86 &amp;nbsp;&lt;BR /&gt;19 38964 9.55 4.76 2.45&lt;BR /&gt;20 38964 54.94 10.29 10.29&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 20:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753570#M80773</guid>
      <dc:creator>PharmlyDoc</dc:creator>
      <dc:date>2021-07-12T20:12:00Z</dc:date>
    </item>
    <item>
      <title>How to print only first page ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-print-only-first-page-ODS-PDF/m-p/753450#M80772</link>
      <description>Hello!&lt;BR /&gt;I’ve got quite big proc tabulate report on 90 pages. I need to print it out on PDF, but only the first page. How do I do it?</description>
      <pubDate>Mon, 12 Jul 2021 09:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-print-only-first-page-ODS-PDF/m-p/753450#M80772</guid>
      <dc:creator>Easybeat</dc:creator>
      <dc:date>2021-07-12T09:48:39Z</dc:date>
    </item>
    <item>
      <title>Renaming variable based on a correlation file and Subquerry error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Renaming-variable-based-on-a-correlation-file-and-Subquerry/m-p/753190#M80771</link>
      <description>&lt;P&gt;Hello, I am having a file&amp;nbsp; with data fragmentation.&amp;nbsp;The variable "Structure_name" (in the file WA.WA_datanewname) has 2 ID for the same bridge and I'm trying to make it 1 ID using a correlation file (fh_wa02) that was given to me. The correlation file has old_structure_number_008 and&amp;nbsp;New_structure_number_008, so basically replace I want to replace the old_structure_number_008 with the&amp;nbsp;New_structure_number_008 without lossing any data. But I am having 2 problems:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1-&amp;nbsp; The subquery error below. I solve it by deleting that structure number which is probably not an efficient solution&lt;/P&gt;
&lt;P&gt;ERROR: Subquery evaluated to more than one row.&lt;BR /&gt;NOTE: Correlation values are: Structure_Number='WN-005051656925&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. It's seemed like I am losing some bridge ID. I have 4 bridges that I checked if the code correctly replace the&amp;nbsp; old_structure_number_008 with the&amp;nbsp;New_structure_number_008 but the code simply deleted the&amp;nbsp;old_structure_number_008 . I don't know what to do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table WA.WA_NBI_data_corrected as&lt;BR /&gt;select&lt;BR /&gt;case when exists (select * from fh.fhwa_WA02 where OLD_STRUCTURE_NUMBER_008=Structure_Number)&lt;BR /&gt;then (select NEW_STRUCTURE_NUMBER_008 from fh.fhwa_WA02 where OLD_STRUCTURE_NUMBER_008=Structure_Number)&lt;BR /&gt;else Structure_Number&lt;BR /&gt;end as Structure_Number&lt;BR /&gt;, Year_Built&lt;BR /&gt;, ADT&lt;BR /&gt;, STRUCTURE_KIND_043A&lt;BR /&gt;, STRUCTURE_KIND_043B&lt;BR /&gt;, Bridge_Age&lt;BR /&gt;, DECK_COND_058&lt;BR /&gt;, SUPERSTRUCTURE_COND_059&lt;BR /&gt;, SUBSTRUCTURE_COND_060&lt;BR /&gt;, Deck_Structure_Type&lt;BR /&gt;, Inspection_Year&lt;BR /&gt;from WA.WA_datanewname;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Renaming-variable-based-on-a-correlation-file-and-Subquerry/m-p/753190#M80771</guid>
      <dc:creator>Blandine</dc:creator>
      <dc:date>2021-07-09T15:20:42Z</dc:date>
    </item>
    <item>
      <title>PROC IMPORT Excel hyperlink to a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Excel-hyperlink-to-a-SAS-data-set/m-p/752691#M80757</link>
      <description>&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: An Excel cell contains: =HYPERLINK("[mailto:SNFVBP@rti.org]", "SNFVBP@rti.org")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT does not import the cell contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT datafile = "report"&amp;nbsp;out = &amp;amp;tabnamecon&lt;BR /&gt;dbms = XLSX&amp;nbsp;REPLACE ;&lt;/P&gt;&lt;P&gt;sheet = "&amp;amp;tabname" ;&lt;BR /&gt;getnames = NO ;&lt;BR /&gt;%IF &amp;amp;columnheadline = NA %THEN %DO ;&lt;BR /&gt;datarow = 1&lt;BR /&gt;%END ;&lt;BR /&gt;%IF &amp;amp;columnheadline ^= NA %THEN %DO ;&lt;BR /&gt;datarow=&amp;amp;columnheadline&lt;BR /&gt;%END ;&lt;BR /&gt;;&lt;BR /&gt;RUN ;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 20:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Excel-hyperlink-to-a-SAS-data-set/m-p/752691#M80757</guid>
      <dc:creator>Dick_Pickett</dc:creator>
      <dc:date>2021-07-07T20:10:48Z</dc:date>
    </item>
    <item>
      <title>Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report/m-p/752608#M80755</link>
      <description>&lt;P&gt;Hello, I wanted to add sub totals and Total to my proc report steps. I am showing this in an excel format.&amp;nbsp; below is the code that I have&lt;/P&gt;
&lt;P&gt;ods excel file="directory path\Test_List;&lt;/P&gt;
&lt;P&gt;proc report data=Test_List;&lt;BR /&gt;columns dm location campaign_month, (customer_count converted Conversion_Rate);&lt;BR /&gt;define dm/group;&lt;BR /&gt;define location/group;&lt;BR /&gt;define campaign_month/across order=data;&lt;BR /&gt;define customer_count/sum 'Preapprovals';&lt;BR /&gt;define converted/sum 'Conversion';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current Output:&lt;/P&gt;
&lt;TABLE width="1961"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="241"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Jan 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Feb 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Mar 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Apr 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Jun 2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;DM&lt;/TD&gt;
&lt;TD&gt;LOCATION&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;DM2&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;533&lt;/TD&gt;
&lt;TD&gt;31&lt;/TD&gt;
&lt;TD&gt;6%&lt;/TD&gt;
&lt;TD&gt;22&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;36%&lt;/TD&gt;
&lt;TD&gt;503&lt;/TD&gt;
&lt;TD&gt;16&lt;/TD&gt;
&lt;TD&gt;3%&lt;/TD&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;20%&lt;/TD&gt;
&lt;TD&gt;485&lt;/TD&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;1%&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;352&lt;/TD&gt;
&lt;TD&gt;18&lt;/TD&gt;
&lt;TD&gt;5%&lt;/TD&gt;
&lt;TD&gt;19&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;16%&lt;/TD&gt;
&lt;TD&gt;330&lt;/TD&gt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gt;
&lt;TD&gt;33%&lt;/TD&gt;
&lt;TD&gt;78&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0%&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Desired Ouput:&lt;/P&gt;
&lt;TABLE width="1961"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="241"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Jan 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Feb 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Mar 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Apr 2021&lt;/TD&gt;
&lt;TD colspan="3" width="344"&gt;Jun 2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;DM&lt;/TD&gt;
&lt;TD&gt;LOCATION&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;TD&gt;Preapprovals&lt;/TD&gt;
&lt;TD&gt;Conversion&lt;/TD&gt;
&lt;TD&gt;Conversion_Rate&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;DM2&lt;/TD&gt;
&lt;TD&gt;SubTotal&lt;/TD&gt;
&lt;T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t;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;50%&lt;/TD&gt;
&lt;TD&gt;83&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;2%&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;33%&lt;/TD&gt;
&lt;TD&gt;78&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0%&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 16:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report/m-p/752608#M80755</guid>
      <dc:creator>Eugenio211</dc:creator>
      <dc:date>2021-07-07T16:32:40Z</dc:date>
    </item>
    <item>
      <title>how do I use if/and/delete statement to delete sex-dependent values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-if-and-delete-statement-to-delete-sex-dependent/m-p/752464#M80751</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;set ile.nhanes2016 (keep= SMQ040 IMQ060 IMQ070 IMQ100 RIAGENDR 
RIDAGEYR DMDCITZN DMDMARTL BMXBMI DMDEDUC2 INDHHIN2
MCQ220);
if IMQ070=. and IMQ060=. then delete;
run;

proc freq data=ile.nhanes2016;
tables IMQ060 IMQ070 / nocum missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;IMQ070 value is for males and IMQ060 is for females. Subjects have a value for one and not the other. I want to delete missing values. After running the code missing values remain for both males and females, is there something wrong with my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="proc_title_group"&gt;&lt;P class="c proctitle"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-07-06 at 7.10.45 PM.png" style="width: 249px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61002i0B69C82A90EC45F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-07-06 at 7.10.45 PM.png" alt="Screen Shot 2021-07-06 at 7.10.45 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jul 2021 23:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-if-and-delete-statement-to-delete-sex-dependent/m-p/752464#M80751</guid>
      <dc:creator>ayosas</dc:creator>
      <dc:date>2021-07-06T23:15:31Z</dc:date>
    </item>
    <item>
      <title>What would be the numeric limit for percentage in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-would-be-the-numeric-limit-for-percentage-in-SAS/m-p/751934#M80747</link>
      <description>&lt;P&gt;I was testing SAS numeric limit for percentage calculation.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;40% is 0.4 in SAS Dataset
100% is 1 in SAS Dataset
33.333333% is 0.3333333 in SAS Dataset&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another Database team is going to populate percentage data for me. Now the question is, I tried testing in BASE SAS and I found out SAS can support up to 8 decimal places as followed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;0.12345678&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There might be cases where by 100 divides by 3 will get 33.3333333.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, it would be Num8. with format 10.8. Is there a better way to define a SAS column for percentage instead of defining format 10.8 with Num8. especially for cases like 33.333333?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-would-be-the-numeric-limit-for-percentage-in-SAS/m-p/751934#M80747</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-07-04T03:22:28Z</dc:date>
    </item>
    <item>
      <title>How to load excel with multiple sheets dynamically into SAS datset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751415#M80732</link>
      <description>&lt;P&gt;I have an excel workbook which contains random sheets every month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As such, I want to have a script to load this excel workbook without hardcode any of the worksheet name inside the script. Is there a way in SAS where I can get the list of all sheets in the excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way, I can assign the list to macro and easily store in SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 09:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751415#M80732</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-07-01T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751348#M80723</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if someone can help. I'm trying to import weighted data from SPSS into SAS. The file imports, however, the weighted data does not import properly and the original sample size remains. I've tried to find this info in user manuals, but can't seem to find anything. Any ideas what I'm doing wrong?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 19:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751348#M80723</guid>
      <dc:creator>kristenl</dc:creator>
      <dc:date>2021-06-30T19:22:50Z</dc:date>
    </item>
    <item>
      <title>Creating macro vars using PROC SQL select into</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750509#M80711</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a list of tens of thousands of valid values for a set of variables and am trying to set up a lookup to determine which records have invalid values for these vars. I am trying to use PROC SQL select into to create a macro list of valid values for the variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select(value) into :list_of_values separated by ','&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from myfile;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this in place, I can just set up a lookup for whether the value of a given variable matches one of the values in &amp;amp;list_of_values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that I have too many values listed so SAS is indicating that the &amp;amp;list_of_values macro variable cannot be built because it would be too long. Is there a workaround for this? The only thing I can think to do is break up the variable list into multiple macro lists, but that is a bit of a pain.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750509#M80711</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2021-06-25T17:24:00Z</dc:date>
    </item>
    <item>
      <title>SAS Access to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/749750#M80705</link>
      <description>&lt;P&gt;Want to use Bulkload to an existing Snowflake table that has been created using a Create table statement.&amp;nbsp; But libname bulk load complains that table already exists.&amp;nbsp; Is there a way to use bulkload using a connect statement with execute commands?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/749750#M80705</guid>
      <dc:creator>garyhaas</dc:creator>
      <dc:date>2021-06-22T22:58:42Z</dc:date>
    </item>
    <item>
      <title>Diference Date (MONTH) by ID</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749643#M80700</link>
      <description>&lt;P&gt;Hello good morning, I could not find the way to do the following, I have an ID and a date of a certain event. I must add the difference in months of an event with the following one by ID.&lt;/P&gt;&lt;P&gt;Example in excel in the photograph.&lt;/P&gt;&lt;P&gt;someone who can help me, Greetings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Andres_Fuentes1_0-1624382354559.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60630i4AD7E839B30A597F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andres_Fuentes1_0-1624382354559.png" alt="Andres_Fuentes1_0-1624382354559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749643#M80700</guid>
      <dc:creator>Andres_Fuentes1</dc:creator>
      <dc:date>2021-06-22T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Defining a variable within a date interval</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Defining-a-variable-within-a-date-interval/m-p/749036#M80690</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a dataset looks like this:&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;Location&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;Date&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;Number of warnings (N)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;Number of correct warnings (T)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;06/19/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;06/29/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;5&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;06/30/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;07/1/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;07/05/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;7&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;07/15/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;07/19/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;….&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;05/12/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;05/24/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;05/27/2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="77"&gt;
&lt;P&gt;B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="93"&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="160"&gt;
&lt;P&gt;…&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="210"&gt;
&lt;P&gt;….&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;For each specific “Date” I want to calculate R=Sum(T)/Sum(N) during the last month. For example, if we consider Location “A” and Date “07/19/2020”, I want to have R=(0+1+3+1+3+2)/(2+7+4+1+5+3).&lt;/P&gt;
&lt;P&gt;Any help is appreciated!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 16:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Defining-a-variable-within-a-date-interval/m-p/749036#M80690</guid>
      <dc:creator>Bright</dc:creator>
      <dc:date>2021-06-19T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Create a dataset using proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-dataset-using-proc-tabulate/m-p/748342#M80681</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;So I am currently running the below proc tabulate query,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.cars (where =(make in("Acura","Audi"))) out=cars;
class make;
var msrp;
table (msrp * (N MEAN MEDIAN MIN MAX)),
	  ALL make;
run;&lt;/PRE&gt;
&lt;P&gt;And the output dataset from OUT statement looks like this(first 5 rows):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="640"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Obs&lt;/TD&gt;
&lt;TD width="64"&gt;Make&lt;/TD&gt;
&lt;TD width="64"&gt;_TYPE_&lt;/TD&gt;
&lt;TD width="64"&gt;_PAGE_&lt;/TD&gt;
&lt;TD width="64"&gt;_TABLE_&lt;/TD&gt;
&lt;TD width="64"&gt;MSRP_N&lt;/TD&gt;
&lt;TD width="64"&gt;MSRP_Mean&lt;/TD&gt;
&lt;TD width="64"&gt;MSRP_Median&lt;/TD&gt;
&lt;TD width="64"&gt;MSRP_Min&lt;/TD&gt;
&lt;TD width="64"&gt;MSRP_Max&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lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;Acura&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;42938.57&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;Audi&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;43307.89&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, I'd like to create an ADS that looks like this,&lt;/P&gt;
&lt;TABLE width="290"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="95"&gt;Type&lt;/TD&gt;
&lt;TD width="65"&gt;All&lt;/TD&gt;
&lt;TD width="65"&gt;Acura&lt;/TD&gt;
&lt;TD width="65"&gt;Audi&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;MSRP_N&lt;/TD&gt;
&lt;TD&gt;26&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;TD&gt;19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;MSRP_Mean&lt;/TD&gt;
&lt;TD&gt;43208.46&lt;/TD&gt;
&lt;TD&gt;42938.57&lt;/TD&gt;
&lt;TD&gt;43307.89&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;MSRP_Median&lt;/TD&gt;
&lt;TD&gt;40115&lt;/TD&gt;
&lt;TD&gt;36945&lt;/TD&gt;
&lt;TD&gt;40590&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;MSRP_Min&lt;/TD&gt;
&lt;TD&gt;23820&lt;/TD&gt;
&lt;TD&gt;23820&lt;/TD&gt;
&lt;TD&gt;25940&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;MSRP_Max&lt;/TD&gt;
&lt;TD&gt;89765&lt;/TD&gt;
&lt;TD&gt;89765&lt;/TD&gt;
&lt;TD&gt;84600&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using proc transpose, I'm unable to figure out how to deal with the nulls and also label them with "Make"&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc transpose data=cars out=cars2;
var msrp_:;&lt;/LI-CODE&gt;
&lt;P&gt;Any sort of help would be appreciated. Thanks in advance! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 13:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-dataset-using-proc-tabulate/m-p/748342#M80681</guid>
      <dc:creator>sam_sas2</dc:creator>
      <dc:date>2021-06-16T13:53:43Z</dc:date>
    </item>
    <item>
      <title>Count frequencies of dates in a column and then graph them by Half-month intervals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Count-frequencies-of-dates-in-a-column-and-then-graph-them-by/m-p/748329#M80678</link>
      <description>&lt;P&gt;I have a dataset called record with patients who activated an online account.&lt;/P&gt;&lt;P&gt;I have a column of dates as follows and I want to count the frequencies that each date occurs such that I can graph the number of activations (as a line over time) that occur every 2 weeks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I go about doing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Activation_Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/29:08:15:09 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/23:12:31:33 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/04:02:45:36 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/23:12:46:17 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/04:02:24:47 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/23:01:41:20 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/04:08:20:47 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/23:11:24:18 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/09/13:10:11:59 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/09/04:09:15:59 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/09/23:07:07:17 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/09/04:02:28:07 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020/10/23:12:19:19 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example, in Excel, it would look like this:&amp;nbsp;&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="Screen Shot 2021-06-16 at 8.48.00 AM.png" style="width: 702px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60422iDB01E0E322CE97FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-16 at 8.48.00 AM.png" alt="Screen Shot 2021-06-16 at 8.48.00 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 12:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Count-frequencies-of-dates-in-a-column-and-then-graph-them-by/m-p/748329#M80678</guid>
      <dc:creator>PharmlyDoc</dc:creator>
      <dc:date>2021-06-16T12:50:48Z</dc:date>
    </item>
    <item>
      <title>How to increase your estimate and standard error output to 6 decimals under glimmix procedure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-increase-your-estimate-and-standard-error-output-to-6/m-p/746586#M80661</link>
      <description>&lt;PRE&gt;proc glimmix data=data1; 
  class treatment block;
  model weight = treatment;
  random block;   
run;&lt;/PRE&gt;&lt;P&gt;By using the SAS OnDemand for Academics, the default decimal number of the output is 4, how to increase to 6. Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 21:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-increase-your-estimate-and-standard-error-output-to-6/m-p/746586#M80661</guid>
      <dc:creator>kellychan84</dc:creator>
      <dc:date>2021-06-08T21:07:21Z</dc:date>
    </item>
    <item>
      <title>Join datasets by group in sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Join-datasets-by-group-in-sql/m-p/746507#M80653</link>
      <description>&lt;P&gt;How to implement the following in proc sql?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = set1; by x, y; run;
proc sort data = set2; by x, y; run;

data set3;
merge set1 (in = a) set2 (in = b);
by x y;
if a and not b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am trying to do this by group, and the group identifier is commonly available in set1 and set2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 16:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Join-datasets-by-group-in-sql/m-p/746507#M80653</guid>
      <dc:creator>xyxu</dc:creator>
      <dc:date>2021-06-08T16:41:55Z</dc:date>
    </item>
    <item>
      <title>How to combine numeric year and month into one column as a date format?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-numeric-year-and-month-into-one-column-as-a-date/m-p/746264#M80650</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data SUMDATE is like below: I want to combine year and month into a single date column as "monyyyy" (Mar2011 as example).&amp;nbsp; year and month are all numeric.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;year&lt;/TD&gt;&lt;TD&gt;month&lt;/TD&gt;&lt;TD&gt;cases&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt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&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb2011&lt;/TD&gt;&lt;TD&gt;44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar2011&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apr2011&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;more lines.....&lt;/TD&gt;&lt;TD&gt;......&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciate!!!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 14:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-numeric-year-and-month-into-one-column-as-a-date/m-p/746264#M80650</guid>
      <dc:creator>dbwindyxiaosi</dc:creator>
      <dc:date>2021-06-07T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Extract part of strings - before or after delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-part-of-strings-before-or-after-delimiter/m-p/745900#M80645</link>
      <description>&lt;P&gt;Hi! Sorry if this has already been posted but cannot seem to find a previous post on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable in a large data set (~50,000 obs so too many to manually correct) that can take on 1 of 3 possible structures:&lt;/P&gt;&lt;P&gt;1. name (example: Hartsfield airport)&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. xxxx - name (example: 12345 - Hartsfield airport)&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. name - xxxx&amp;nbsp;(example: Hartsfield airport - 12345)&lt;/P&gt;&lt;P&gt;Here is some code to create a sample in SAS.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trial;
input have $;
datalines;
"12345 - hartsfield airport"
"hartsfield airport - 12345"
"hartsfield airport"
;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The strings are of many differing lengths and the numbers can be any combo and length so my sample may be oversimplified. I am wanting just the name out of the variable's string. There is no rhyme or reason for there being numbers and a dash before or after the name so I cannot subset the datasets based on another variable and use a simple strip(scan(have, 1, "-"))&amp;nbsp; or strip(scan(have, -1,&amp;nbsp; "-")) to extract just the name. I really wish it was that simple.&amp;nbsp; Is there a way to modify the strip and scan functions or another function I should use to extract name?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have thought about using something like the FIND, INDEX, or ANYDIGIT function to do a subset and then apply the strip/scan functions but because the numbers can take on any value and the strings have varying lengths, I don't think those will work. Any advice is appreciated. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 20:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-part-of-strings-before-or-after-delimiter/m-p/745900#M80645</guid>
      <dc:creator>alw12194</dc:creator>
      <dc:date>2021-06-04T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Proc univariate : Conf intervals for percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate-Conf-intervals-for-percentiles/m-p/744894#M80642</link>
      <description>&lt;P&gt;I'm trying to calculate the following stats :&amp;nbsp;&lt;/P&gt;&lt;P&gt;25th percentile (95% CI)&lt;BR /&gt;Median (Weeks) (95% CI)&lt;BR /&gt;75th percentile (95% CI)&lt;/P&gt;&lt;P&gt;by using proc univariate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And I'm getting the results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaet78ha_0-1622539990481.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59925iAE55E507C43144EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaet78ha_0-1622539990481.png" alt="kaet78ha_0-1622539990481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I'm a little bit confused with output CI to the datset, I'm trying like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ods select Quantiles;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;proc univariate data=Sashelp.Cars ciquantnormal(alpha=.1 );&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var MPG_City;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;output out=a1 q1=q25 q3=q75 median=median min=min max=max lclm=lci uclm=dfd;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;But I'm getting an error :&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: CSS, CV, GEOMEAN, GINI, KURTOSIS, MAD, MAX, MEAN, MEDIAN, MIN, MODE,&lt;BR /&gt;MSIGN, N, NMISS, NOBS, NORMAL, P1, P10, P5, P90, P95, P99, PCTLNAME, PCTLPRE, PROBM, PROBN, PROBS, PROBT, Q1, Q3, QN,&lt;BR /&gt;QRANGE, RANGE, SIGNRANK, SKEWNESS, SN, STD, STDMEAN, STD_GINI, STD_MAD, STD_QN, STD_QRANGE, STD_SN, SUM, SUMWGT, T,&lt;BR /&gt;USS, VAR.&lt;/P&gt;&lt;P&gt;I suppose I'm using the wrong way for output CI, can somebody help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 09:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-univariate-Conf-intervals-for-percentiles/m-p/744894#M80642</guid>
      <dc:creator>kaet78ha</dc:creator>
      <dc:date>2021-06-01T09:39:38Z</dc:date>
    </item>
    <item>
      <title>passing parameter using Proc http get method.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744777#M80640</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am attempting to kickstart a job on an API.&amp;nbsp; I am able to get a valid response without sending the _since parameter in the below curl command.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;curl -X GET 'https://api.bcda.cms.gov/api/v1/Patient/$export?&amp;amp;_since=2020-02-13T08:00:00.000-05:00' \
	-H "Accept: application/fhir+json" \
	-H "Prefer: respond-async" \
	-H "Authorization: Bearer {access_token}"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Here is my Proc http procedure, alos i have tried passing the _since parameter using IN but no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Link for API documentation:&lt;A href="https://bcda.cms.gov/build.html#requesting-since-with-Patient" target="_blank"&gt;https://bcda.cms.gov/build.html#requesting-since-with-Patient&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	proc http         		
			url="https://api.bcda.cms.gov/api/v1/Patient/$export"         
         	out=jobresp
        	method="GET"
         	headerout =jobhead;
            headers "Accept"="application/fhir+json"
        			"Prefer"="respond-async"
        			"Authorization"="Bearer &amp;amp;access_token. ";
		run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 May 2021 13:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744777#M80640</guid>
      <dc:creator>Akshat360</dc:creator>
      <dc:date>2021-05-31T13:41:12Z</dc:date>
    </item>
    <item>
      <title>proc mixed crashed when running these two options (influence and by statement)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-mixed-crashed-when-running-these-two-options-influence-and/m-p/744705#M80634</link>
      <description>&lt;P&gt;PROC MIXED procedure crashes when I use influence option and by statement at the same time. Below are my SAS code and error message in the log. Any idea? Thanks,&lt;/P&gt;&lt;P&gt;proc sort data=blood; by OrderName ObservationName; run;&lt;/P&gt;&lt;P&gt;proc mixed data=blood;&lt;BR /&gt;class subjectID Diet;&lt;BR /&gt;model value = Diet / influence(iter=5 estimates) ;&lt;BR /&gt;random SubjectID;&lt;BR /&gt;by OrderName ObservationName;&lt;BR /&gt;estimate 'trt effect' diet 1 -1;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message in log&lt;/P&gt;&lt;P&gt;NOTE: Convergence criteria met.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;OrderName=C-Peptide ObservationName=C-Peptide, Serum&lt;BR /&gt;ERROR: File WORK.UTRAW.UTILITY is damaged.&lt;BR /&gt;ERROR: Utility file I/O.&lt;BR /&gt;ERROR: File WORK.UTRAW.UTILITY is damaged.&lt;BR /&gt;NOTE: PROCEDURE MIXED used (Total process time):&lt;BR /&gt;real time 1.18 seconds&lt;BR /&gt;cpu time 0.39 seconds&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 22:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-mixed-crashed-when-running-these-two-options-influence-and/m-p/744705#M80634</guid>
      <dc:creator>juen1</dc:creator>
      <dc:date>2021-05-30T22:31:52Z</dc:date>
    </item>
    <item>
      <title>Estimating parameters for each group separately (multiple group data)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Estimating-parameters-for-each-group-separately-multiple-group/m-p/744562#M80623</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;BR /&gt;I need to estimate parameters a and b as well as R-squared from data for each group (expno=1, expno=2, expno=3 etc.,) separately at once. Could someone help me to modify the below codes? Many thanks&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME CSV "/folders/myfolders/umar2021.csv" TERMSTR=CRLF;

PROC IMPORT DATAFILE=CSV
		    OUT=umar
		    DBMS=CSV
		    REPLACE;
RUN;
title 'LWR for shells';
data exp;
set umar;
if expno=1 or expno=2 or expno=3;
run;

proc nlin data=exp method=marquardt;
parms B=3 A=0.01;

model w=A*tl**B;


output out=expp p=pw r=w_residual;
run;
proc summary data=expp;
     var w_residual w;
     output out=stats css(w)=sstot uss(w_residual)=ssres N=N;
run;
data expp;
     set stats;
     rsquared=1-(ssres/sstot);
     adjrsquared = 1-(1-rsquared)*(N-1) / (N- 3  -1);
run;
proc print data=expp;
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 23:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Estimating-parameters-for-each-group-separately-multiple-group/m-p/744562#M80623</guid>
      <dc:creator>UmarKhan</dc:creator>
      <dc:date>2021-05-28T23:58:54Z</dc:date>
    </item>
    <item>
      <title>PROC TABULATE- Suppressing Columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-TABULATE-Suppressing-Columns/m-p/744249#M80618</link>
      <description>&lt;P&gt;I am currently running this following code,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars;
class origin drivetrain type;
var msrp;
table (drivetrain * (N))
	  (msrp * (N MEAN MEDIAN MIN MAX)),
	  ALL origin type/ misstext='0';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current output looks something like this,&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="768"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64"&gt;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&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Mean&lt;/TD&gt;
&lt;TD&gt;32774.86&lt;/TD&gt;
&lt;TD&gt;24741.32&lt;/TD&gt;
&lt;TD&gt;48349.8&lt;/TD&gt;
&lt;TD&gt;28377.44&lt;/TD&gt;
&lt;TD&gt;19920&lt;/TD&gt;
&lt;TD&gt;34790.25&lt;/TD&gt;
&lt;TD&gt;29773.62&lt;/TD&gt;
&lt;TD&gt;53387.06&lt;/TD&gt;
&lt;TD&gt;24941.38&lt;/TD&gt;
&lt;TD&gt;28840.53&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Median&lt;/TD&gt;
&lt;TD&gt;27635&lt;/TD&gt;
&lt;TD&gt;23032.5&lt;/TD&gt;
&lt;TD&gt;40590&lt;/TD&gt;
&lt;TD&gt;25520&lt;/TD&gt;
&lt;TD&gt;20140&lt;/TD&gt;
&lt;TD&gt;32062.5&lt;/TD&gt;
&lt;TD&gt;26432.5&lt;/TD&gt;
&lt;TD&gt;40590&lt;/TD&gt;
&lt;TD&gt;22180&lt;/TD&gt;
&lt;TD&gt;25545&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Min&lt;/TD&gt;
&lt;TD&gt;10280&lt;/TD&gt;
&lt;TD&gt;10280&lt;/TD&gt;
&lt;TD&gt;16999&lt;/TD&gt;
&lt;TD&gt;10995&lt;/TD&gt;
&lt;TD&gt;19110&lt;/TD&gt;
&lt;TD&gt;17163&lt;/TD&gt;
&lt;TD&gt;10280&lt;/TD&gt;
&lt;TD&gt;18345&lt;/TD&gt;
&lt;TD&gt;12800&lt;/TD&gt;
&lt;TD&gt;11905&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Max&lt;/TD&gt;
&lt;TD&gt;192465&lt;/TD&gt;
&lt;TD&gt;89765&lt;/TD&gt;
&lt;TD&gt;192465&lt;/TD&gt;
&lt;TD&gt;81795&lt;/TD&gt;
&lt;TD&gt;20510&lt;/TD&gt;
&lt;TD&gt;76870&lt;/TD&gt;
&lt;TD&gt;128420&lt;/TD&gt;
&lt;TD&gt;192465&lt;/TD&gt;
&lt;TD&gt;52975&lt;/TD&gt;
&lt;TD&gt;60670&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV id="tinyMceEditorsam_sas2_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;The issue I'm facing currently is, I do not want to display columns Sedan and Sports but at the same time I do not want my over all count for Origin or All to get affected. Is it possible to achieve this by any means?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-TABULATE-Suppressing-Columns/m-p/744249#M80618</guid>
      <dc:creator>sam_sas2</dc:creator>
      <dc:date>2021-05-27T17:45:54Z</dc:date>
    </item>
    <item>
      <title>Character to Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-to-Date-Format/m-p/743880#M80610</link>
      <description>&lt;P&gt;I have a date variable in character format, length 10, format and informat $10. Examples of the values are 1/5/2010, 12/24/2013, 10/3/2012 (note that month and day do NOT have leading zeros). I would like to convert this variable to date format, but can't seem to find an informat that will work with this. I'm guessing I need to do something like the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;new_date = input(orig_date, [informat]);&lt;/PRE&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 14:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-to-Date-Format/m-p/743880#M80610</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2021-05-26T14:00:09Z</dc:date>
    </item>
    <item>
      <title>creating flag if id exists in different dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/creating-flag-if-id-exists-in-different-dataset/m-p/743768#M80605</link>
      <description>&lt;P&gt;If the ID from data set 1 exists in dataset 2, I would like to create a new variable called flag in dataset 2 and it =1 and =0 otherwise. This is shown below. I tried using merge, but couldn't find a good way to do this. any help would be great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data 1:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 216pt;" border="0" width="288" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD width="72" height="15" style="height: 11.25pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;X1&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;X2&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;54&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;56&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;57&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;58&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;59&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;60&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Data 2:&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 216pt;" border="0" width="288" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD width="72" height="15" style="height: 11.25pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;Y1&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;Y2&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;Y3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;54&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;79&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;83&lt;/TD&gt;
&lt;TD align="right"&gt;61&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;56&lt;/TD&gt;
&lt;TD align="right"&gt;74&lt;/TD&gt;
&lt;TD align="right"&gt;77&lt;/TD&gt;
&lt;TD align="right"&gt;60&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;57&lt;/TD&gt;
&lt;TD align="right"&gt;64&lt;/TD&gt;
&lt;TD align="right"&gt;88&lt;/TD&gt;
&lt;TD align="right"&gt;56&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;60&lt;/TD&gt;
&lt;TD align="right"&gt;87&lt;/TD&gt;
&lt;TD align="right"&gt;78&lt;/TD&gt;
&lt;TD align="right"&gt;83&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;61&lt;/TD&gt;
&lt;TD align="right"&gt;84&lt;/TD&gt;
&lt;TD align="right"&gt;87&lt;/TD&gt;
&lt;TD align="right"&gt;77&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;62&lt;/TD&gt;
&lt;TD align="right"&gt;78&lt;/TD&gt;
&lt;TD align="right"&gt;68&lt;/TD&gt;
&lt;TD align="right"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;63&lt;/TD&gt;
&lt;TD align="right"&gt;89&lt;/TD&gt;
&lt;TD align="right"&gt;59&lt;/TD&gt;
&lt;TD align="right"&gt;52&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;64&lt;/TD&gt;
&lt;TD align="right"&gt;74&lt;/TD&gt;
&lt;TD align="right"&gt;77&lt;/TD&gt;
&lt;TD align="right"&gt;60&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;65&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;79&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desired data:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 270pt;" border="0" width="360" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD width="72" height="15" style="height: 11.25pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;Y1&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;Y2&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;Y3&lt;/TD&gt;
&lt;TD width="72" style="width: 54pt;"&gt;FLAG&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;54&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;79&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;83&lt;/TD&gt;
&lt;TD align="right"&gt;61&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;56&lt;/TD&gt;
&lt;TD align="right"&gt;74&lt;/TD&gt;
&lt;TD align="right"&gt;77&lt;/TD&gt;
&lt;TD align="right"&gt;60&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;57&lt;/TD&gt;
&lt;TD align="right"&gt;64&lt;/TD&gt;
&lt;TD align="right"&gt;88&lt;/TD&gt;
&lt;TD align="right"&gt;56&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;60&lt;/TD&gt;
&lt;TD align="right"&gt;87&lt;/TD&gt;
&lt;TD align="right"&gt;78&lt;/TD&gt;
&lt;TD align="right"&gt;83&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;61&lt;/TD&gt;
&lt;TD align="right"&gt;84&lt;/TD&gt;
&lt;TD align="right"&gt;87&lt;/TD&gt;
&lt;TD align="right"&gt;77&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;62&lt;/TD&gt;
&lt;TD align="right"&gt;78&lt;/TD&gt;
&lt;TD align="right"&gt;68&lt;/TD&gt;
&lt;TD align="right"&gt;50&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;63&lt;/TD&gt;
&lt;TD align="right"&gt;89&lt;/TD&gt;
&lt;TD align="right"&gt;59&lt;/TD&gt;
&lt;TD align="right"&gt;52&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;64&lt;/TD&gt;
&lt;TD align="right"&gt;74&lt;/TD&gt;
&lt;TD align="right"&gt;77&lt;/TD&gt;
&lt;TD align="right"&gt;60&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 11.25pt;"&gt;
&lt;TD height="15" align="right" style="height: 11.25pt;"&gt;65&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;79&lt;/TD&gt;
&lt;TD align="right"&gt;55&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 26 May 2021 07:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/creating-flag-if-id-exists-in-different-dataset/m-p/743768#M80605</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-05-26T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Trying to Use Formats to Enhance output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-Use-Formats-to-Enhance-output/m-p/743599#M80598</link>
      <description>&lt;P&gt;I am trying to learn SAS and run a basic command as shown in the textbook im readying but it seems to not be working. Below is the code i am running:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Jack "C where the file is located";
data survey02;
infile "C: where the file is located.... survey.txt";
input Id Gender $ Age Salary ques1-ques5;
run;


proc print;
run;


proc format;
value $Gender 'M' = 'male'
'F' = 'Female'
' ' = 'Not entered'
other = 'Miscoded';
value Age low-29 = 'Less than 30'
30-50 = '30 to 50'
51-high = '51+';
value $Likert '1' = 'Str Disagree'
'2' = 'Disagree'
'3' = 'No Opinion'
'4' = 'Agree'
'5' = 'Str Agree'
;
run;


title "data set SURVEY with formatted values";
proc print data=survey02;
id ID;
var gender age salary ques1-Ques5;
format gender $gender.
age Age.
Ques1-Ques5 $likert.
salary Dollar11.2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i run this i keep getting the error:&amp;nbsp;You are trying to use the character format $LIKERT with the numeric variable ques1 in dataset WORK.SURVEY02. Im confused because im trying to make numeric values into character values so why wouldn't i include $, when i take it out it says:&amp;nbsp;ERROR: The quoted string '1' is not acceptable to a numeric format or informat.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 16:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trying-to-Use-Formats-to-Enhance-output/m-p/743599#M80598</guid>
      <dc:creator>PilOSU</dc:creator>
      <dc:date>2021-05-25T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Merging and replace values with two dataset having different number of columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-and-replace-values-with-two-dataset-having-different/m-p/743586#M80596</link>
      <description>&lt;P&gt;Please refer to two fake datasets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data 1:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;state&lt;/TD&gt;&lt;TD&gt;city&lt;/TD&gt;&lt;TD&gt;conditionA&lt;/TD&gt;&lt;TD&gt;conditionB&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&g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&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which method should be used? (data step/proc SQL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.,&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 15:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-and-replace-values-with-two-dataset-having-different/m-p/743586#M80596</guid>
      <dc:creator>tmdgus</dc:creator>
      <dc:date>2021-05-25T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Count obs in dynamic data set =1 for numeric or not null for characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Count-obs-in-dynamic-data-set-1-for-numeric-or-not-null-for/m-p/743374#M80593</link>
      <description>&lt;P&gt;Have some dynamic data sets with different variables each run.&lt;/P&gt;&lt;P&gt;Looking very similar to the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Banana_&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cherry&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ice&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Lemon&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Heath_Bar&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Split&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sundae&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Swirl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Frost&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Crunch&lt;BR /&gt;XCDF1483&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;BR /&gt;JKTR48392&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;BR /&gt;OPRT76231&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;BR /&gt;VXIQ87126&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;KTUE61824&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code appears to be the solution&amp;nbsp; - for an array with variables that are all dates, each variable a different month.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;data want;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;set have;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;_t=put(0,rb8.);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;array t(*) months1-months6;/**group your months vars with a double dash*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;want = n(of t(*))-count(peekclong (addrlong(t[1]), 48),_t) ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;drop _t;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My variables are not dates, and the name of the variables are quite different each time.&lt;/P&gt;&lt;P&gt;There would be maybe twenty variables at most.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Result for each ID would be:&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;XCDF1483&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;JKTR48392&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;OPRT76231&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;VXIQ87126&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;KTUE61824&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I count - and store the total count of non-zero values/non-null values for each unique ID in the data set&amp;nbsp; as a new variable?&amp;nbsp; &amp;nbsp;Not counting "0" or null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, result is stored in the data set as new variable "Total", or something similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Didn't use any string examples, but there will be some strings.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; A variable is either formatted numeric (0 or 1, nothing else) or a char.&lt;/P&gt;&lt;P&gt;Character variables do not have numbers, and numerics do not have characters.&lt;/P&gt;&lt;P&gt;Longest string variable is 30 letters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 14:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Count-obs-in-dynamic-data-set-1-for-numeric-or-not-null-for/m-p/743374#M80593</guid>
      <dc:creator>Jumboshrimps</dc:creator>
      <dc:date>2021-05-24T14:01:34Z</dc:date>
    </item>
    <item>
      <title>PROC Append - different lengths on BASE and DATA files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Append-different-lengths-on-BASE-and-DATA-files/m-p/742910#M80574</link>
      <description>&lt;P&gt;581 options varlenchk=nowarn;&lt;BR /&gt;582 proc append base=varImphsp data=work.bs_varImphsp force nowarn;&lt;BR /&gt;583 run;&lt;BR /&gt;WARNING: Variable variable has different lengths on BASE and DATA files (BASE 32 DATA 3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to remove the warning?&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 14:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Append-different-lengths-on-BASE-and-DATA-files/m-p/742910#M80574</guid>
      <dc:creator>su35</dc:creator>
      <dc:date>2021-05-21T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Loop through variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Loop-through-variables/m-p/742038#M80566</link>
      <description>&lt;P&gt;I have variables &lt;STRONG&gt;cnt1&lt;/STRONG&gt; through &lt;STRONG&gt;cnt11&lt;/STRONG&gt;. They are numeric (containing values between 1 and 15), but I need to make these variables character. If there is someway to do this without a loop, that would be great; but it seems this may only work with a loop. The following is what I want to work, but I realize this is not how you specify how you iterate through variable names with different numeric suffixes. Does anyone know how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
	set have

	do i=1 to &amp;amp;max_n_off;
	  ocnt&amp;amp;i. = put(cnt&amp;amp;i., 3.);
	end;

run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 May 2021 00:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Loop-through-variables/m-p/742038#M80566</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2021-05-18T00:01:57Z</dc:date>
    </item>
    <item>
      <title>Please can someone help me how to import three different csv files into sas university edition?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Please-can-someone-help-me-how-to-import-three-different-csv/m-p/742013#M80564</link>
      <description />
      <pubDate>Mon, 17 May 2021 21:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Please-can-someone-help-me-how-to-import-three-different-csv/m-p/742013#M80564</guid>
      <dc:creator>Amali6</dc:creator>
      <dc:date>2021-05-17T21:07:36Z</dc:date>
    </item>
    <item>
      <title>How to create a function in PROC FCMP using information from a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-create-a-function-in-PROC-FCMP-using-information-from-a/m-p/741590#M80556</link>
      <description>&lt;P&gt;I have a dataset similar to&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Var1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Var2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;1/16/2020&lt;/TD&gt;&lt;TD&gt;1/30/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6/15/2018&lt;/TD&gt;&lt;TD&gt;6/30/2019&lt;/TD&gt;&lt;TD&gt;7/14/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5/26/2018&lt;/TD&gt;&lt;TD&gt;6/10/2019&lt;/TD&gt;&lt;TD&gt;6/24/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;And I need to create a function that assigns a value depending on the values of a second dataset like the following&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Var2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Var3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;6000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;7000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;8000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The main idea is that if Var1 = A then the function assign the value of Var3 according to Var2 and the year of Date1, if Var1 = B then the function assigns the value in Var3 according to Var2 and the year of Date2 and if Var1 = C then the function assign the value in Var3 according to Var2 and the year of Date3. In order to get the following result:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Var1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Var2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Date3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Var3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;1/16/2020&lt;/TD&gt;&lt;TD&gt;1/30/2021&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;2000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6/15/2018&lt;/TD&gt;&lt;TD&gt;6/30/2019&lt;/TD&gt;&lt;TD&gt;7/14/2020&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;6000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5/26/2018&lt;/TD&gt;&lt;TD&gt;6/10/2019&lt;/TD&gt;&lt;TD&gt;6/24/2020&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;7000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 00:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-create-a-function-in-PROC-FCMP-using-information-from-a/m-p/741590#M80556</guid>
      <dc:creator>LilianaRomero</dc:creator>
      <dc:date>2021-05-15T00:11:46Z</dc:date>
    </item>
    <item>
      <title>Comparison between AUC-ROC Curves - Hypothesis test</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Comparison-between-AUC-ROC-Curves-Hypothesis-test/m-p/741559#M80554</link>
      <description>&lt;P&gt;Hi everyone, I'm running tests to generate comparisions between ROC curves using the PROC LOGISTIC procedure as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc logistic data=DATA_CASE_STUDY_ING;
model intodefault = mrating / outroc=troc;
roc; roccontrast;
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The date 'have' has the column 'defaulted' identifying the customers that presented default (with value 1) or didn't (with value 0) and the column 'rating' that ranks the customers from worst to the better ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main result for me on this procedure is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="claudiopcjr_0-1621025294927.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59456iF96E8790970035EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="claudiopcjr_0-1621025294927.png" alt="claudiopcjr_0-1621025294927.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;By default the ROC1 curve, generated for comparision, has a ROC value of 0.5.&lt;/P&gt;&lt;P&gt;Does anyone know how to change it ? It would be the same as changing the null hypothesis for this test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to test it for 0.6, 0.7 and 0.8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 20:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Comparison-between-AUC-ROC-Curves-Hypothesis-test/m-p/741559#M80554</guid>
      <dc:creator>claudiopcjr</dc:creator>
      <dc:date>2021-05-14T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Wildcard?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcard/m-p/740823#M80542</link>
      <description>&lt;P&gt;I have variables &lt;EM&gt;var1&lt;/EM&gt; - &lt;EM&gt;var28&lt;/EM&gt;; there are other variables in the dataset too, like name, race, sex, etc. For the &lt;EM&gt;var1&lt;/EM&gt;-&lt;EM&gt;var28&lt;/EM&gt; variables, I want to replace any value "other" with "oth." Without listing out all 28 variables, is there a way to do this? (I don't want to list out the variables because (1) there are too many and it is does not seem concise and (2) because this code is automated and every year, we have a different number of these variables--e.g., next year, we may have var1-var35.) In my head I want to do something like the following, but don't know how to execute it in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if var* = "other" then var* = "oth"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcard/m-p/740823#M80542</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2021-05-12T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Reordering columns after PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reordering-columns-after-PROC-TRANSPOSE/m-p/740457#M80536</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I'm trying to find the way to sort data after&amp;nbsp;PROC TRANSPOSE automatically&lt;/P&gt;
&lt;P&gt;I have data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;month=1; code='AA1111111'; text='aaa'; prior='2'; type='BB'; num=4; output;&lt;BR /&gt;month=1; code='BB1111111'; text='bbb'; prior='4'; type='AA'; num=8; output;&lt;BR /&gt;month=1; code='BB1111111'; text='bbb'; prior='4'; type='BB'; num=1; output;&lt;BR /&gt;month=1; code='CC1111111'; text='ccc'; prior='4'; type='CC'; num=5134; output;&lt;BR /&gt;month=1; code='CC1111111'; text='ccc'; prior='4'; type='DD'; num=525; output;&lt;BR /&gt;month=1; code='CC1111111'; text='ccc'; prior='4'; type='EE'; num=125; output;&lt;BR /&gt;month=2; code='BB1111111'; text='bbb'; prior='4'; type='AA'; num=4; output;&lt;BR /&gt;month=2; code='CC1111111'; text='ccc'; prior='4'; type='CC'; num=5321; output;&lt;BR /&gt;month=2; code='CC1111111'; text='ccc'; prior='4'; type='DD'; num=256; output;&lt;BR /&gt;month=2; code='CC1111111'; text='ccc'; prior='4'; type='EE'; num=151; output;&lt;BR /&gt;month=3; code='BB1111111'; text='bbb'; prior='4'; type='AA'; num=12; output;&lt;BR /&gt;month=3; code='CC1111111'; text='ccc'; prior='4'; type='CC'; num=2860; output;&lt;BR /&gt;month=3; code='CC1111111'; text='ccc'; prior='4'; type='DD'; num=655; output;&lt;BR /&gt;month=3; code='CC1111111'; text='ccc'; prior='4'; type='EE'; num=62; output;&lt;BR /&gt;month=4; code='AA1111111'; text='aaa'; prior='2'; type='AA'; num=2; output;&lt;BR /&gt;month=4; code='BB1111111'; text='bbb'; prior='4'; type='AA'; num=12; output;&lt;BR /&gt;month=4; code='CC1111111'; text='ccc'; prior='4'; type='CC'; num=1962; output;&lt;BR /&gt;month=4; code='CC1111111'; text='ccc'; prior='4'; type='DD'; num=865; output;&lt;BR /&gt;month=4; code='CC1111111'; text='ccc'; prior='4'; type='EE'; num=112; output;&lt;BR /&gt;run;&lt;BR /&gt;PROC SORT&lt;BR /&gt;DATA=have(KEEP= month num code text prior type)&lt;BR /&gt;OUT=sorted&lt;BR /&gt;;&lt;BR /&gt;BY code text prior type;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;PROC TRANSPOSE DATA=sorted&lt;BR /&gt;OUT=want(LABEL="Transposed WORK.WANT")&lt;BR /&gt;NAME=Source&lt;BR /&gt;LABEL=Label&lt;/P&gt;
&lt;P&gt;;&lt;BR /&gt;BY code text prior type ;&lt;BR /&gt;ID month ;&lt;BR /&gt;VAR num;&lt;/P&gt;
&lt;P&gt;RUN; QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and get the result:&lt;/P&gt;
&lt;TABLE width="367"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74"&gt;code&lt;/TD&gt;
&lt;TD width="32"&gt;text&lt;/TD&gt;
&lt;TD width="37"&gt;prior&lt;/TD&gt;
&lt;TD width="35"&gt;type&lt;/TD&gt;
&lt;TD width="49"&gt;Source&lt;/TD&gt;
&lt;TD width="35"&gt;4&lt;/TD&gt;
&lt;TD width="35"&gt;1&lt;/TD&gt;
&lt;TD width="35"&gt;2&lt;/TD&gt;
&lt;TD width="35"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;AA1111111&lt;/TD&gt;
&lt;TD&gt;aaa&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;AA&lt;/TD&gt;
&lt;TD&gt;num&lt;/TD&gt;
&lt;TD&gt;2&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&gt;AA1111111&lt;/TD&gt;
&lt;TD&gt;aaa&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t;/TD&gt;
&lt;TD&gt;DD&lt;/TD&gt;
&lt;TD&gt;num&lt;/TD&gt;
&lt;TD&gt;865&lt;/TD&gt;
&lt;TD&gt;525&lt;/TD&gt;
&lt;TD&gt;256&lt;/TD&gt;
&lt;TD&gt;655&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;CC1111111&lt;/TD&gt;
&lt;TD&gt;ccc&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;EE&lt;/TD&gt;
&lt;TD&gt;num&lt;/TD&gt;
&lt;TD&gt;112&lt;/TD&gt;
&lt;TD&gt;125&lt;/TD&gt;
&lt;TD&gt;151&lt;/TD&gt;
&lt;TD&gt;62&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I need it in the next order and with total:&lt;/P&gt;
&lt;TABLE width="548"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;code&lt;/TD&gt;
&lt;TD width="30"&gt;text&lt;/TD&gt;
&lt;TD width="30"&gt;prior&lt;/TD&gt;
&lt;TD width="81"&gt;type&lt;/TD&gt;
&lt;TD width="81"&gt;Source&lt;/TD&gt;
&lt;TD width="48"&gt;1&lt;/TD&gt;
&lt;TD width="48"&gt;2&lt;/TD&gt;
&lt;TD width="53"&gt;3&lt;/TD&gt;
&lt;TD width="53"&gt;4&lt;/TD&gt;
&lt;TD width="60"&gt;Total&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;AA1111111&lt;/TD&gt;
&lt;TD width="30"&gt;aaa&lt;/TD&gt;
&lt;TD width="30"&gt;2&lt;/TD&gt;
&lt;TD width="81"&gt;AA&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="48"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="53"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="53"&gt;2&lt;/TD&gt;
&lt;TD width="60"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;AA1111111&lt;/TD&gt;
&lt;TD width="30"&gt;aaa&lt;/TD&gt;
&lt;TD width="30"&gt;2&lt;/TD&gt;
&lt;TD width="81"&gt;BB&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;4&lt;/TD&gt;
&lt;TD width="48"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="53"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="53"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="60"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;BB1111111&lt;/TD&gt;
&lt;TD width="30"&gt;bbb&lt;/TD&gt;
&lt;TD width="30"&gt;4&lt;/TD&gt;
&lt;TD width="81"&gt;AA&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;8&lt;/TD&gt;
&lt;TD width="48"&gt;4&lt;/TD&gt;
&lt;TD width="53"&gt;12&lt;/TD&gt;
&lt;TD width="53"&gt;12&lt;/TD&gt;
&lt;TD width="60"&gt;36&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;BB1111111&lt;/TD&gt;
&lt;TD width="30"&gt;bbb&lt;/TD&gt;
&lt;TD width="30"&gt;4&lt;/TD&gt;
&lt;TD width="81"&gt;BB&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;1&lt;/TD&gt;
&lt;TD width="48"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="53"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="53"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="60"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;CC1111111&lt;/TD&gt;
&lt;TD width="30"&gt;ccc&lt;/TD&gt;
&lt;TD width="30"&gt;4&lt;/TD&gt;
&lt;TD width="81"&gt;CC&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;5134&lt;/TD&gt;
&lt;TD width="48"&gt;5321&lt;/TD&gt;
&lt;TD width="53"&gt;2860&lt;/TD&gt;
&lt;TD width="53"&gt;1962&lt;/TD&gt;
&lt;TD width="60"&gt;15277&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;CC1111111&lt;/TD&gt;
&lt;TD width="30"&gt;ccc&lt;/TD&gt;
&lt;TD width="30"&gt;4&lt;/TD&gt;
&lt;TD width="81"&gt;DD&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;525&lt;/TD&gt;
&lt;TD width="48"&gt;256&lt;/TD&gt;
&lt;TD width="53"&gt;655&lt;/TD&gt;
&lt;TD width="53"&gt;865&lt;/TD&gt;
&lt;TD width="60"&gt;2301&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;CC1111111&lt;/TD&gt;
&lt;TD width="30"&gt;ccc&lt;/TD&gt;
&lt;TD width="30"&gt;4&lt;/TD&gt;
&lt;TD width="81"&gt;EE&lt;/TD&gt;
&lt;TD width="81"&gt;num&lt;/TD&gt;
&lt;TD width="48"&gt;125&lt;/TD&gt;
&lt;TD width="48"&gt;151&lt;/TD&gt;
&lt;TD width="53"&gt;62&lt;/TD&gt;
&lt;TD width="53"&gt;112&lt;/TD&gt;
&lt;TD width="60"&gt;450&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each month the number of columns will change from 1 to 12 and should be in the order from 1 to 12 (from left to right) and total should be calculated for filled months.&lt;/P&gt;
&lt;P&gt;Can you help me please?&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 05:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reordering-columns-after-PROC-TRANSPOSE/m-p/740457#M80536</guid>
      <dc:creator>J_J_J</dc:creator>
      <dc:date>2021-05-12T05:18:00Z</dc:date>
    </item>
    <item>
      <title>Compare two non-nested models</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Compare-two-non-nested-models/m-p/740265#M80534</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, I need to compare two non nested&amp;nbsp; models. Please, I need help with SAS code for Monte Carlo simulation in structural equation modeling to do this comparison.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 14:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Compare-two-non-nested-models/m-p/740265#M80534</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2021-05-15T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Bypassing the LIBNAME/libref</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Bypassing-the-LIBNAME-libref/m-p/739964#M80527</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I teach SAS to MPH students during the summer semester.&amp;nbsp; Last summer, at least one student used the following syntax, which I never knew you could do in 30+ years of SAS programming - but it worked! I'm just wondering, other than not being 'best practice', what the downside of this would be....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC SORT DATA= 'C:\zipdataset.sas7bdat' OUT= newdataset; by zipcode; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 13:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Bypassing-the-LIBNAME-libref/m-p/739964#M80527</guid>
      <dc:creator>AnnHarper</dc:creator>
      <dc:date>2021-05-08T13:12:48Z</dc:date>
    </item>
    <item>
      <title>How to Multiple Linear Regression...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Multiple-Linear-Regression/m-p/739707#M80521</link>
      <description>&lt;P&gt;I have data from two different years. The data is about the use of a drug, that is recorded in number of vials, that used to be an uncontrolled drug during the first year and then became controlled during the second year. I want to compare the difference in the drug use during these two time periods of the drug being uncontrolled and controlled. However, I also have other variables such as different types of diseases that the patients had which might be confounding with the amount of the drug used. I also have the different patient counts for each time period which might effect the amount of drug used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am thinking of using multiple linear regression for this analysis, however, not quiet sure of the coding part in SAS is it a prog reg or a proc glm? And do I need to combine my data from each year and indicate controlled/uncontrolled in a new column or should I analyze them separately?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I understand how to look for confounding but need more help on how to compare two means while controlling for confounding...&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 05:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Multiple-Linear-Regression/m-p/739707#M80521</guid>
      <dc:creator>Yughaber</dc:creator>
      <dc:date>2021-05-07T05:41:38Z</dc:date>
    </item>
    <item>
      <title>why  it doesn't work when i place one variable in the ID statement in proc transpose ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-it-doesn-t-work-when-i-place-one-variable-in-the-ID/m-p/739067#M80515</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data = cert.trials out = transtrials1;
var cholesterol triglyc uric;
id name testdate;
run;
proc print data = transtrials1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the output like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1620160589688.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59029i54DB4EE2BCB23860/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1620160589688.png" alt="tianerhu_0-1620160589688.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data = cert.trials out = transtrials1;
var cholesterol triglyc uric;
&lt;FONT color="#FF0000"&gt;id name ;&lt;/FONT&gt;
run;
proc print data = transtrials1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;please look at the red part , I place the variable name instead of the two variables 'name' and ' testdate' , and then it doesn't work , why ? &lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 20:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-it-doesn-t-work-when-i-place-one-variable-in-the-ID/m-p/739067#M80515</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-04T20:39:11Z</dc:date>
    </item>
    <item>
      <title>Deal with rounding problem while exporting to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Deal-with-rounding-problem-while-exporting-to-CSV/m-p/739015#M80512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When export to CSV I have following problem.&lt;/P&gt;&lt;P&gt;My original dataset in SAS before export (Ratio is fixed to $13.9):&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Ratio&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD&gt;0.234236354&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;0.706008361&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;TD&gt;Orange&lt;/TD&gt;&lt;TD&gt;0.059755285&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After exporting to CSV I get:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Ratio&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD&gt;0.2342363540200000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;0.7060083610000980&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CAN&lt;/TD&gt;&lt;TD&gt;Orange&lt;/TD&gt;&lt;TD&gt;0.0597552850000087&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the original dataset I know the sum is perfectly 1 but after exporting the dataset to csv the sum become&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1.0000000000201100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I saw someone mention about floating point in excel CSV before but is there a way that we can avoid the rounding error when export to csv in SAS? Any suggestion will be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried "ODS csv file=" and "proc export data=" two methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 18:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Deal-with-rounding-problem-while-exporting-to-CSV/m-p/739015#M80512</guid>
      <dc:creator>notepadd123</dc:creator>
      <dc:date>2021-05-04T18:07:27Z</dc:date>
    </item>
    <item>
      <title>Need help with this</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738757#M80500</link>
      <description>&lt;DIV&gt;For this problem,&lt;/DIV&gt;&lt;DIV&gt;Run PROC UNIVARIATE on the variables RBC and WBC from the Blood data set.&lt;/DIV&gt;&lt;DIV&gt;1.1 Display the names of the output objects created by this procedure. Attach a screenshot that shows the names.&lt;/DIV&gt;&lt;DIV&gt;Show the code and output of names of the output objects. Any unnecessary outputs will cause a penalty of losing points.&lt;/DIV&gt;&lt;DIV&gt;1.2 Run PROC UNIVARIATE again, selecting only the output object that shows extreme observations&lt;/DIV&gt;&lt;DIV&gt;.And send this output to a temporary SAS data set extrm_obs&lt;/DIV&gt;&lt;DIV&gt;. Set the title as “Extreme Observations of RBC and WBC”. Show the code&lt;/DIV&gt;&lt;DIV&gt;, data set of extrm_obs&amp;nbsp;and interpretation of the data set.&amp;nbsp;Any&lt;/DIV&gt;&lt;DIV&gt;unnecessary outputs will cause a penalty of losing&lt;/DIV&gt;&lt;DIV&gt;points.&lt;/DIV&gt;&lt;DIV&gt;1.3 Issue two ODS statements: one to select the Basic Statistical Measures output object and the other to send this output to a permanent SAS data set : RBC_WBC_Measures. Set the title as "Basic Statistical Measures for RBC and WBC". Show the code ,data set&amp;nbsp;and interpretation of the dataset&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this code correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Blood;&lt;BR /&gt;set blood;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods trace on;&lt;BR /&gt;proc univariate data=blood;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;BR /&gt;ods trace off;&lt;BR /&gt;ods select quantiles;&lt;BR /&gt;proc univariate data=blood;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods select extrm_obs;&lt;BR /&gt;title "Extreme Observations of RBC and WBC";&lt;BR /&gt;proc Univariate data=Blood;&lt;BR /&gt;id Subject;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;BR /&gt;ods select extremeobs;&lt;BR /&gt;title "Extreme Observations of RBC and WBC";&lt;BR /&gt;proc Univariate data=Blood;&lt;BR /&gt;id Subject;&lt;BR /&gt;var RBC WBC;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 00:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-with-this/m-p/738757#M80500</guid>
      <dc:creator>mughaloimran</dc:creator>
      <dc:date>2021-05-04T00:40:18Z</dc:date>
    </item>
    <item>
      <title>how to delete the first row ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-the-first-row/m-p/738740#M80497</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'class';
proc print data = cert.class ;
run;

proc transpose data = cert.class out = score_transposed;
var name score1-score3 homework ;
run;

proc print data  = score_transposed ;
 title 'score for the year';
run;&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;following&amp;nbsp;is&amp;nbsp;output&amp;nbsp;:&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1620083565758.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58989iEB664E0841F7570A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1620083565758.png" alt="tianerhu_0-1620083565758.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If I want to delete the first row in the second table—— _NAME_ COL1 COL2 COL3 COL4 , how to do ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 23:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-the-first-row/m-p/738740#M80497</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-03T23:14:34Z</dc:date>
    </item>
    <item>
      <title>error 73-322 when using proc causalmed for survival analysis</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738487#M80489</link>
      <description>&lt;P&gt;I'm trying a SAS example from the SAS help on my laptop. It basically tells how to use proc causalmed for survival analysis. However, I kept getting "&lt;STRONG&gt;error 73-322:&amp;nbsp;Expecting an =.&lt;/STRONG&gt;" under "weeks*censor(1)".&lt;/P&gt;&lt;P&gt;I also tried my own code for the same analysis and got the same error.&lt;/P&gt;&lt;P&gt;Here is the link from SAS help web about proc causalmed with survival analysis:&lt;/P&gt;&lt;P&gt;&lt;A title="Proc Causalmed for survival analysis" href="https://documentation.sas.com/doc/en/statug/v_003/statug_causalmed_examples05.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/statug/v_003/statug_causalmed_examples05.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to fix it or do survival analysis in proc causalmed? I really appreciate it!&lt;/P&gt;&lt;P&gt;Below is the example code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc causalmed data=RedDye ciratio=log poutcomemod pmedmod;
   class RedDye Female Tumor;
   model Weeks*Censor(1) = RedDye | Tumor / aft;
   mediator Tumor(event='1') = RedDye(treat='3');
   covar Female;
   freq Freq;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 06:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/m-p/738487#M80489</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2021-05-03T06:17:19Z</dc:date>
    </item>
    <item>
      <title>How to run proc reg with a subsample without creating a subsample?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738439#M80472</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;Have a nice week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I want to run PROC REG with a subsample, I know one way is to create a subsample and run PROC REG, but I wondering if there is any way to run directly in PROC REG procedure without another data step for creating a subsample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code of running for the WHOLE sample as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=merge_treat_con_copy;
	model wINV_DAY= pt wFIRM_SIZE LNGDP UNEMPLOYMENT  INFLATION 
		wTANGIBILITY FCF wLOG_MVE wCAP_INT wGRO_MAR/ tol vif collin;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I want to run where INDC3="RTLS".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please hint me to sort it out?&lt;/P&gt;
&lt;P&gt;Warmest regards and thanks,&lt;/P&gt;
&lt;P&gt;Phil.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 22:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-run-proc-reg-with-a-subsample-without-creating-a/m-p/738439#M80472</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-05-02T22:08:20Z</dc:date>
    </item>
    <item>
      <title>Military Time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738434#M80467</link>
      <description>&lt;P&gt;I have an excel sheet where the data set has columns with military time but no separators. How to convert the military time to hh: mm. For example, the columns have military time like 1509,7,30,637.&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 21:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Military-Time/m-p/738434#M80467</guid>
      <dc:creator>SriCh1</dc:creator>
      <dc:date>2021-05-02T21:06:26Z</dc:date>
    </item>
    <item>
      <title>Is there anything wrong with this question?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-anything-wrong-with-this-question/m-p/738432#M80465</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1619988335094.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58934iCBFCD339CA07593D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1619988335094.png" alt="tianerhu_0-1619988335094.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_1-1619988346065.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58935i1A1C8045685A1F41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_1-1619988346065.png" alt="tianerhu_1-1619988346065.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_2-1619988357278.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58936iE89DF943DDFDF44E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_2-1619988357278.png" alt="tianerhu_2-1619988357278.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can we read the data of the variable Department from &lt;LI-USER uid="54795" login="25"&gt;&lt;/LI-USER&gt; ?&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 20:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-anything-wrong-with-this-question/m-p/738432#M80465</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-05-02T20:50:41Z</dc:date>
    </item>
    <item>
      <title>ERROR: File DBO.prop_FinalEstimates.DATA does not exist.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-File-DBO-prop-FinalEstimates-DATA-does-not-exist/m-p/738250#M80459</link>
      <description>&lt;P&gt;I am working on a project at work and using the following code:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; CP &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;odbc&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;noprompt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"DRIVER={ODBC Driver 17 for SQL Server}; SERVER=mss-p1-claims-claimsproperty-01 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;DATABASE=ClaimsProperty; TRUSTED_CONNECTION=YES"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;schema&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=PD;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LIBNAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ODBC&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;NOPROMPT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"DRIVER={ODBC Driver 17 for SQL Server}; SERVER=mss-p1-claims-claimsproperty-01 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;DATABASE=ClaimsProperty; TRUSTED_CONNECTION=YES"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;SCHEMA&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=PD;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; DBO &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;odbc&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;noprompt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"DRIVER={ODBC Driver 17 for SQL Server}; SERVER=mss-p1-claimscontrolbi-01 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;DATABASE=BISSClaimsCntrlRpt; TRUSTED_CONNECTION=YES"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;schema&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dbo;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; DBO &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;odbc&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;noprompt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"DRIVER={ODBC Driver 17 for SQL Server}; SERVER=mss-p1-claimscontrolbi-01 ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;DATABASE=BISSClaimsCmnDmnsn; TRUSTED_CONNECTION=YES"&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;schema&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dbo;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;CREATE&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Estimates &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;SELECT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.ClaimYear,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.ClaimNbr,&lt;/P&gt;&lt;P&gt;E.PropNbr,&lt;/P&gt;&lt;P&gt;E.PropId,&lt;/P&gt;&lt;P&gt;PL.FinalEstimateAcctMonth,&lt;/P&gt;&lt;P&gt;E.FinalEstimateVehicleModelYear,&lt;/P&gt;&lt;P&gt;E.FinalEstimateVehicleMakeDesc,&lt;/P&gt;&lt;P&gt;E.FinalEstimateVehicleModelDesc,&lt;/P&gt;&lt;P&gt;F.FacilityId,&lt;/P&gt;&lt;P&gt;F.FacilityStateCode,&lt;/P&gt;&lt;P&gt;F.SWEShopInd&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;FROM&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.Estimate &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.Date &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; D&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.FinalEstimateCompleteDateId = D.DateId&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.Property &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.ClaimYear = P.ClaimYear&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.ClaimNbr = P.ClaimNbr&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.PropNbr = P.PropNbr&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.PropertyPlus &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.ClaimYear = PP.ClaimYear &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.ClaimNbr = PP.ClaimNbr&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.Inspection &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Ins&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.PropId = Ins.PropId&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.Facility &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; F&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Ins.FacilityId = F.FacilityId&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.PartsLaborShopSummary &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PL &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.PropId=PL.PropId&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PD.Repair &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; R&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.PropId=R.PropId&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;WHERE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PL.FinalEstimateAcctMonth &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;202003&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PL.FinalEstimateAcctMonth &amp;lt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;202102&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; P.TotalLossInd = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; P.PropTypeDesc = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'Vehicle'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; E.TotalEstimateLineCnt &amp;gt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;50&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; F.FacilityStateCode &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;in&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; (&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'IA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'MI'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'UT'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AND&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; F.SWEShopInd = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; INFILE = \\prog1\east\AppsProd\neclaims\Nicole Allen\RFP Project\RFP Project Shops.xlsx;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= ExcelFacilityName&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATAFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"&amp;amp;INFILE."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= XLSX REPLACE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;GETNAMES&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= Yes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;CREATE&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; RepairFacilityNames &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;SELECT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#008080"&gt;A.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;B.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;From&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Estimates &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; A&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LEFT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;JOIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ExcelFacilityName &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; B&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; B.FacilityId = A.FacilityId;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/** Repair Time Query **/&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;CREATE&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; RepairTime &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;Select&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DISTINCT&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#008080"&gt;C.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;sum(FE.RepairLaborHrs) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; EstRepairTime&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; RepairFacilityNames &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;AS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; C&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;left&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;join&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; DBO.PROP_FinalEstimates &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; FE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ON&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; A.PropId = FE.PropID&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; FE.ReportingAcctMonth &amp;gt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;202003&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; FE.ReportingAcctMonth &amp;lt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;202102&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;group&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; FE.EstState,FE.RepairFacilityName,FE.claimrefnbr&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;order&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; FE.EstState,FE.RepairFacilityName,FE.claimrefnbr;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;The very last PROC SQL statement I keep getting the error:&amp;nbsp; ERROR: File DBO.prop_FinalEstimates.DATA does not exist&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I get no other errors in my log. Thoughts?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 18:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-File-DBO-prop-FinalEstimates-DATA-does-not-exist/m-p/738250#M80459</guid>
      <dc:creator>nicole_e_allen</dc:creator>
      <dc:date>2021-04-30T18:40:31Z</dc:date>
    </item>
    <item>
      <title>PROC BOXPLOT wont correctly display Mean values using INSETGROUP</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-BOXPLOT-wont-correctly-display-Mean-values-using-INSETGROUP/m-p/738182#M80457</link>
      <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run my code below to create a set of boxplots, I use the INSETGROUP statement to insert Min, Mean, and Max values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Min and Max values display as requested, but the Mean values don't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each Mean value has 3 numbers before a decimal, then 2 numbers after the decimal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincere there are 15 boxplots in the chart, I don't think there is enough space to show the Mean values for all the boxplots. Some boxplots show an asterisk for the Mean value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I&amp;nbsp; adjust the spacing or request truncated mean values for each of the boxplots in the chart?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc boxplot data=boxplot_3;&lt;BR /&gt;plot Step1_1*Program ;&lt;BR /&gt;inset min mean max /&lt;BR /&gt;header = 'Overall Statistics'&lt;BR /&gt;pos = tm;&lt;BR /&gt;insetgroup min mean max /&lt;BR /&gt;header = 'Min &amp;amp; Max Values for Each Program';&lt;BR /&gt;label Step1_1 = 'Step 1 Scores';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 15:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-BOXPLOT-wont-correctly-display-Mean-values-using-INSETGROUP/m-p/738182#M80457</guid>
      <dc:creator>Rover17</dc:creator>
      <dc:date>2021-04-30T15:47:04Z</dc:date>
    </item>
    <item>
      <title>SQL: Merging ranges. Left join?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-Merging-ranges-Left-join/m-p/738107#M80456</link>
      <description>&lt;P&gt;I'm trying to merge two files which have start and end dates on each record. I want an output file which has all combinations of date spells. Where one file does not have data for a given range, I want to return missing values for its variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I almost have this working, but my code doesn't return the desired missing values. (The last record in the desired file in the code). Do I need to make this a left join? (I'm not very familiar with SQL).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data data1;
input start end v1;
if _n_&amp;gt;1 and start^=lag(end)+1 then error;
datalines;
1 2 1.12
3 4 1.34
5 5 1.55
6 7 1.67
8 8 1.88
;
run;

data data2;
input start end v2;
if _n_&amp;gt;1 and start^=lag(end)+1 then error;
datalines;
1 2 2.12
3 3 2.33
4 4 2.44
5 7 2.57
;
run;

* Desired merged file;
data desired;
input start end v1 v2;
datalines;
1 2 1.12 2.12
3 3 1.34 2.23
4 4 1.34 2.44
5 5 1.55 2.57
6 7 1.67 2.57
8 8 1.88  .
;
run;

* get list of time spells;
data long1;
set data1 data2;
keep start end;
run;
proc means data=long1 (keep=end) noprint nway;
  class end;
  output out=long2 (drop=_:) ;
run;
data spells;
set long2;
start = lag(end)+1;
if start=. then start=1;
run;

proc sql;
   CREATE TABLE merged AS
   SELECT s.start, s.end, v1, v2 
   FROM spells as s, data1 as d1, data2 as d2
   where d1.start &amp;lt;= s.start and d1.end &amp;gt;= s.end and
         d2.start &amp;lt;= s.start and d2.end &amp;gt;= s.end ;
   ;
QUIT ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-Merging-ranges-Left-join/m-p/738107#M80456</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2021-04-30T07:50:43Z</dc:date>
    </item>
    <item>
      <title>Proc Boxplot is not showing all boxplots in a single chart on a single page. How can I change this?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-is-not-showing-all-boxplots-in-a-single-chart-on-a/m-p/737701#M80452</link>
      <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following code to create a chart of boxplots. In my dataset, I have a continuous variable called Step1_1. I also have a categorical variable called Program. There are 30 Programs, and each Program is to have a boxplot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a single chart that shows the 30 boxplots all displayed on a single page. I'm using ODS to output the chart in a RTF document. The orientation is landscape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I have is that Proc Boxplot is splitting the chart to display 15 boxplots on the first page and the remaining 15 on the second page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc boxplot data=boxplot_3;&lt;BR /&gt;plot Step1_1*Program ;&lt;BR /&gt;inset min mean max /&lt;BR /&gt;header = 'Overall Statistics'&lt;BR /&gt;pos = tm;&lt;BR /&gt;insetgroup min max /&lt;BR /&gt;header = 'Min &amp;amp; Max Values for Each Program';&lt;BR /&gt;label Step1_1 = 'Step 1 Scores';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help !!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 18:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Boxplot-is-not-showing-all-boxplots-in-a-single-chart-on-a/m-p/737701#M80452</guid>
      <dc:creator>Rover17</dc:creator>
      <dc:date>2021-04-28T18:45:17Z</dc:date>
    </item>
    <item>
      <title>calculate the frequency of positive and negative values by id</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-the-frequency-of-positive-and-negative-values-by-id/m-p/737015#M80442</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id variation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;0.258&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; -0.53&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.563&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.386&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp;-0.568&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to calculate the number of negative and positive variations by id. the table that I want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id variation count&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;positive&amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;negatif&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;positive&amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;negatif&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 15:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-the-frequency-of-positive-and-negative-values-by-id/m-p/737015#M80442</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2021-04-26T15:17:53Z</dc:date>
    </item>
    <item>
      <title>How do I retrieve ResponsibleParties for Report.BI Objects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-retrieve-ResponsibleParties-for-Report-BI-Objects/m-p/736930#M80441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found a code snippet online to get most of what I require in regards to Report.BI Metadata properties, however, the code to get ResponsibleParty information was answered elsewhere in a separate context, and I can't cobble together the two pieces of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is understanding how to utilise the&amp;nbsp;&lt;CODE class=" language-sas"&gt;metadata_getnasn&lt;/CODE&gt;&lt;SPAN style="font-family: inherit;"&gt;command and whether it's right to do so within the getnobj loop. The query does return two usernames based on my ask, but, it can return those 1...2...even 7 times over. Same record, just many duplicates.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Does anyone know (specifically regarding ResponsibleParties) how I obtain the creator/last modified names and dates, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MDIDs (drop=_: label="SAS VA Report List");
  length id $17 _uri name _name _modified _created location _location createdby modifiedby name person $256; 
  length created modified 8; 
  format created modified datetime19.;
  _nobj=1; 
  _n=1; 
  call missing(id, _uri, _uri2, name, role, person, createdby, modifiedby, _name, _modified, _created, _location);

  do while(_n le _nobj);
    _nobj=metadata_getnobj("omsobj:Transformation?@PublicType = 'Report.BI'",_n,_uri);
    _rc=metadata_getattr(_uri,"Id",id);
    _rc=metadata_getattr(_uri,"Name",_name);
    _rc=metadata_getattr(_uri,"MetadataCreated",_created);
    _rc=metadata_getattr(_uri,"MetadataUpdated",_modified);

	created=input(_created,anydtdtm.);
    modified=input(_modified,anydtdtm.);
	name=translate(translate(translate(translate(_name,"-","–"),"£","£"),"%","%"),"+","+");

	/*	Get creator / last modified. Doesn't work properly.	*/
	passn=metadata_getnasn(_uri,"ResponsibleParties",1,Respuri);
	_rc=metadata_getattr(Respuri, "Name", CreatedBy);
	output;
	passn=metadata_getnasn(_uri,"ResponsibleParties",2,Respuri);
	_rc=metadata_getattr(Respuri, "Name", ModifiedBy);
	output;

	* Get folder object the current Report is in *;
    _rc=metadata_getnasn(_uri,"Trees",1,_uri);
    * Get folder name the current Report is in *;
    _rc=metadata_getattr(_uri,"Name",location);
    _tree=1; 
    * Loop up the folder hierarchy *;
    do while (_tree&amp;gt;0);
      * Get the parent folder object *;
      _tree=metadata_getnasn(_uri,"ParentTree",1,_uri);
      if _tree &amp;gt; 0 then do; 
        * If there was a parent folder, get the name *;
        _rc=metadata_getattr(_uri,"Name",_location);
        * Construct the path *;
        location=catx('/',_location,location);
      end; 
    end; * Folder Hierachy *;

    location = '/'||location;

    output; 
    _n=_n+1; 
  end; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 09:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-retrieve-ResponsibleParties-for-Report-BI-Objects/m-p/736930#M80441</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2021-04-26T09:38:23Z</dc:date>
    </item>
    <item>
      <title>when i use 'proc export' to have a 'csv file' , why I have 'excel file'  instead of 'txt file' ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/when-i-use-proc-export-to-have-a-csv-file-why-I-have-excel-file/m-p/736267#M80434</link>
      <description>&lt;P&gt;when i use 'proc export' to have a 'csv file' , why I have 'excel file' instead of 'txt file' every time?&lt;/P&gt;
&lt;P&gt;Could you tell me how to get directly a 'txt file' ? Thank you .&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 21:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/when-i-use-proc-export-to-have-a-csv-file-why-I-have-excel-file/m-p/736267#M80434</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-04-21T21:54:18Z</dc:date>
    </item>
    <item>
      <title>Split a character variable into a character and a date mmdd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Split-a-character-variable-into-a-character-and-a-date-mmdd/m-p/735987#M80426</link>
      <description>&lt;P&gt;I have a file where my date came in as a character and I need to make it a date to use it in Forecasting.&lt;/P&gt;&lt;P&gt;My variable date looks like this:&lt;/P&gt;&lt;P&gt;Friday, April 8&lt;/P&gt;&lt;P&gt;Saturday, April 9&lt;/P&gt;&lt;P&gt;Sunday, April 10&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;What code would I use to make a character variable for DOW and a second variable for the date mmdd?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K-&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Split-a-character-variable-into-a-character-and-a-date-mmdd/m-p/735987#M80426</guid>
      <dc:creator>KayeMcK</dc:creator>
      <dc:date>2021-04-21T14:29:44Z</dc:date>
    </item>
    <item>
      <title>What is the size (in bytes) of the CSV file that I exported?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-the-size-in-bytes-of-the-CSV-file-that-I-exported/m-p/735791#M80421</link>
      <description>&lt;P&gt;The question ask for the size of the CSV file that I export ? Can I find that in log or anywhere else ?&lt;/P&gt;
&lt;P&gt;I can find the size in log .&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 21:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-the-size-in-bytes-of-the-CSV-file-that-I-exported/m-p/735791#M80421</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-04-20T21:20:57Z</dc:date>
    </item>
    <item>
      <title>why the output file is like this ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/why-the-output-file-is-like-this/m-p/735749#M80414</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data = work.flightempdata
 outfile = "C:\Users\li\Documents\My SAS Files\prep guide\base\practice data\cert\flightempdata.csv"
 dbms = CSV
 replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_0-1618948923139.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58416i36D79ACEA93F1886/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_0-1618948923139.png" alt="tianerhu_0-1618948923139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;additionally, the four value from the second to fifth of the column date is missing . why?&lt;/P&gt;
&lt;P&gt;the answer is like following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tianerhu_1-1618949318561.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58417i76B359608FA3C5D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tianerhu_1-1618949318561.png" alt="tianerhu_1-1618949318561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/why-the-output-file-is-like-this/m-p/735749#M80414</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-04-20T20:08:56Z</dc:date>
    </item>
    <item>
      <title>Large dataset: Creating one variable (column) from multiple years of data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Large-dataset-Creating-one-variable-column-from-multiple-years/m-p/734978#M80406</link>
      <description>&lt;P&gt;I have 180 columns containing the same character data reported each year over many years (from a longitudinal data set). &amp;nbsp; I am looking to combine these columns into one singular column so that I can compute two way frequencies etc. &amp;nbsp; I have looked into "append" however I understand this is for datasets not variables. &amp;nbsp;I have also tried a transpose, however I end up with 9000 columns (number of patients). &amp;nbsp;Other similar posts suggest an array for this type of data, however they all require you to enter datelines. &amp;nbsp;My dataset is much too large to record &amp;nbsp;each individual dateline! &amp;nbsp; Hope someone has insight as to how to do this, or possibly a better method!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Data:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Patient ID &amp;nbsp; &amp;nbsp; &amp;nbsp;Year 1. &amp;nbsp; &amp;nbsp;Year 2. &amp;nbsp; &amp;nbsp;Year 3. &amp;nbsp; &amp;nbsp;Year 4. &amp;nbsp; Year 5&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp;BAC &amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ACA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABA &amp;nbsp; &amp;nbsp; &amp;nbsp;AAC &amp;nbsp;&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ABB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ACA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp;AAC &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I want:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Patient ID &amp;nbsp; Health Condition&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABB &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BAC &amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ACA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABA &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AAC &amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABB&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ACA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AAC &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 23:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Large-dataset-Creating-one-variable-column-from-multiple-years/m-p/734978#M80406</guid>
      <dc:creator>EMc</dc:creator>
      <dc:date>2021-04-17T23:27:04Z</dc:date>
    </item>
    <item>
      <title>Moving average with proc expand excluding the current observation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-average-with-proc-expand-excluding-the-current/m-p/734857#M80403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use proc expand to calculate moving average of for example 3 last observations excluding the current observation. Suppose the data is like this:&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; Price&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;/P&gt;
&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;
&lt;P&gt;Using this code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc expand data=have out=want method=none;
convert price=price_avg / TRANSFORMOUT=(movave 3);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; Price&amp;nbsp; &amp;nbsp; Price_avg&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;
&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;70&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;
&lt;P&gt;Now, consider observation 4, I want the moving average does not consider the current observation. So the Price-avg should be (20+0+10)/3=10. Is there any way to do that directly in the proc expand?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 05:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-average-with-proc-expand-excluding-the-current/m-p/734857#M80403</guid>
      <dc:creator>Bright</dc:creator>
      <dc:date>2021-04-17T05:05:58Z</dc:date>
    </item>
    <item>
      <title>Create a comprehensive dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734293#M80397</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue with a procedure I need for a research application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dealing with several datasets, each for a given year, since 1996 to 2020. These datasets are composed of the same columns. Namely, I have a series of files named optionm.opprcdyyyy with yyyy ranging from 1996 to 2020.&lt;/P&gt;&lt;P&gt;All I want to do is to create a unique file listing all of the annual datasets together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have then to apply some filters. I think that by creating a unified document I could much more conveniently apply my filters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware this is quite trivial, but I have been stuck on this for quite a long time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anybody help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 14:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734293#M80397</guid>
      <dc:creator>RDellaVilla</dc:creator>
      <dc:date>2021-04-15T14:37:50Z</dc:date>
    </item>
    <item>
      <title>plotting same criterion, two predictors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734118#M80394</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with three variables, in which I ran a&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;multiple regression model with one criterion/RMET and two predictors LIT and POP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would like a scatter plot + regression line for both predictors, in the same graph.&lt;/P&gt;&lt;P&gt;So far I have been unable to do so using REG or SGPLOT. The latter allows to have grouped data, so that if I wanted to plot, say, the RMET/Literary regression line for men vs. women, I could easily do so, and even color them differently. But that is not what I want.&lt;/P&gt;&lt;P&gt;I would like one graph with RMET in the y axis, and both LIT and POP on the x axis (they are both standardized vars), with say a blue scatter and reg line for LIT and a red scatter and reg line for POP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the datafile in excel format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions?&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>Thu, 15 Apr 2021 06:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/plotting-same-criterion-two-predictors/m-p/734118#M80394</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2021-04-15T06:58:30Z</dc:date>
    </item>
    <item>
      <title>Proc Import: Can I suppress "NOTE: VARCHAR data type is not supported by the V9 engine."</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Can-I-suppress-quot-NOTE-VARCHAR-data-type-is-not/m-p/734104#M80393</link>
      <description>&lt;P&gt;I'm using proc import to read in XLSX files. I get lots of these notes in the log. Can I suppress them without turning all notes off?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 05:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Can-I-suppress-quot-NOTE-VARCHAR-data-type-is-not/m-p/734104#M80393</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2021-04-15T05:51:50Z</dc:date>
    </item>
    <item>
      <title>Infinite scroll via proc http</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Infinite-scroll-via-proc-http/m-p/732813#M80386</link>
      <description>&lt;P&gt;I am trying to get data (nearly 4000 rows) from a page, which has an infinite scroll. Proc HTTP reads only the first 100 rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone please help me to solve this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JAR&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 03:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Infinite-scroll-via-proc-http/m-p/732813#M80386</guid>
      <dc:creator>JAR</dc:creator>
      <dc:date>2021-04-11T03:44:57Z</dc:date>
    </item>
    <item>
      <title>%scan function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731991#M80383</link>
      <description>&lt;P&gt;I am trying to set start_yr to be 2021 and end_yr to be 2022, using the macro below. I am a beginner in SAS programming language. Can someone help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro storms(yr);&lt;BR /&gt;%let start_yr = %scan(&amp;amp;yr,1);&lt;/P&gt;&lt;P&gt;%let end_yr = %scan(&amp;amp;yr,2);&lt;BR /&gt;%put &amp;amp;=start_yr;&lt;/P&gt;&lt;P&gt;%put &amp;amp;=end_yr;&lt;BR /&gt;%mend storms;&lt;/P&gt;&lt;P&gt;storms(2021 2022)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 17:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731991#M80383</guid>
      <dc:creator>marathon2</dc:creator>
      <dc:date>2021-04-07T17:19:28Z</dc:date>
    </item>
    <item>
      <title>converting dataset to format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/converting-dataset-to-format/m-p/731915#M80380</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Not a newbie, just can't find my code that converts a sas dataset into a format via Proc Format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have the straightforward code readily available?&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/converting-dataset-to-format/m-p/731915#M80380</guid>
      <dc:creator>NJGIRL</dc:creator>
      <dc:date>2021-04-07T14:01:05Z</dc:date>
    </item>
    <item>
      <title>dealing with unknown characters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dealing-with-unknown-characters/m-p/731705#M80373</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new sas user trying to clean up a dataset. I am interested in coding some categorical variables into a composite variable of water and sanitation quality.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset from nicaragua where responses have accents. It was a previous SPSS file, and when I import to SAS all accent characters convert to unknown characters and prevent me from running a proc freq. I simply need 9 categories to code as 0/1, so the variable could simply be converted to numeric if I know what the values mean. Can someone please advise on how to get rid of the unknown character? The variable in question is S1P15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset is attached. Current proc import below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;*import spss dataset and convert;&lt;BR /&gt;proc import datafile = "/folders/myfolders/sasuser.v94/WFP/datasets/EMNV14-02 DATOS DE LA VIVIENDA Y EL HOGAR (1).SAV"&lt;BR /&gt;out= work.nicaragua&lt;BR /&gt;dbms=sav&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 20:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dealing-with-unknown-characters/m-p/731705#M80373</guid>
      <dc:creator>rhaley1821</dc:creator>
      <dc:date>2021-04-06T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Problem with PROC RANK</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-RANK/m-p/731674#M80366</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the “allvar” dataset, variables divi, rd, and sin take values of either 0 or 1; variable divo takes values -1 or 0. I am using this data set to create portfolios for each date (newdatadate in my case).&lt;/P&gt;&lt;P&gt;I am using PROC RANK and group them into 5 before creating portfolios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPTIONS MPRINT SYMBOLGEN;&lt;/P&gt;&lt;P&gt;%LET avars = divi divo rd sin ;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Note: (I have more than 60 variables here);&lt;/P&gt;&lt;P&gt;%LET n_avars=%SYSFUNC(countw(&amp;amp;avars));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%PUT &amp;amp;n_avars;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET grp = 5;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;SORT&lt;/STRONG&gt; DATA = allvar;&lt;/P&gt;&lt;P&gt;BY newdatadate;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;RANK&lt;/STRONG&gt; DATA=allvar OUT=allvar_ranked group=&amp;amp;grp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BY&amp;nbsp; newdatadate;&amp;nbsp; VAR &amp;amp;avars;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, in the allvar_ranked dataset, variables divi, divo, rd, and sin should have only two different ranked values since they already had taken two values before they were ranked. However, it’s not the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;When I run the following (before running proc rank):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct divi from allvar; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Values: ., 0, 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct divo from allvar; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Values: ., 0,-1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct rd&amp;nbsp;&amp;nbsp; from allvar; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Values: 0, 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct sin&amp;nbsp; from allvar; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Values: ., 0, 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;When I run the same in the ranked dataset:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct divi from allvar_ranked; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Ranked Values: ., 0, 2, 3, 4&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct divo from allvar_ranked; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Ranked Values: ., 0, 1, 2, 3&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct rd&amp;nbsp;&amp;nbsp; from allvar_ranked; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Ranked Values: 1, 2, 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;; select distinct sin&amp;nbsp; from allvar_ranked; &lt;STRONG&gt;quit&lt;/STRONG&gt;; * Ranked Values: ., 2, 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using this command previously and have never encountered this problem.&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-PROC-RANK/m-p/731674#M80366</guid>
      <dc:creator>elif</dc:creator>
      <dc:date>2021-04-06T19:28:13Z</dc:date>
    </item>
    <item>
      <title>How to identify "missing" replications for each condition?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-quot-missing-quot-replications-for-each/m-p/730852#M80357</link>
      <description>&lt;P&gt;Thank you for reviewing my questions, I am really stuck in here.&lt;/P&gt;&lt;P&gt;I have a set of data that I have 64 conditions and 500 replications for each condition. However, some conditions have less than 500 replications, and it is hard for me to identify the conditions with less than 500 replications and how many are missing because there is no missing values (such as "." or blank) in replications. For example, the rep is like this: 1, 2, 4, 5, 8, 9, 10, ......., 500. (After 2, the replications directly jump to 4, and after 5, the replications directly jump to &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell me how to identify the conditions with less than 500 replications and how many of replications are missing for each condition? Thank you!! The data format is like below:&lt;/P&gt;&lt;P&gt;var1&amp;nbsp; var2&amp;nbsp; var3&amp;nbsp; var4 rep&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;......&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .....&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; f&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; f&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;......&lt;/P&gt;&lt;P&gt;&amp;nbsp; a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;nbsp; &amp;nbsp; &amp;nbsp; f&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;The var1, var2,&amp;nbsp; var3, and var4 are manipulated design factors, the different combination of design factors is one condition, and each condition has 500 reps. (like the combination of 'a,b,c,d' is condition 1, 'a,b,c,e' is condition 2, etc., ) Hopefully I made my questions clear. Thank you again!!&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>Thu, 01 Apr 2021 20:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-quot-missing-quot-replications-for-each/m-p/730852#M80357</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2021-04-01T20:43:42Z</dc:date>
    </item>
    <item>
      <title>Sum with retain</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sum-with-retain/m-p/730398#M80346</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem which I have already solved more or less but was wondering if there might be a more elegant/efficient/faster solution to it. Hope somebody can help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;DATA have;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format month date9.;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input month date9. id amount;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;

31DEC2020 1 10

31JAN2021&amp;nbsp; 1 0

28FEB2021 1 5

31MAR2021 1 0

31DEC2020 2 0

31JAN2021 2 0

28FEB2021 2 5

31MAR2021 2 0

31DEC2020 3 20

31JAN2021 3 10

28FEB2021 3 0

31MAR2021 3 0

;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the table I have and I want to have a table which gives me for each month the overall sum of the amounts.&lt;/P&gt;
&lt;P&gt;I tried it with this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;DATA want;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET have;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BY id;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETAIN sum_all;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum_all = sum(amount, sum_all);

RUN;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But even though I group by the id the cum calculation does not restart at every new id.&lt;/P&gt;
&lt;P&gt;I solved it by sorting the have table and the doing the calculation by introducing two IF conditions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc sort

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=have

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=have_sorted

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;

run;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;

DATA want2;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET have_sorted;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BY id;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETAIN sum_all;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF first.id AND amount GT 0 THEN sum_all = 0;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF first.id AND amount EQ 0 THEN sum_all = amount;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum_all = sum(amount, sum_all);

RUN;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the table want2 is how I want the end result to look like, for each id and month sum of amount so far.&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 14:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sum-with-retain/m-p/730398#M80346</guid>
      <dc:creator>aguilar_john</dc:creator>
      <dc:date>2021-03-31T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Loops for Read In</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Loops-for-Read-In/m-p/729425#M80341</link>
      <description>&lt;P&gt;Apologies for double-posting; however, I don't think I was clear enough in my original post--there is more nuance to my problem, I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My first issue, is that I am trying establish libnames for a series of folders. I would like to do this in a loop and using a macro. The macro is year = 2020, but some of the year indications in the filepaths are the full four-digit year YYYY and others are the two-digit year YY. This is an established program and it is best to only use the existing macros. (I do realize it would be easiest to create a macro equal to the two-digit year.) What I have is what is below, but I'd like to condense it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let lastyear = 2020;        

libname  data11"S:\Projects\Data\2011\Intermediate";
libname  data12"S:\Projects\Data\2012\Intermediate";
libname  data13"S:\Projects\Data\2013\Intermediate";
libname  data14"S:\Projects\Data\2014\Intermediate";
libname  data15"S:\Projects\Data\2015\Intermediate";
libname  data16"S:\Projects\Data\2016\Intermediate";
libname  data17"S:\Projects\Data\2017\Intermediate";
libname  data18"S:\Projects\Data\2018\Intermediate";
libname  data19"S:\Projects\Data\2019\Intermediate";
libname  data20"S:\Projects\Data\2020\Intermediate";
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any thoughts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My second goal is to improve the efficiency of reading in a set of data sets in a set statement. Again, these have a consistent naming convention and again I am working with a macro that is four digit year of the most recent year of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	%let lastyear = 2020;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;        data new_data;
	  	  set   data18.file_name(in=_18)
			data19.file_name(in=_19)
			data20.file_name(in=_20);

	  new_var=old_var(mn, dy, yr);
	run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Loops-for-Read-In/m-p/729425#M80341</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2021-03-26T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Read In Using Loop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-In-Using-Loop/m-p/729389#M80338</link>
      <description>&lt;P&gt;I am wondering if there is a more efficient way to append a bunch of data sets during read in. Fortunately, all the data sets I am working with follow the same naming convention and only differ in a single number that increments each year. I have been doing the below, but since is this something I will simply have to add to each year, am wondering if there is a way to use a macro (indicating the most recent year) and a loop to make this more efficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data app_data;
	  set 	ds2015
			ds2016
			ds2017
			ds2018
			ds2019
			ds2020;

        *Other stuff happens;
run;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-In-Using-Loop/m-p/729389#M80338</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2021-03-26T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Proc Export as .txt from SAS EG to Local Machine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-as-txt-from-SAS-EG-to-Local-Machine/m-p/728753#M80321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to export data as .txt (comma delimited) to a local machine using SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple questions:&lt;/P&gt;&lt;P&gt;1) Is this even possible? While looking through the documentation, it seems that you can only specify the DBMS as Access&lt;STRONG&gt;cs&lt;/STRONG&gt; or Excel&lt;STRONG&gt;cs &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acpcref&amp;amp;docsetTarget=p1d0tocg3njhmfn1d4ld2covlwm0.htm&amp;amp;locale=en" target="_self"&gt;(link)&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt; in order to export to a local machine. However, when I perform an export as .txt through the "Export file as step in project" it works fine.&lt;/P&gt;&lt;P&gt;2) Would you have to specify a Server_Name and Port_Number similar to an Excelcs export?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC EXPORT 
DATA=WORK.DISTRIBUTIONS
OUTFILE="&amp;lt;file path&amp;gt;"
DBMS=&amp;lt;?&amp;gt; REPLACE;
SERVER_NAME = "&amp;amp;serv_name";
PORT_NUMBER = 9621;
RUN;&lt;/PRE&gt;&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-as-txt-from-SAS-EG-to-Local-Machine/m-p/728753#M80321</guid>
      <dc:creator>gflowers</dc:creator>
      <dc:date>2021-03-24T13:56:13Z</dc:date>
    </item>
    <item>
      <title>All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/All-observations-have-the-same-response-No-statistics-are/m-p/727667#M80315</link>
      <description>&lt;PRE&gt;Filename Refile '/home/u49589061/MPBH 421/Programs/condom.csv';&lt;BR /&gt;&lt;BR /&gt;Proc import Datafile=Refile&lt;BR /&gt;	DBMS=CSV&lt;BR /&gt;	Out=work.condom;&lt;BR /&gt;	Getnames=YES;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc contents data=work.condom;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;Proc print data=work.condom;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Data condom1;&lt;BR /&gt;Set work.condom;&lt;BR /&gt;If gender="male" then gender=0;&lt;BR /&gt;Else gender=1;&lt;BR /&gt;If use="unprotected" then use=0;&lt;BR /&gt;Else use=1;&lt;BR /&gt;If safety gt 5 then delete;&lt;BR /&gt;If sexexp gt 10 then delete;&lt;BR /&gt;If previous="Condom us" then previous=0;&lt;BR /&gt;If previous="No condom" then previous=1;&lt;BR /&gt;Else previous=2;&lt;BR /&gt;If selfcon gt 9 then delete;&lt;BR /&gt;If perceive gt 6 then delete;&lt;BR /&gt;Previous1 = previous EQ 1;&lt;BR /&gt;Previous2 = previous EQ 2;&lt;BR /&gt;Run;&lt;BR /&gt;*****************************************************;&lt;BR /&gt;Proc logistic data=condom1;&lt;BR /&gt;class gender/param=ref;&lt;BR /&gt;Model use(ref=last)=perceive safety gender/expb cl rsq;&lt;BR /&gt;Output Out=condomres1 pred=pred;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;PROC LOGISTIC DATA=condom;&lt;BR /&gt;Class gender/param=ref;&lt;BR /&gt;MODEL  use (REF="0")=  perceive safety gender previous1 previous2 selfcon sexexp /EXPB CL RSQ;&lt;BR /&gt;OUTPUT OUT=condomres2 PRED=pred   ;&lt;BR /&gt;Test previous1=0,  previous2=0,  selfcon=0,  sexexp=0;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;- I need some major help for the following two parts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I'm trying to make dummy variables for the variable: previous&amp;nbsp;Previous1 = previous EQ 1;&lt;BR /&gt;Previous2 = previous EQ 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I am currently running into problems with running the last two proc logistics statements. After I run the first proc logistic statement, it states that "All observations have the same response. No statistics are computed." And then when I run the second proc logistic statement, it states that the "variable previous1 was not found."&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 06:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/All-observations-have-the-same-response-No-statistics-are/m-p/727667#M80315</guid>
      <dc:creator>u49589061</dc:creator>
      <dc:date>2021-03-19T06:54:11Z</dc:date>
    </item>
    <item>
      <title>Adding to total row to a numeric group value in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-to-total-row-to-a-numeric-group-value-in-Proc-Report/m-p/727492#M80313</link>
      <description>&lt;P&gt;I'm trying to add total row header and received an error messages because the Group variable is numeric.&amp;nbsp; &amp;nbsp;Can anyone recommend a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;26 data tab1;&lt;BR /&gt;27 input c $ year benes death;&lt;BR /&gt;28 list;&lt;BR /&gt;29 datalines;&lt;/P&gt;&lt;P&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&lt;BR /&gt;30 a 2009 1 1&lt;BR /&gt;31 a 2010 1 0&lt;BR /&gt;32 a 2009 1 0&lt;BR /&gt;33 a 2010 1 1&lt;BR /&gt;34 a 2010 1 0&lt;BR /&gt;35 a 2010 1 0&lt;BR /&gt;36 b 2009 1 1&lt;BR /&gt;37 b 2010 1 0&lt;BR /&gt;38 b 2009 1 0&lt;BR /&gt;39 b 2010 1 0&lt;BR /&gt;NOTE: The data set WORK.TAB1 has 10 observations and 4 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;40 ;&lt;/P&gt;&lt;P&gt;41 run;&lt;BR /&gt;42&lt;BR /&gt;43 proc format;&lt;BR /&gt;44 value dec&lt;BR /&gt;45 0='No'&lt;BR /&gt;46 1='Yes'&lt;BR /&gt;47 ;&lt;BR /&gt;NOTE: Format DEC is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format DEC has been output.&lt;BR /&gt;2 The SAS System 11:28 Thursday, March 18, 2021&lt;/P&gt;&lt;P&gt;48 value missnum&lt;BR /&gt;49 . = '0'&lt;BR /&gt;50 other=[comma8.]&lt;BR /&gt;51 ;&lt;BR /&gt;NOTE: Format MISSNUM is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format MISSNUM has been output.&lt;BR /&gt;52 value missdec&lt;BR /&gt;53 . = '0'&lt;BR /&gt;54 other=[8.2]&lt;BR /&gt;55 ;&lt;BR /&gt;NOTE: Format MISSDEC is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format MISSDEC has been output.&lt;BR /&gt;56 value misspct&lt;BR /&gt;57 . = '0.0%'&lt;BR /&gt;58 other=[percent7.1]&lt;BR /&gt;59 ;&lt;BR /&gt;NOTE: Format MISSPCT is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format MISSPCT has been output.&lt;BR /&gt;60 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;61&lt;BR /&gt;62 proc report data=tab1 split='~';&lt;BR /&gt;63 columns c year benes=benessum ('deceased' death, benes) death=decpct&lt;BR /&gt;64 ('rate' death, benes=rate1) benes=rate2 ('increase likelihood~of disenrollment' likelihood);&lt;BR /&gt;65 define c /group ;&lt;BR /&gt;66 define year / group;&lt;BR /&gt;67 define benessum / sum 'Benes' format=missnum.;&lt;BR /&gt;68 define death / across '' format=dec. missing;&lt;BR /&gt;69 define benes / analysis '' sum format=missnum.;&lt;BR /&gt;70 define decpct / analysis 'pct deceased' mean format=misspct.;&lt;BR /&gt;71 define rate1 / analysis '' pctsum format=misspct.;&lt;BR /&gt;72 define rate2 / analysis 'pct of cohort' pctsum format=misspct.;&lt;BR /&gt;73 define likelihood / computed ''&lt;BR /&gt;74 format=missdec.;&lt;BR /&gt;75 break after c / summarize;&lt;BR /&gt;76 rbreak after / summarize;&lt;BR /&gt;77 compute after c;&lt;BR /&gt;78 year = 'Total';&lt;BR /&gt;79 endcomp;&lt;BR /&gt;80 compute after;&lt;BR /&gt;81 c='Total';&lt;BR /&gt;82 endcomp;&lt;BR /&gt;83 compute likelihood;&lt;BR /&gt;84 likelihood=_c8_/_c7_;&lt;BR /&gt;85 endcomp;&lt;BR /&gt;86&lt;BR /&gt;87 run;&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt;1:9&lt;BR /&gt;NOTE: Invalid numeric data, 'Total' , at line 1 column 9.&lt;BR /&gt;NOTE: Invalid numeric data, 'Total' , at line 1 column 9.&lt;BR /&gt;NOTE: Missing values were generated as a result of performing an operation on missing values.&lt;BR /&gt;3 The SAS System 11:28 Thursday, March 18, 2021&lt;/P&gt;&lt;P&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;1 at 1:17&lt;BR /&gt;NOTE: There were 10 observations read from the data set WORK.TAB1.&lt;BR /&gt;NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format.&lt;BR /&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;BR /&gt;real time 0.32 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-to-total-row-to-a-numeric-group-value-in-Proc-Report/m-p/727492#M80313</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2021-03-18T17:39:00Z</dc:date>
    </item>
    <item>
      <title>Test difference in slopes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Test-difference-in-slopes/m-p/727282#M80309</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I've run a segmented regression for count data in GENMOD. I created 2 slopes and I want to statistically test the difference between the 2 slopes. Slope1=Slope2 or Slope1-Slope2=0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do this easily in STATA using the lincom command, but I can't figure out how to do it in SAS.&amp;nbsp; TIA&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 01:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Test-difference-in-slopes/m-p/727282#M80309</guid>
      <dc:creator>ahschnell</dc:creator>
      <dc:date>2021-03-18T01:02:01Z</dc:date>
    </item>
    <item>
      <title>Proc import : language issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-import-language-issues/m-p/725549#M80296</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I imported an excel file with a column containing Kazakh (+++) and other languages (Russian, English) and I get this warning message "&lt;STRONG&gt;Some character data was lost during transcoding in column&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/SPAN&gt; M&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;y column values beyond those in English have all been changed.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;How can I solve this issue?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-import-language-issues/m-p/725549#M80296</guid>
      <dc:creator>Liamb</dc:creator>
      <dc:date>2021-03-11T18:42:15Z</dc:date>
    </item>
    <item>
      <title>Correct procedure for cross tab with headings only</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Correct-procedure-for-cross-tab-with-headings-only/m-p/725505#M80287</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me determine the best procedure for creating a crosstab with variable names instead of counts/sums/etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Example, I can do a PROC FREQ of _Region* Area to get this output:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Area1&lt;/TD&gt;&lt;TD&gt;Area2&lt;/TD&gt;&lt;TD&gt;Area3&lt;/TD&gt;&lt;TD&gt;Area4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what I want is this:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Region1&lt;/TD&gt;&lt;TD&gt;Area2&lt;/TD&gt;&lt;TD&gt;Area3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region2&lt;/TD&gt;&lt;TD&gt;Area1&lt;/TD&gt;&lt;TD&gt;Area2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Region3&lt;/TD&gt;&lt;TD&gt;Area1&lt;/TD&gt;&lt;TD&gt;Area4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 15x115 variables, and the first output is too cumbersome and requires a lot of Excel manipulation.&lt;/P&gt;&lt;P&gt;Is there a procedure/option/format that will help me to create an output that looks like the second?&lt;/P&gt;&lt;P&gt;I'm certain I must be overthinking this, but I'm just stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Correct-procedure-for-cross-tab-with-headings-only/m-p/725505#M80287</guid>
      <dc:creator>MillerEL</dc:creator>
      <dc:date>2021-03-11T16:43:53Z</dc:date>
    </item>
    <item>
      <title>proc compare, ony output unequal obs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725503#M80286</link>
      <description>&lt;P&gt;when I use proc compare to compare 2 data sets AND everything is 100% the same,&lt;/P&gt;
&lt;P&gt;I still get output because I use the ID statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I avoid this??&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="Jaheuk_0-1615480836494.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55821i1586CBFAB2804C03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_0-1615480836494.png" alt="Jaheuk_0-1615480836494.png" /&gt;&lt;/span&gt;&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="Jaheuk_1-1615480894498.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55822i2BA535047CB56DF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jaheuk_1-1615480894498.png" alt="Jaheuk_1-1615480894498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-compare-ony-output-unequal-obs/m-p/725503#M80286</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2021-03-11T16:42:22Z</dc:date>
    </item>
    <item>
      <title>Calculate percentage of total for each category in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculate-percentage-of-total-for-each-category-in-SAS/m-p/724654#M80275</link>
      <description>&lt;P&gt;I have a table in SAS like the one in screen shot. I need to add one more column to show the percentage of sub-total for each category. For example, class_type='1-LOWER UG' and Campus='1-TPA', the percentage (using CY column) would be 7368/42008 = 17.5%;&amp;nbsp;class_type='2-UPPER UG' and Campus='1-TPA', the percentage (using CY column) would be 22801/42008 = 54.3%.... Is there a simple way to do this? Will appreciate any help! Thanks!&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="xliu1_0-1615236532359.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55678i9412BEE017582F34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_0-1615236532359.png" alt="xliu1_0-1615236532359.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 20:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculate-percentage-of-total-for-each-category-in-SAS/m-p/724654#M80275</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-03-08T20:56:38Z</dc:date>
    </item>
    <item>
      <title>proc report - merging headers (and columns) with across and grouped variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-merging-headers-and-columns-with-across-and-grouped/m-p/724355#M80271</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code runs, yay! But doesn't get me the desired results...&lt;/P&gt;&lt;P&gt;I currently get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RJB_NZ_2-1615178319172.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55606i8099C811F5FD2B32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RJB_NZ_2-1615178319172.png" alt="RJB_NZ_2-1615178319172.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;But I'd like the top two header rows put into one.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And&lt;/STRONG&gt; I'd like the last two of those column headers to be in red font and merged across 2 cells, to line up with the columns below them.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RJB_NZ_3-1615178503749.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55607i20CAA1BF0E2F7DBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RJB_NZ_3-1615178503749.png" alt="RJB_NZ_3-1615178503749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that's a few things together, but I'm worried that they'll interact and so can't be considered separetly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rodney&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;PRE&gt;&lt;CODE class=" language-sas"&gt;%let PathAndFile = 'c:\MyFolder\Shoes Test.xlsx';
data shoes_raw;
	set sashelp.shoes;
	where product in ('Sandal' 'Slipper' 'Sport Shoe');
run;

ODS excel 
	file = "&amp;amp;PathAndFile."
	options (	embedded_titles='OFF' /*On means text in TITLE statement of proc tabulate will show in excel file*/
				sheet_interval="none" /*when to split off to a new page - "none" means not at all*/
				sheet_name='Shoes Tests' /*Name of Sheet*/
				gridlines ='off' /*set printable gridlines*/
				absolute_column_width='23, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10' /*setting column widths*/
				absolute_row_height='15.75' /*setting column height*/
			);


	proc report data = shoes_raw missing;

		*stating columns to be in the report and their order;
		column region ('Products sold' stores,product)
					  ('Sales amount' Sales,product)
					  ('Sandal short' Sandal_Diff)
					  ('Shoe short' Shoe_Diff)
			    ;

		*define columns directly from dataset variables;
		define region  / 'Global region' group
								 style(header)=[just=left borderbottomstyle=solid bordertopstyle=solid];
		define stores  / ' ' analysis sum format=comma.
							   style(header)=[just=right borderbottomstyle=solid bordertopstyle=solid  tagattr='MERGEACROSS:2'];
		define Sales   / ' ' analysis sum format=dollar.2
							   style(header)=[just=right borderbottomstyle=solid bordertopstyle=solid  tagattr='MERGEACROSS:2'];
		define product / ' ' across order=internal
								 style(header)=[borderbottomstyle=solid bordertopstyle=solid just=right.];
		*define cumputed columns;
		define Sandal_Diff / "Slipper - Sandal" computed format=dollar.2
							   style(header)=[just=right borderbottomstyle=solid bordertopstyle=solid  tagattr='MERGEACROSS:2']
							   style(column)=[ tagattr='MERGEACROSS:2'];
		define Shoe_Diff / "Slipper - Sport Shoe" computed format=dollar.2
							   style(header)=[just=right borderbottomstyle=solid bordertopstyle=solid  tagattr='MERGEACROSS:2']
							   style(column)=[tagattr='MERGEACROSS:2'];


		*computing columns (that are based off other columns);
			*columns produced from the across option of the 'month' variable do not have a name so must be reffered to by their column number, as can be counted in the column statement;
		compute Sandal_Diff;
			Sandal_Diff = _c6_ - _c5_;
		endcomp;
		compute Shoe_Diff;
			Shoe_Diff = _c6_ - _c7_;
		endcomp;
	run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 04:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-merging-headers-and-columns-with-across-and-grouped/m-p/724355#M80271</guid>
      <dc:creator>RJB_NZ</dc:creator>
      <dc:date>2021-03-08T04:43:13Z</dc:date>
    </item>
    <item>
      <title>Proc Transpose and keep the first column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Transpose-and-keep-the-first-column/m-p/724105#M80265</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! I am trying to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-search-match-lithium lia-search-match-lithium"&gt;transpose&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;a table keeping the first column.&amp;nbsp; I would appreciate help!&amp;nbsp; Thank you in advance!&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have this data set:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&l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&lt;TD&gt;AE_B&lt;/TD&gt;&lt;TD&gt;AI_B&lt;/TD&gt;&lt;TD&gt;AE_C&lt;/TD&gt;&lt;TD&gt;AI_C&lt;/TD&gt;&lt;TD&gt;AE_D&lt;/TD&gt;&lt;TD&gt;AI_D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;TD&gt;284&lt;/TD&gt;&lt;TD&gt;136&lt;/TD&gt;&lt;TD&gt;5143.03&lt;/TD&gt;&lt;TD&gt;1450.67&lt;/TD&gt;&lt;TD&gt;234&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;TD&gt;4692.75&lt;/TD&gt;&lt;TD&gt;1031.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;43&lt;/TD&gt;&lt;TD&gt;207&lt;/TD&gt;&lt;TD&gt;130&lt;/TD&gt;&lt;TD&gt;4389.86&lt;/TD&gt;&lt;TD&gt;1419.78&lt;/TD&gt;&lt;TD&gt;93&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;TD&gt;1890.86&lt;/TD&gt;&lt;TD&gt;559.68&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 01:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Transpose-and-keep-the-first-column/m-p/724105#M80265</guid>
      <dc:creator>PauloC</dc:creator>
      <dc:date>2021-03-06T01:15:32Z</dc:date>
    </item>
    <item>
      <title>"if...then do;...end;" statement generates missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/quot-if-then-do-end-quot-statement-generates-missing-values/m-p/724070#M80262</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used "if...then do;...end;" statement to get a new dataset, however, the new created variables are all missing values. I already tried the same format codes to generate another similar dataset with no errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my codes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data my_OR; set OR;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if effect="LDL_10 at gluc_10=8.80" then do group=1; gluc=88; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if effect="LDL_10 at gluc_10=9.90" then do group=1; gluc=99; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if effect="LDL_10 at gluc_10=12.50" then do group=1; gluc=125; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if effect="Gluc_10 at LDL_10=9.05" then do group=2; LDL=90.5; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if effect="Gluc_10 at LDL_10=13.51" then do group=2; LDL=135.1; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if effect="Gluc_10 at LDL_10=18.75" then do group=2; LDL=187.5; end;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log looks fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: There were 6 observations read from the data set WORK.OR.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: The data set WORK.MY_OR has 6 observations and 8 variables.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: DATA statement used (Total process time):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;real time 0.01 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cpu time 0.03 seconds&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aw016_0-1614982497428.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55547i0653CB93A1CB8771/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aw016_0-1614982497428.png" alt="aw016_0-1614982497428.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 22:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/quot-if-then-do-end-quot-statement-generates-missing-values/m-p/724070#M80262</guid>
      <dc:creator>aw016</dc:creator>
      <dc:date>2021-03-05T22:18:31Z</dc:date>
    </item>
    <item>
      <title>locf CODE CONFIRMATION</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/locf-CODE-CONFIRMATION/m-p/723428#M80246</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new X&lt;BR /&gt;input RANDOMNO Visit Value X&lt;BR /&gt;DATALINESX&lt;BR /&gt;1 0 1&lt;BR /&gt;1 1 5&lt;BR /&gt;1 2 .&lt;BR /&gt;1 3 7&lt;BR /&gt;1 4 .&lt;BR /&gt;1 5 1&lt;BR /&gt;2 0 3&lt;BR /&gt;2 1 .&lt;BR /&gt;2 2 .&lt;BR /&gt;2 3 4&lt;BR /&gt;2 4 5&lt;BR /&gt;2 5 .&lt;BR /&gt;3 0 .&lt;BR /&gt;3 1 .&lt;BR /&gt;3 2 6&lt;BR /&gt;3 3 .&lt;BR /&gt;3 4 8&lt;BR /&gt;3 5 0&lt;BR /&gt;X&lt;BR /&gt;RUNX&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc sort data= new X&lt;/P&gt;&lt;P&gt;By RANDOMNO Visit X&lt;/P&gt;&lt;P&gt;Run X&lt;BR /&gt;DATA LOCFX&lt;BR /&gt;LENGTH DTYPE $15X&lt;BR /&gt;RETAIN retain X&lt;BR /&gt;SET new X&lt;BR /&gt;BY RANDOMNO Visit X&lt;/P&gt;&lt;P&gt;IF FIRST.RANDOMNO and &lt;FONT color="#FF0000"&gt;Visit=0&lt;/FONT&gt; THEN retain=. X&lt;BR /&gt;IF Value NE . and Visit^=0 THEN retain=Value X&lt;BR /&gt;IF Value=. THEN DO X&lt;BR /&gt;VLOCF=retain X&lt;BR /&gt;DTYPE='LOCF' X&lt;BR /&gt;END X&lt;BR /&gt;ELSE VLOCF=Value X&lt;BR /&gt;&lt;BR /&gt;RUN X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REPLACED SEMICOLE WITH X AS SAS ASK TO REMOVE TO DO THIS BEFORE POSTING&lt;/P&gt;&lt;P&gt;----------------------------------------------------------&lt;/P&gt;&lt;P&gt;Above code I am using to do LOCF. it is giving me a correct result for this data. It may be not correct for large data.&lt;/P&gt;&lt;P&gt;Can you confirm that condition I applied is correct.&lt;/P&gt;&lt;P&gt;is this code will work for a large data also.&lt;/P&gt;&lt;P&gt;please suggest if further refinement to this code should be done.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/locf-CODE-CONFIRMATION/m-p/723428#M80246</guid>
      <dc:creator>jay_bhavsar</dc:creator>
      <dc:date>2021-03-04T12:21:49Z</dc:date>
    </item>
    <item>
      <title>searching for the next not repetitive date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/searching-for-the-next-not-repetitive-date/m-p/723108#M80237</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;
&lt;P&gt;Help me please to solve the problem. I try to find score. ID=A gives 1 point, ID=B minus 1 point, but&amp;nbsp;it should be in chronological order, like in attached file. How is it possible to solve it? The result for code 111 should be 1 point.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 10:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/searching-for-the-next-not-repetitive-date/m-p/723108#M80237</guid>
      <dc:creator>J_J_J</dc:creator>
      <dc:date>2021-03-03T10:43:30Z</dc:date>
    </item>
    <item>
      <title>Flag multiple duplicates (without deleting) so third duplicate has different flag from second</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Flag-multiple-duplicates-without-deleting-so-third-duplicate-has/m-p/722681#M80233</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am analyzing a dataset with multiple duplicate ID numbers in it and am trying to create a flag such that, if an ID appears four times for example, the first appearance is flagged 0, second is flagged 1, third is flagged 2, and fourth is flagged 3. I have approximately 139,000 unique IDs and 356,000 rows total. About 40% of my IDs are unique, but the number of observations per ID ranges from 1 to 98 (I only really care about the first three observations per ID, but I need to be able to differentiate between the second and third). I successfully created a flag that identifies the duplicates, but it does not differentiate between the second and all duplicates following it (it's just a 0 /1 binary indicator currently, where =1 tells me the row is a duplicate). Here is my current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set data have;&lt;/P&gt;&lt;P&gt;by idnumber;&lt;/P&gt;&lt;P&gt;if first.idnumber=0 or last.idnumber=0 then dupflag = 1;&lt;/P&gt;&lt;P&gt;else flag=0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance is appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 20:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Flag-multiple-duplicates-without-deleting-so-third-duplicate-has/m-p/722681#M80233</guid>
      <dc:creator>MHines</dc:creator>
      <dc:date>2021-03-01T20:37:46Z</dc:date>
    </item>
    <item>
      <title>Reading output 2.3 in Fixed Effects Methods for Linear Regression (Paul.Allison)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-output-2-3-in-Fixed-Effects-Methods-for-Linear/m-p/722484#M80230</link>
      <description>&lt;P&gt;Hi all SAS Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to SAS regression, I am working in finance research. After asking some questions in this forum, some experts ask me to read the book "Fixed Effects Methods for Linear Regression" (Paul Allison, 2005), then search lexjansen for answers then come back to this forum to ask if there are any questions (e.g:&amp;nbsp;&lt;LI-USER uid="13633"&gt;&lt;/LI-USER&gt;&amp;nbsp;&amp;nbsp;and &lt;LI-USER uid="13879"&gt;&lt;/LI-USER&gt;&amp;nbsp;). I am wondering if the questions about that book are allowed to be posted here, if not, please let me know and I am happy to receive any suggestion to align with the forum's rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am quite a bit confused about that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The example in this book (I am standing on chapter 2) is straightforward with simple examples, I am wondering why many suggest me to go through lexjansen to search in any case, can I ask how to use lexjansen website and this book efficiently?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Regarding Output 2.2 in this book (page 13), he wrote something that I did not understand, and I do not know how to search from lexjansen website to go through 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="My97_1-1614544905335.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55297i18D229459F98B50C/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_1-1614544905335.png" alt="My97_1-1614544905335.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not understand the part "Output 2.3 shows that although the majority of children did not change in status, about 24% did change in one direction or another", what does "24%" means and where it is on the Table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apart from that, the Table output 2.3 also really unfamiliar to me, because I do not know how to read this Table. For example, I do not know &lt;STRONG&gt;pov90&lt;/STRONG&gt; standing there for what, and what do 0 and 1 mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&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, 28 Feb 2021 20:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-output-2-3-in-Fixed-Effects-Methods-for-Linear/m-p/722484#M80230</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-28T20:52:46Z</dc:date>
    </item>
    <item>
      <title>Add a vertical reference line to time series plot in sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Add-a-vertical-reference-line-to-time-series-plot-in-sas/m-p/722259#M80224</link>
      <description>&lt;P&gt;I try to add a vertical reference line to a time series plot to indicate the year where the forecast starts, but keep getting this error message in sas log. The variable AY has the datetime format Year4. The sas code works for the plot until I add the refline statement. Will appreciate any help with the refline statement! Thanks!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xliu1_0-1614375450471.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55250iE3175D3E105152AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_0-1614375450471.png" alt="xliu1_0-1614375450471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT DATA=BACHDEG_Forecast;
BAND Upper=u95 Lower=l95 x=AY / Legendlabel="95% Confidence Limits";
scatter x=AY y=degrees_usf;
series x=AY y=forecast;
refline "AY=2022" / axis=x lineattrs=(thickness=1 color=BLUE pattern=dash);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Feb 2021 21:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Add-a-vertical-reference-line-to-time-series-plot-in-sas/m-p/722259#M80224</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-02-26T21:41:53Z</dc:date>
    </item>
    <item>
      <title>Exclude categorical variable level from chi square analysis, but not from total population</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exclude-categorical-variable-level-from-chi-square-analysis-but/m-p/721653#M80221</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a dataset with several categorical variables. I'd like to produce chi square tests on some of the variables. One of the variables, race, has several levels:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;White&lt;/P&gt;&lt;P&gt;Black&lt;/P&gt;&lt;P&gt;Hispanic&lt;/P&gt;&lt;P&gt;Other&lt;/P&gt;&lt;P&gt;Unknown&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The level 'unknown' cannot be included in the chi square test, but must be included in the total population of interest, which is ~85,000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; value $plan&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'var1','var2'='var1+2'&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'var3' 'var4' 'var5'='var3-5'&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc freq data=popstudy;&lt;BR /&gt;&amp;nbsp; tables (race sex age)*(var1) / chisq;&lt;BR /&gt;&amp;nbsp; format var1 $plan.;&lt;BR /&gt;&amp;nbsp;where race not= ('Unknown') ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This reduces the total population to ~60,000, which is not what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried subsetting the dataset and producing another dataset that removes all values of&amp;nbsp;'Unknown' race, but this reduces the population as the code above does and is not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My supervisor says I need to rename the 'Unknown' level as equal to 99999 or something similar, and include a "where" statement in my proc freq statement, but I am not sure what they mean by this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 18:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exclude-categorical-variable-level-from-chi-square-analysis-but/m-p/721653#M80221</guid>
      <dc:creator>bazingarollcall</dc:creator>
      <dc:date>2021-02-24T18:13:28Z</dc:date>
    </item>
    <item>
      <title>Table selector prompt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Table-selector-prompt/m-p/721404#M80217</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, good afternoon, I would like to ask for a little help with something. In the Guide server we have several tables listed by years, I have a process which analyzes the tables but what I want to achieve is that the user selects the year with a prompt and executes the analysis qwerys.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These are examples with the names of the tables that I have.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;table2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;table2019&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;table2020&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ejemplo.PNG" style="width: 112px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55091i6DB38B184103F528/image-size/large?v=v2&amp;amp;px=999" role="button" title="ejemplo.PNG" alt="ejemplo.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 21:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Table-selector-prompt/m-p/721404#M80217</guid>
      <dc:creator>Andres_Fuentes</dc:creator>
      <dc:date>2021-02-23T21:31:38Z</dc:date>
    </item>
    <item>
      <title>number of id per date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/number-of-id-per-date/m-p/721362#M80215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to calculate the number of id per date or year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input date id $;&lt;BR /&gt;datalines;&lt;/P&gt;
&lt;P&gt;1996 5&lt;BR /&gt;1996 6&lt;BR /&gt;1996 7&lt;BR /&gt;1997 1&lt;BR /&gt;1998 5&lt;BR /&gt;1998 10&lt;BR /&gt;1999 11&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;input date nbid $;&lt;BR /&gt;datalines;&lt;/P&gt;
&lt;P&gt;1996 3&lt;BR /&gt;1997 1&lt;BR /&gt;1998 2&lt;BR /&gt;1999 1&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 18:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/number-of-id-per-date/m-p/721362#M80215</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2021-02-23T18:45:46Z</dc:date>
    </item>
    <item>
      <title>Help with PROC SQL syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-SQL-syntax-error/m-p/720976#M80210</link>
      <description>&lt;P&gt;I keep getting error message from sas log for the following program and will appreciate any help with this. Thanks!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xliu1_0-1614014076263.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55034iE9EE17B796F3AEA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_0-1614014076263.png" alt="xliu1_0-1614014076263.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC SQL;
CREATE TABLE MIN_ENRL_TERM AS
SELECT H.OASIS_PIDM    as    OASIS_PIDM               
, R.UID              as   USF_ID
,(SELECT  H.REPT_TIME_FRAME as MIN_ENRL_TIME,
        H.OASIS_PIDM  as    MIN_ENRL_PIDM,
        min(CASE WHEN (H.STU_ENTRY_TYP IN ('B', 'E') AND H.STU_RECENT_ADM_TYP IN ('B', 'E') 
                         AND R.CRS_SYSTEM = 'N' AND R.CRS_GROUP = 'A' and R.STU_CLASS_LEVEL ^= 'N' 
                         AND R.TERM_TAKEN &amp;gt;= H.STU_ENTRY_DT) THEN R.TERM_TAKEN
                 WHEN (R.CRS_SYSTEM = 'N' AND R.CRS_GROUP = 'A' and R.STU_CLASS_LEVEL ^= 'N' 
                         AND R.TERM_TAKEN &amp;gt;= H.STU_RECENT_ADM_DT) THEN R.TERM_TAKEN END)) AS FIRST_ENRL_TERM
FROM SID.SID_COURSES_TO_DEGREE  R
JOIN SID.SID_HOURS_TO_DEGREE H ON R.CONTEXT_CODE = H.CONTEXT_CODE AND R.OASIS_PIDM = H.OASIS_PIDM 
                                  AND R.REPT_TIME_FRAME = H.REPT_TIME_FRAME AND R.REPT_TIME_FRAME IN ('201905', '201908', '202001');
QUIT;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2021 17:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-SQL-syntax-error/m-p/720976#M80210</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-02-22T17:20:21Z</dc:date>
    </item>
    <item>
      <title>display proc freq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/display-proc-freq-output/m-p/720367#M80205</link>
      <description>&lt;P&gt;Hello - I'm trying to get a proc freq output that contains 3 columns (all patients, COPD=0, COPD=1) instead of running 2 procedures and coping the answers over by hand. Can you help?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq order=freq; table race; run;
proc freq order=freq; table race*COPD; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;All&amp;nbsp; &amp;nbsp; &amp;nbsp;COPD=0&amp;nbsp; &amp;nbsp; COPD=1&lt;/P&gt;&lt;P&gt;race1&lt;/P&gt;&lt;P&gt;race2&lt;/P&gt;&lt;P&gt;race3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is there a way to order by a certain column or will SAS always order by descending row sum?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 00:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/display-proc-freq-output/m-p/720367#M80205</guid>
      <dc:creator>lmyers2</dc:creator>
      <dc:date>2021-02-19T00:54:31Z</dc:date>
    </item>
    <item>
      <title>in the fixed effects, proc panel with fixeone and proc glm with Absorb have the same regres equation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/in-the-fixed-effects-proc-panel-with-fixeone-and-proc-glm-with/m-p/720070#M80202</link>
      <description />
      <pubDate>Wed, 17 Feb 2021 23:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/in-the-fixed-effects-proc-panel-with-fixeone-and-proc-glm-with/m-p/720070#M80202</guid>
      <dc:creator>Boni1</dc:creator>
      <dc:date>2021-02-17T23:14:05Z</dc:date>
    </item>
    <item>
      <title>Read filter from a table sas macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-filter-from-a-table-sas-macro/m-p/719829#M80194</link>
      <description>&lt;P&gt;Is it possible to read code block from a table and create a data by using these code blocks as a filter?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data filter_data;&lt;BR /&gt;input table_name $6. filter $30. ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATALINES;&lt;BR /&gt;Table1 Count&amp;gt;=3 and date="03feb2021"d&lt;BR /&gt;Table2 sum&amp;gt;=100 and count&amp;lt;50&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro create(table,filter);&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create &amp;amp;table. as select&lt;BR /&gt;id,&lt;/P&gt;&lt;P&gt;count(distinct x) as x,&lt;BR /&gt;sum(y) as y,&lt;BR /&gt;count(z) as z&lt;BR /&gt;from sample&lt;BR /&gt;where &amp;amp;filter.&amp;nbsp; /* %put &amp;amp;filter */&lt;BR /&gt;group by id;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set filter_data;&lt;BR /&gt;CALL EXECUTE("%create("||table_name||","||filter||");");&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 09:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-filter-from-a-table-sas-macro/m-p/719829#M80194</guid>
      <dc:creator>orangejuss</dc:creator>
      <dc:date>2021-02-17T09:07:55Z</dc:date>
    </item>
    <item>
      <title>PROC APPEND: Variable not appended due to type mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-APPEND-Variable-not-appended-due-to-type-mismatch/m-p/719750#M80192</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS. I am trying to extract data from SQL Server and load into Teradata.&lt;/P&gt;&lt;P&gt;My source table has few columns which are converted to 'yyyy-mm-dd' format and loaded to Teradata in the PROC sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I am trying to append the dataset to Teradata, it gives me a warning:&lt;/P&gt;&lt;P&gt;WARNING: Variable OPPORTUNITY_TCV not appended because of type mismatch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From source I am extracting it as below:&lt;/P&gt;&lt;P&gt;FORMAT(CAST([Status Change Date] AS DATETIME),'yyyy-MM-dd') AS [STATUS_CHANGE_DATE],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the destination DB (Teradata) the column is defined as:&lt;/P&gt;&lt;P&gt;STATUS_CHANGE_DATE DATE FORMAT 'YYYY-MM-DD' DEFAULT DATE '2000-01-01',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while executing the SAS program I am getting the below warning.&lt;/P&gt;&lt;P&gt;WARNING: Variable STATUS_CHANGE_DATE not appended because of type mismatch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest how I can resolve the warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 22:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-APPEND-Variable-not-appended-due-to-type-mismatch/m-p/719750#M80192</guid>
      <dc:creator>SebastianA</dc:creator>
      <dc:date>2021-02-16T22:55:43Z</dc:date>
    </item>
  </channel>
</rss>

