<?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>All SAS Procedures posts</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/bd-p/sas_procedures</link>
    <description>All SAS Procedures posts</description>
    <pubDate>Thu, 22 Jul 2021 16:53:30 GMT</pubDate>
    <dc:creator>sas_procedures</dc:creator>
    <dc:date>2021-07-22T16:53:30Z</dc:date>
    <item>
      <title>Re: 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/755981#M80815</link>
      <description>Thank you so much, it works for now!</description>
      <pubDate>Thu, 22 Jul 2021 16:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755981#M80815</guid>
      <dc:creator>valengvz</dc:creator>
      <dc:date>2021-07-22T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: 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/755977#M80814</link>
      <description>Why not skip creating the file and just put the literal value in the IN=, at least for now? Your value (which isn't JSON anyway) might have extra quotes from your %LET statement.</description>
      <pubDate>Thu, 22 Jul 2021 16:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755977#M80814</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-07-22T16:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: 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/755974#M80813</link>
      <description>&lt;P&gt;I'm using your code but it seems like there is a problem with the credentials, this is the way I created the &lt;STRONG&gt;jsonin&lt;/STRONG&gt; file, I already correct the PROC HTTP statement as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename jsonin temp lrecl=32760;&lt;BR /&gt;filename jsonout temp lrecl=32760;&lt;BR /&gt;filename headout temp lrecl=32760;&lt;/PRE&gt;&lt;PRE&gt;
%let string= 'grant_type=password&amp;amp;username=client&amp;amp;password=xxxx';

data _null_;
	call symputx('FLEN', length(&amp;amp;string));
run;

data _null_;
	file jsonin recfm=F lrecl=&amp;amp;FLEN;
	put &amp;amp;string;
run;


proc http url="&amp;amp;server_host/&amp;amp;server_endpoint_token"
    in=jsonin
    webusername="client"
    webpassword="cleintsecret"
    CT="application/x-www-form-urlencoded"
    out=jsonout
    headerout=headout;
	debug level=3;
    headers "Accept"="application/json" ;
run;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 15:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755974#M80813</guid>
      <dc:creator>valengvz</dc:creator>
      <dc:date>2021-07-22T15:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: 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/755971#M80812</link>
      <description>&lt;P&gt;Some tweaks to the way you transcribed the cURL to PROC HTTP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc http url="&amp;amp;server_host/&amp;amp;server_endpoint_token"
    in="%nrstr(&amp;amp;grant_type)=password%nrstr(&amp;amp;username)=user"
    webusername="client"
    webpassword="clientsecret"
    CT="application/x-www-form-urlencoded"
    out=jsonout
    headerout=headout;
	debug level=3;
    headers "Accept"="application/json" ;
run;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you share more about which service you're using (if it's something common), we might have a better example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the IN= takes what you specify in cURL -d option. The webusername/webpassword takes what you specify in the -u option. CT= is shorthand for "Content-Type" so no need to include the "Content-Type=" as part of the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n154smey890g2xn1l6wljfyjcemh.htm" target="_self"&gt; SSLPARMS statement&amp;nbsp;&lt;/A&gt;can help specify behavior for verifying certificates. Adding the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/secref/p04x46b2ixjswen1u03bvv437x25.htm" target="_self"&gt;SSLREQCERT= value&lt;/A&gt; may help.&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sslparms "sslreqcert"="allow";&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jul 2021 15:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755971#M80812</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-07-22T15:21:21Z</dc:date>
    </item>
    <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>Re: 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/755780#M80810</link>
      <description>&lt;P&gt;Look here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brookmeyer and Crowley Confidence Intervals?&lt;BR /&gt;Posted 11-02-2019 11:00 PM&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Brookmeyer-and-Crowley-Confidence-Intervals/td-p/601198" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Brookmeyer-and-Crowley-Confidence-Intervals/td-p/601198&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 23:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-lifetest-Brookmeyer-Crowley-confidence-interval-for-median/m-p/755780#M80810</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-07-21T23:04:53Z</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>Re: 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/754957#M80807</link>
      <description>dear, i got the solution after using ods graphics off code using. though i didn't get any permanent option for close or off this ods I have to use this in every program for ods graph off. however, i am now happy and this will be ok for me.</description>
      <pubDate>Mon, 19 Jul 2021 10:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/t-grouping-is-showing-in-bar-not-letter/m-p/754957#M80807</guid>
      <dc:creator>atikurmamun</dc:creator>
      <dc:date>2021-07-19T10:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754950#M80806</link>
      <description>yaa i don't want the graph rather i want the letter against graph...i want the picture 2 format not picture 1...&lt;BR /&gt;now question is...how do i off ODS graphics off cause i didn't on anything. if you could please tell me where is the option it will be very much helpful...</description>
      <pubDate>Mon, 19 Jul 2021 10:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/t-grouping-is-showing-in-bar-not-letter/m-p/754950#M80806</guid>
      <dc:creator>atikurmamun</dc:creator>
      <dc:date>2021-07-19T10:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754931#M80805</link>
      <description>&lt;P&gt;The code that created the output would likely be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure I understand your question. Are you asking how to not create the graph? If you do not want the graph then you may need to include 1) ODS Graphics off; in your program before the procedure and/or 2) remove any Plot statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ODS Graphics is a system option. If you turn it on in one part of your code you may need to turn it off in another. Depending on your environment for running SAS some of these options will persist from the last setting in a previous session and need to be turned off in the current.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 08:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/t-grouping-is-showing-in-bar-not-letter/m-p/754931#M80805</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-19T08:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Certification Sample Question - Array</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Advanced-Certification-Sample-Question-Array/m-p/754900#M80804</link>
      <description>&lt;P&gt;data test;&lt;BR /&gt;set sashelp.pricedata;&lt;BR /&gt;array oldprice[17] price1-price17;&lt;BR /&gt;array newprice[17] price1-price17;&lt;BR /&gt;do i=1 to 17;&lt;BR /&gt;newprice[i]=oldprice[i]*1.1;&lt;BR /&gt;end;&lt;BR /&gt;drop i;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 03:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Advanced-Certification-Sample-Question-Array/m-p/754900#M80804</guid>
      <dc:creator>Smartrp21</dc:creator>
      <dc:date>2021-07-19T03:03:43Z</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>Re: 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/754537#M80801</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;LI-USER uid="13549"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this definitely already clarifies things a little bit for me, thank you.&lt;/P&gt;&lt;P&gt;Basically, I was trying to clarify what "type" of Options in the SAS universe exist and what type of values, which can be assigned to these options, exist.&lt;/P&gt;&lt;P&gt;Therefore, I tried to set up an options/option values typology. But it turns out, that this is more difficult than thought, as - in my opinion- the SAS documentation alreay has some ambiguities, when it comes to this topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this is the "official" definition of&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1ndp9h2xot0p0n1smoe9u1tlj0o.htm" target="_self"&gt;&lt;EM&gt;SAS system options&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Reading through the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n096vc8shtf7mzn1rlvx6003ayho.htm" target="_self"&gt;documentation of the "getoption" function&lt;/A&gt; ,&amp;nbsp;it is talked about "system options" versus &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/p0vu32btexjo29n1jqrva2glsyns.htm#p0p5lslmhirargn127q4mvvam3l9" target="_self"&gt;"graphics options"&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Some options can be &lt;STRONG&gt;restricted&lt;/STRONG&gt; versus &lt;STRONG&gt;non-restricted,&lt;/STRONG&gt;. Also some options are &lt;STRONG&gt;portable&lt;/STRONG&gt; and some are &lt;STRONG&gt;host-dependent&lt;/STRONG&gt;. Additionally, some options can be saved, other cannot besaved.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Sidenote:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Running&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options listoptsave;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The log displays "&lt;STRONG&gt;core options&lt;/STRONG&gt;" and "&lt;STRONG&gt;Host options&lt;/STRONG&gt;" that can be saved....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, some options apply only to certain operating systems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore there are "&lt;SPAN&gt;character system option values&lt;/SPAN&gt;" versus "numeric system option values" not to mention the "boolean option values".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Long story short: &lt;STRONG&gt;is there a kind of "list"&lt;/STRONG&gt; that tells me &lt;STRONG&gt;at one glance&lt;/STRONG&gt; all the above mentioned "types of information" with respect to a particular option and its option value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 10:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/OPTION-Groups-Enterprise-Guide-versus-Windowing-Environment/m-p/754537#M80801</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2021-07-16T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754477#M80800</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;When you use Adobe Reader to open the PDF file that was created by ODS, why can't you only print page 1 to your printer. Otherwise I'm not clear on what you mean when you say I need to "print it out on PDF". A PDF file is a proprietary file format for Adobe Acrobat "Portable Document Format" files. When you direct your PROC TABULATE output to ODS PDF, all of your TABULATE output will go into the PDF file. PROC TABULATE doesn't really have physical pages. PROC TABULATE sends output to RTF and PDF and those destination viewers have physical pages that you can print. But once you open the file, you are operating with the applications interface (in this case, either Word or Acrobat and their interface to the printer).&lt;BR /&gt;&lt;BR /&gt;Is there a way to cut your TABULATE down into multiple steps so that the first step produces only page 1? Or do you need for all of your output to be created by TABULATE and then you only want to open the first page? That's what is not clear to me about your statement. ODS DOCUMENT might work for you here, but that seems overkill for something that the Acrobat Reader interface can do with a PDF file quite easily, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1626399302039.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61288iA8851093064B877E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1626399302039.png" alt="Cynthia_sas_0-1626399302039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is a PDF file created with PROC TABULATE and ODS. I only created a report with 15 pages, but it really doesn't matter whether I created 15 or 90 pages since Acrobat Reader allows me to print only the first page.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 01:35:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-print-only-first-page-ODS-PDF/m-p/754477#M80800</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-07-16T01:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754476#M80799</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Well, without knowing what kind of operating system server SAS is running on when you use Enterprise Guide, it's hard to comment. Remember that Enterprise Guide is a client application. It is a front end to SAS where SAS could be on a mainframe, a Unix or Linux box or on a Windows server. Some of the names for your options groups are familiar to me from my old mainframe days, ISPF, REXX, IMS, DB2, those are all mainframe applications. ADABAS is a SoftwareAG database system that I used on a mainframe. DB2 and IMS are IBM databases that I used on a mainframe and also I used DB2 on Unix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Options are operating system specific. So I would always expect server SAS to have different options than a local Windows install of SAS. My guess is that it's a difference related to operating system. If it really bothers you, then consult with your SAS Systems group or open a track with Tech Support.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 01:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/OPTION-Groups-Enterprise-Guide-versus-Windowing-Environment/m-p/754476#M80799</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-07-16T01:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754079#M80798</link>
      <description>&lt;P&gt;Something about proc export, which uses ODS under the hood (so I understand) writes to the log in such a way that it bypasses whatever it was in the log break routine that has failed when killing code. Again, this only happens in some cases - sometime if you kill code it dies gracefully and the log is unimpacted. When it does stop updating, there is something about interupting the call to ODS in an export statement that manages to restart the log write.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754079#M80798</guid>
      <dc:creator>bpowell</dc:creator>
      <dc:date>2021-07-14T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754076#M80797</link>
      <description>&lt;P&gt;But what does pinging the ODS system have to do with whether or not the SAS log is getting updated?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754076#M80797</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-14T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754072#M80796</link>
      <description>&lt;P&gt;Apologies for my slightly cheeky reply and thank you for your good humour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interrupting the export does indeed rekindle a frozen SAS log in 9/10 occasions. Afraid I have no idea why it works but it does. I understood it was something to do with pinging the ODS system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes the thread is old, but then it has not been resolved, so it is relevant I think to keep it open.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754072#M80796</guid>
      <dc:creator>bpowell</dc:creator>
      <dc:date>2021-07-14T14:07:46Z</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>Re: 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/754054#M80794</link>
      <description>The second version has become so flexible and efficient that I can utilize it in other cases with minor modifications. I can't thank you enough for showing me the good piece of code.</description>
      <pubDate>Wed, 14 Jul 2021 12:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754054#M80794</guid>
      <dc:creator>windy</dc:creator>
      <dc:date>2021-07-14T12:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754048#M80793</link>
      <description>&lt;P&gt;Not sure I understand your comment (either part).&lt;/P&gt;
&lt;P&gt;Are you saying the thread is not from 9 years ago with the most recent posting 4 years ago?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you saying that just interrupting a PROC EXPORT will cause the SAS session to start writing to the LOG again?&amp;nbsp; Or did you mean that interrupting a PROC EXPORT is your suggestion of why the original poster (or perhaps this new poster)&amp;nbsp; had their SAS log stop updating?&lt;/P&gt;
&lt;P&gt;Either way that is interesting idea but I am not how.&amp;nbsp; Perhaps somehow during the PROC EXPORT SAS is changing some setting that users cannot change directly and interrupting it causes it skip the step that sets it back to normal?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 12:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754048#M80793</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-14T12:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754042#M80792</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-USER uid="297250"&gt;&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was thinking that I can remove the + sign in the first macro and use it later in eta, ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is actually a good idea because it makes the macro a bit more flexible (for situations where the plus sign is not appropriate).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, with the second version of the macro you can make the plus sign an optional part of the first argument in the macro call:&lt;/P&gt;
&lt;PRE&gt;108  %put eta = int %terms(&lt;STRONG&gt;+&lt;/STRONG&gt; a#*D#,5) %terms(&lt;STRONG&gt;+&lt;/STRONG&gt; b#*D#*X,5);
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;/PRE&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754042#M80792</guid>
      <dc:creator>FreelanceReinhard</dc:creator>
      <dc:date>2021-07-14T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754039#M80791</link>
      <description>&lt;P&gt;I saw it. By the way, I need the + sign there though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking that I can remove the + sign in the first macro and use it later in eta, but the code is not resolved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again for your support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754039#M80791</guid>
      <dc:creator>windy</dc:creator>
      <dc:date>2021-07-14T11:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754037#M80790</link>
      <description>&lt;P&gt;The plus sign is just text in the macro. If you remove it,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro terms(pattern,n);
%local i;
%do i=1 %to &amp;amp;n;
%sysfunc(tranwrd(&amp;amp;pattern,#,&amp;amp;i))
%end;
%mend terms;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the result will look something like this (log excerpt)&lt;/P&gt;
&lt;PRE&gt;99   %put eta = int %terms(a#*D#,5) %terms(b#*D#*X,5);
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;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754037#M80790</guid>
      <dc:creator>FreelanceReinhard</dc:creator>
      <dc:date>2021-07-14T11:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754035#M80789</link>
      <description>&lt;P&gt;Sorry for bothering you again&amp;nbsp;&lt;LI-USER uid="32733"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What should I do if I want to remove the + sign?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754035#M80789</guid>
      <dc:creator>windy</dc:creator>
      <dc:date>2021-07-14T11:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754034#M80788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="32733"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is working beautifully. Thank you so much for helping me again. I really appreciate it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754034#M80788</guid>
      <dc:creator>windy</dc:creator>
      <dc:date>2021-07-14T11:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: 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/754023#M80787</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;LI-USER uid="297250"&gt;&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could write a little utility macro like this (just an example -- feel free to modify it)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro terms(pattern,n);
%local i;
%do i=1 %to &amp;amp;n;
+ %sysfunc(tranwrd(&amp;amp;pattern,#,&amp;amp;i))
%end;
%mend terms;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then write the model like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;eta = int %terms(a#*D#,5) %terms(b#*D#*X,5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That is, the wildcard "#" in the first argument of the macro is replaced by numbers 1, 2, ..., &lt;EM&gt;n&lt;/EM&gt; (&lt;EM&gt;n&lt;/EM&gt;=second argument of the macro) and the resulting model terms are concatenated with " + ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 10:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-specify-multiple-terms-in-the-macro-with-proc-nlmixed/m-p/754023#M80787</guid>
      <dc:creator>FreelanceReinhard</dc:creator>
      <dc:date>2021-07-14T10:09:43Z</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>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754009#M80785</link>
      <description>&lt;P&gt;Well done Tom, a text book example of not even begining to address the question. The thread is ancient because it hasn't been answered / resolved. Imagine this: my brake pedal stops working if I drive at 71mph with the windows down and the manufacturer suggests, a) the speed limit is 70mph and I shouldn't be driving at 71mph and b) consider driving with the windows up above 65.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this code frequently (and please don't lecture me why I shouldn't be breaking running code - its quite possible I've been using SAS for longer than you've been alive). Hint, this restores a log that has stopped updating,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;King Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*--------------------------------------*/&lt;BR /&gt;/*!!!Kill this code during the export!!!*/&lt;BR /&gt;/*--------------------------------------*/&lt;/P&gt;
&lt;P&gt;data temp;&lt;BR /&gt;do i=1 to 1000;&lt;BR /&gt;x=1;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc export data = temp outfile="c:\temp\temp.xls" replace;run;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 08:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/754009#M80785</guid>
      <dc:creator>bpowell</dc:creator>
      <dc:date>2021-07-14T08:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/753912#M80784</link>
      <description>&lt;P&gt;This is an ancient thread.&amp;nbsp; If you have a new question open a new thread. You can link back to this one if it helps explain your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said the main thing I see missing from this thread is no discussion of the impact of stopping a program in the middle that either turning of writing to the log by change options like NOTES or SOURCE or has redirected the log to another place using PROC PRINTTO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone on this thread mentioned that they run a lot of long running program interactively.&amp;nbsp; You should probably learn how to run those programs as regular or background jobs instead of using interactive SAS (or even the new pseudo interactive interfaces like SAS/Studio or Enterprise Guide).&amp;nbsp; Use the interactive tools to develop and test your code on smaller samples of the data.&amp;nbsp; Then save the program and run it from the command line of via some type of "batch submit" option.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 20:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/753912#M80784</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-13T20:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Log doesn't update after ctrl-break stopping</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/753897#M80783</link>
      <description>&lt;P&gt;I have noticed this issue as well. Unfortunately, hitting "!" occasionaly to stop the code is unavoidable when you are working with big data. This issue has persisted for almost 7 years now.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 19:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Log-doesn-t-update-after-ctrl-break-stopping/m-p/753897#M80783</guid>
      <dc:creator>Khan2</dc:creator>
      <dc:date>2021-07-13T19:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753857#M80782</link>
      <description>&lt;P&gt;There's no source other than what you have (likely) see already.&amp;nbsp; It's the documentation on what the UPDATE statement does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To keep the variables in the order of the first data set, here's a trick you can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   if 5=4 then set first;
   update second first (in=original_100k);
   by pat_id;
   if original_100k;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Since 5 will never equal 4, the SET statement never executes.&amp;nbsp; But its presence is enough to define all the variables in FIRST at that point in the code.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 18:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753857#M80782</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-13T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753797#M80780</link>
      <description>&lt;P&gt;What's your source for this? Does SAS have any references to using the update statement in this manner?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than this source:&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/5184-2020.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/5184-2020.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And how do I maintain the original column order from the first dataset?&lt;/P&gt;
&lt;P&gt;PAT_ID SEX AGE INCOME_BLOCK EDU_BLOCK UNEMPLOY_BLOCK HOMEOWNER_BLOCK&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PAT_ID INCOME_BLOCK EDU_BLOCK UNEMPLOY_BLOCK HOMEOWNER_BLOCK&amp;nbsp;SEX AGE&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 15:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753797#M80780</guid>
      <dc:creator>PharmlyDoc</dc:creator>
      <dc:date>2021-07-13T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753714#M80779</link>
      <description>&lt;P&gt;A small tweak to the program should take care of that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   update second first (in=original_100k);
   by pat_id;
   if original_100k;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jul 2021 08:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753714#M80779</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-13T08:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753653#M80778</link>
      <description>&lt;P&gt;Actually, I should have elaborated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In reality my second data set has 250,000 patients, whereas the first dataset has only 100,000.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The update statement in the data step that you mentioned gives me a table with 250,000 patients, when I only want the 100,000&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 03:01:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753653#M80778</guid>
      <dc:creator>PharmlyDoc</dc:creator>
      <dc:date>2021-07-13T03:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753638#M80777</link>
      <description>&lt;P&gt;Here's the easy way.&amp;nbsp; It assumes that both data sets are sorted, and that your data sets have just one observation per PAT_ID.&amp;nbsp; (Mismatches are OK.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   update second first;
   by pad_id;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For each PAT_ID, it takes data from your second data set, then replaces those values with any non-missing values from the first data set.&amp;nbsp; That's a little convoluted, but sounds like it's exactly what you need.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 23:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753638#M80777</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-12T23:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753622#M80776</link>
      <description>&lt;P&gt;What about if I have other variables in the first dataset that aren't in the second dataset (e.g. SEX, AGE, and a dozen more)&amp;nbsp; that I want to include in the want dataset?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 21:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753622#M80776</guid>
      <dc:creator>PharmlyDoc</dc:creator>
      <dc:date>2021-07-12T21:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753620#M80775</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alright, here is the code that I used to solved my question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
    CREATE TABLE WANT AS 
        SELECT coalesce(a.PAT_ID, b.PAT_ID) as PAT_ID, coalesce(a.INCOME_BLOCK,b.INCOME_BLOCK) AS INCOME_BLOCK,
coalesce(a.EDU_BLOCK,b.EDU_BLOCK) AS EDU_BLOCK,
coalesce(a.UNEMPLOY_BLOCK,b.UNEMPLOY_BLOCK) AS UNEMPLOY_BLOCK,
coalesce(a.HOMEOWNER_BLOCK,b.HOMEOWNER_BLOCK) AS HOMEOWNER_BLOCK
            FROM first a LEFT JOIN second b
                ON a.PAT_ID = b.PAT_ID;
QUIT;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I'm having trouble doing the same as above but with additional variables in the first dataset such as sex and age.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data third; 
input PAT_ID : best2. SEX :$6. AGE : best2. INCOME_BLOCK : best6. EDU_BLOCK : best4. UNEMPLOY_BLOCK : best4. HOMEOWNER_BLOCK : best4. ;
datalines;
1 Female  22 45810 93.82 13.07 9.32
2 Male   37  35264 54.94 27.81 4.76
3 Male 27     .     .     .    . 
4 Male 37     .     .     .    .
5 Female 27 42346  18.62 1.87 1.29
6 Male   28 42346  41.11 4.76 10.29
7 Female  23 250001 41.11 3.02 1.29
8 Female  21 115290 93.82 27.81 1.87
9 Female  43 215493 21.65 10.29 3.60
10 Male	 35     .     .     .    .
11 Male	 30 215493 15.61 27.81 3.02
12 Male	 21 77521  18.62 7.17  9.32
13 Male	 21 215493 54.94 5.95  27.81
14 Male	 28     .     .     .    .
15 Male	 34 115290 34.35 1.29  9.32
16 Male	 38 30872  34.35 10.29 7.17
17 Female  36 105039 15.61 4.76 13.07
18 Female 23    .     .     .    .
19 Female 34 38964 9.55	 4.76  2.45
20 Female 26 38964 54.94 10.29 10.29
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 21:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753620#M80775</guid>
      <dc:creator>PharmlyDoc</dc:creator>
      <dc:date>2021-07-12T21:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: 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/753615#M80774</link>
      <description>&lt;P&gt;Assuming you don't have duplicate PAT_IDs in your SECOND dataset, this works, using a&amp;nbsp;LEFT JOIN and COALESCE():&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table want as
    select f.pat_id
          ,coalesce(f.income_block, s.income_block) as income_block
          ,coalesce(f.edu_block, s.edu_block) as edu_block
          ,coalesce(f.unemploy_block, s.unemploy_block) as unemploy_block
          ,coalesce(f.homeowner_block, s.homeowner_block) as homeowner_block
    from first f
    left join second s
        on f.pat_id = s.pat_id;
quit;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 20:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Lookup-table-and-fill-in-missing-values-ACS-data/m-p/753615#M80774</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2021-07-12T20:49:10Z</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>Re: 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/752697#M80758</link>
      <description>When importing from Excel, it reads the value of the cell, not the formulas of the cell. &lt;BR /&gt;I'm not aware of any method to retrieving the formulas beyond parsing the XML file which is very cumbersome.</description>
      <pubDate>Wed, 07 Jul 2021 20:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Excel-hyperlink-to-a-SAS-data-set/m-p/752697#M80758</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-07T20:24:18Z</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>Re: Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report/m-p/752611#M80756</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PROC REPORT has a BREAK statement and an RBREAK statement. You can have the Break line (or summary line) added AFTER a group or order item or BEFORE a group or order item. Without data, no one can test or modify your code. However in a quick look, it seems to me that you need this statement to start:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;BREAK BEFORE DM / SUMMARIZE;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;RBREAK BEFORE/ SUMMARIZE;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;BREAK AFTER DM / SUMMARIZE;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;RBREAK AFTER/ SUMMARIZE;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Although I'm not sure how you want your Conversion Rate percentage treated in the sub-totals or totals. You can find examples of BREAK and RBREAK in previous forum postings and in the PROC REPORT documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 16:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report/m-p/752611#M80756</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-07-07T16:44:12Z</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;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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;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;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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>Re: 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/752594#M80754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-USER uid="376676"&gt;&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was testing SAS numeric limit for percentage calculation.&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;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Depends on what you want to see. Consider one format:&lt;/P&gt;
&lt;PRE&gt;data example;
   x=1/3;
   put x=best3.;
   put x=best4.;
   put x=best5.;
   put x=best6.;
   put x=best7.;
   put x=best8.;
   put x=best9.;
   put x=best10.;
   put x=best11.;
   put x=best12.;
   put x=best13.;
   put x=best14.;
   put x=best15.;
   put x=best16.;
   put x=best17.;
   put x=best18.;
   put x=best19.;
   put x=best20.;
run;
&lt;/PRE&gt;
&lt;P&gt;Look in the Log if you aren't familiar with the Put function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pick a format, or make one of your own, that displays things the way you want.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-would-be-the-numeric-limit-for-percentage-in-SAS/m-p/752594#M80754</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-07T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: 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/752468#M80753</link>
      <description>Thank you!! This worked, much appreciation</description>
      <pubDate>Tue, 06 Jul 2021 23:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-if-and-delete-statement-to-delete-sex-dependent/m-p/752468#M80753</guid>
      <dc:creator>ayosas</dc:creator>
      <dc:date>2021-07-06T23:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: 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/752465#M80752</link>
      <description>You're only deleting records where BOTH are missing, you want to delete records where either are missing and use OR instead of AND.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if IMQ070=. or IMQ060=. then delete;&lt;BR /&gt;&lt;BR /&gt;However, since you can only be one, I don't think that's what you want either as that will delete all record essentially since the other one will always be the opposite. &lt;BR /&gt;&lt;BR /&gt;I would suggest creating a new variable HPV vaccine:&lt;BR /&gt;&lt;BR /&gt;HPV_Vaxx = coalesce(IMQ070, IMQ060);&lt;BR /&gt;if missing(IMQ070) then gender=0; else gender=1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jul 2021 23:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-if-and-delete-statement-to-delete-sex-dependent/m-p/752465#M80752</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-06T23:44:29Z</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>Re: 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/751941#M80749</link>
      <description>&lt;P&gt;Not sure what your question is.&amp;nbsp; SAS stores all numbers of 64 bit floating point binary.&amp;nbsp; You can have up to about 15 decimal digits of precision with such numbers.&amp;nbsp; Are you asking how many characters they should use when transferring the data as text string?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-would-be-the-numeric-limit-for-percentage-in-SAS/m-p/751941#M80749</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-04T03:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751937#M80748</link>
      <description>&lt;P&gt;SAS uses 8 Bytes to store numbers. This allows to store 15 digits with full precision (and up to a point also numbers with 16 digits).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Formats only affect how numbers get printed. SAS will use the internally stored value for any calculation (=full precision).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at below. May-be that's going to explain to you that the problem you're raising doesn't really exist.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
  do var1=0.105, 1/3, 0.5, 1.6, 1;
    var2=var1;
    var3=var1;
    var4=var1;
    output;
  end;
  format var2 best32. var3 percent16. var4 percent16.2;
  stop;
run;

proc print data=demo;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1625370060034.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60934i6971275E1C97D2B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1625370060034.png" alt="Patrick_0-1625370060034.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:44:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-would-be-the-numeric-limit-for-percentage-in-SAS/m-p/751937#M80748</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-07-04T03:44:18Z</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>Re: Reporting summarised data with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751846#M80746</link>
      <description>&lt;P&gt;The only way is to pre-summarise and then set the values in a data step using the logic you describe.&lt;/P&gt;
&lt;P&gt;Then you display them as you do now.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 02:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751846#M80746</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-03T02:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting summarised data with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751637#M80745</link>
      <description>&lt;P&gt;One way to summarise: If the variance is positive, show missing, if the variance is zero, show the mean (or the first, last - all the same).&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 07:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751637#M80745</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2021-07-02T07:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting summarised data with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751634#M80744</link>
      <description>&lt;P&gt;what would the cell display?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 07:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751634#M80744</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-02T07:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting summarised data with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751632#M80743</link>
      <description>&lt;P&gt;Doesn't always work for data structure I'm using. Eg often I will have a table where some cells are constants (and I'd like to double-check this) while others are variable and I want to calculate the mean. It would be neat if I could write a cell function for this.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 07:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751632#M80743</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2021-07-02T07:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting summarised data with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751625#M80741</link>
      <description>&lt;P&gt;Your constraints are unclear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you run proc tabulate twice? Once with statistics N and option OUT=, to check the underlying data, and then for the report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report is typically more flexible than proc tabulate, not less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 06:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/751625#M80741</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-02T06:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751441#M80740</link>
      <description>&lt;P&gt;&lt;LI-USER uid="159"&gt;&lt;/LI-USER&gt;&amp;nbsp;Spot on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to delete the excel and create a dummy excel. Using the script provided by&amp;nbsp;&lt;LI-USER uid="10892"&gt;&lt;/LI-USER&gt;&amp;nbsp;worked like a charm with the new excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;LI-USER uid="159"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;LI-USER uid="10892"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;LI-USER uid="12447"&gt;&lt;/LI-USER&gt;&amp;nbsp;for the help. Appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751441#M80740</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-07-01T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751440#M80739</link>
      <description>&lt;P&gt;Most likely the path you have for the filename does not exists.&amp;nbsp; SAS does not know that you intend to READ from that new XL libref. You might be intending to create a new XLSX file so that you can WRITE to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure the file exists.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  filename = "D:\SASexcel.xlsx"; 
  if fileexist(filename) then put filename=:$quote. 'exists.';
  else put filename=:$quote. 'does NOT exist.';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751440#M80739</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-01T12:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751439#M80738</link>
      <description>&lt;P&gt;Does the file&amp;nbsp;D:\SASexcel.xlsx actually exist? The message you are getting is the same message I get when I use a LIBNAME that points to an Excel file that doesn't exist.&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 Jul 2021 12:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751439#M80738</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-01T12:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751437#M80737</link>
      <description>&lt;P&gt;&lt;LI-USER uid="10892"&gt;&lt;/LI-USER&gt;&amp;nbsp;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         libname xl XLSX "D:\SASexcel.xlsx"; 
NOTE: Libref XL was successfully assigned as follows: 
      Engine:        XLSX 
      Physical Name: D:\SASexcel.xlsx
29         
30         options validvarname=V7;


31         proc copy in=xl out=work memtype=data;
32         run;

WARNING: Input library XL is empty.&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;My script as below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xl XLSX "D:\SASexcel.xlsx"; 

options validvarname=V7;
proc copy in=xl out=work memtype=data;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think SAS couldn't read my excel sheets/tabs. Not sure what caused that. Did you see anything wrong with my script?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751437#M80737</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-07-01T12:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751429#M80736</link>
      <description>&lt;P&gt;Here is my modification that works for me, and also allows sheet names and variable names to have special characters or blanks.&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;libname xl XLSX "D:\Excel.xlsx";

options validvarname=v7;

proc copy in=xl out=work memtype=data;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, may I make a request&amp;nbsp;&lt;LI-USER uid="376676"&gt;&lt;/LI-USER&gt;&amp;nbsp;? From now on please paste the actual code (or better yet, paste the log so we can see the code and the ERRORs, WARNINGs and NOTEs) into your message. The code you showed cannot possibly work, because your LIBNAME statement is wrong, and is missing a double quote after the .xlsx, and that could be the cause of the error you are seeing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 11:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751429#M80736</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-01T11:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751426#M80735</link>
      <description>&lt;P&gt;here is my code:&lt;/P&gt;&lt;PRE&gt;libname xl XLSX "D:\Excel.xlsx;


proc contents data=xl._ALL_;

RUN;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a warning&lt;/P&gt;&lt;PRE&gt;"no matching members in directory".&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the sample in the tutorial shows 3 members which I believe is the sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is this happening? My excel has 3 sheets as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 11:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751426#M80735</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-07-01T11:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751424#M80734</link>
      <description>&lt;P&gt;&lt;LI-USER uid="12447"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I dont see how this tutorial show us how SAS dynamically read all excel sheets/tabs automatically. I understand that I can use libname XLSX engine to read excel.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have an excel workbook that contains 5 sheets/tabs. I don't want to hardcode the sheets/tabs in any part of the SAS script. What I want is to automatically load in all excel sheets as tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have 5 sheets, I want to create 5 datasets, all without hardcode the actual name of the excel sheets.&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 10:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751424#M80734</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-07-01T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: 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/751421#M80733</link>
      <description>&lt;P&gt;A libname using the xlsx engine will allow you to access the sheets directly like SAS tables under a single libref. Example &lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/" target="_self"&gt;here&lt;/A&gt; in one of Chris Hemedinger's fantastic blogs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You then can just use a proc datasets/copy to copy all these Excel sheets to another libref which uses the SAS engine - and they will "magically" become SAS tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how you intend to deal with such "random" tables - is it only the names or will also the table structures differ - but you don't provide the information to make any further statements.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 10:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-load-excel-with-multiple-sheets-dynamically-into-SAS/m-p/751421#M80733</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-07-01T10:21:03Z</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>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751365#M80731</link>
      <description>&lt;P&gt;Great, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 21:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751365#M80731</guid>
      <dc:creator>kristenl</dc:creator>
      <dc:date>2021-06-30T21:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751364#M80730</link>
      <description>&lt;P&gt;It seems to me that SPSS syntax for specifying what variable to use for weighting is very similar to the SAS syntax.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://libguides.library.kent.edu/SPSS/WeightCases" target="_blank" rel="noopener"&gt;https://libguides.library.kent.edu/SPSS/WeightCases&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_freq_syntax13.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_freq_syntax13.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 20:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751364#M80730</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-30T20:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751356#M80729</link>
      <description>Thanks very much Reeza, this makes sense.</description>
      <pubDate>Wed, 30 Jun 2021 19:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751356#M80729</guid>
      <dc:creator>kristenl</dc:creator>
      <dc:date>2021-06-30T19:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751355#M80728</link>
      <description>Yes, that's correct - SPSS file had 158,000, whereas SAS had 7590.&lt;BR /&gt;However, Reeza is suggesting that weighted data in SPSS is not altered, which makes sense considering the small sample in SAS.</description>
      <pubDate>Wed, 30 Jun 2021 19:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751355#M80728</guid>
      <dc:creator>kristenl</dc:creator>
      <dc:date>2021-06-30T19:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751354#M80727</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-USER uid="387893"&gt;&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks so much for your reply. My (edited) SAS syntax is below. In the SPSS file, I have applied weights. The weighted sample is 158,000; however, after importing it into SAS, I only have the original (non-weighted) sample of 7590.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean that the SPSS file had 158000 records, while the SAS file has 7590 records? What does "weighted sample" mean with respect to a data set? If there is a weight variable, what happens if you add up all the weights?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 19:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751354#M80727</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-30T19:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751352#M80726</link>
      <description>&lt;P&gt;Weighted data typically just means you have a column(s) of weights for your data. It doesn't affect the number of observations. Any proc using the data will have a WEIGHT statement where you provide the weight variable and then the analysis will factor in the weights.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not change your input data or data structure in any fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-USER uid="387893"&gt;&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&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;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 19:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751352#M80726</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-30T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751351#M80725</link>
      <description>&lt;P&gt;Thanks so much for your reply. My (edited) SAS syntax is below. In the SPSS file, I have applied weights. The weighted sample is 158,000; however, after importing it into SAS, I only have the original (non-weighted) sample of 7590.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT=OIS.finalweighted&lt;BR /&gt;DATAFILE="C:\Users\...NEW_weighted.sav"&lt;BR /&gt;DBMS=SPSS REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 19:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751351#M80725</guid>
      <dc:creator>kristenl</dc:creator>
      <dc:date>2021-06-30T19:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing SPSS weighted data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751350#M80724</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The file imports, however, the weighted data does not import properly and the original sample size remains.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;As far as I know, the data should not change when importing from SPSS to SAS, so I don't know what the above means. Can you explain this further? Can you give a small example?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, how are you doing this "import"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 19:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-SPSS-weighted-data/m-p/751350#M80724</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-30T19:28:35Z</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>Re: Reporting summarised data with Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/750755#M80721</link>
      <description>&lt;P&gt;Bumping this. It's 7 years later and I would still like to be able to do this! Any progress on using custom functions in proc tabulate?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 08:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reporting-summarised-data-with-Proc-Tabulate/m-p/750755#M80721</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2021-06-28T08:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join datasets by group in sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Join-datasets-by-group-in-sql/m-p/750702#M80720</link>
      <description>&lt;P&gt;&lt;EM&gt;I&amp;nbsp; suggest you stick with data step merge (in comparison to proc SQL).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The already have a&amp;nbsp; code that&amp;nbsp; needs some modifications as follows and you will be nearing your goal.&lt;BR /&gt;&lt;/EM&gt;As suggested by&amp;nbsp;@&lt;A class="trigger-hovercard" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884" target="_blank"&gt;ballardw &lt;/A&gt;&amp;nbsp;make corrections to the sort syntax.&lt;/P&gt;
&lt;P&gt;In addition rename the common variables (other than by variables) in one of the datasets.&lt;/P&gt;
&lt;P&gt;You may have to do home post processing to the merged dataset to get exactly what you want,&lt;/P&gt;
&lt;P&gt;but you can easily achieve your objective of purging the rows of dataset2 from dataset1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 17:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Join-datasets-by-group-in-sql/m-p/750702#M80720</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-27T17:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average Square Error way to high ??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Average-Square-Error-way-to-high/m-p/750701#M80719</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I faced an issue of skewness with my continuous variables ...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you talking about skewness of the target (or response) variable? Or skewness of the predictor variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;... for which I firstly transformed into log but it didn't work&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What didn't work? What did you see that makes you think it didn't work? What variable(s) did you transform?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;but I got validation average square error as 116 so I am confused how to interpret such huge error&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you transform the target variable? You really haven't said if you did or did not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What makes you think that a 116 is "huge"? What are typical values of sales? Maybe the interpretation is that the model didn't fit well; or maybe the interpretation is that you have very large values of sales and a 116 is reasonable. We need a lot more information and context here.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 18:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Average-Square-Error-way-to-high/m-p/750701#M80719</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-27T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR WEB SERVICES</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-WEB-SERVICES/m-p/750696#M80718</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;The error message is clear, your application is not able to parse (understand) the response.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;com.sas.analytics.ph.RTDMException: Error parsing webservice response from&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Try sending a request from curl ( or any other client) and see the output.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 17:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-WEB-SERVICES/m-p/750696#M80718</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-27T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Average Square Error way to high ??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Average-Square-Error-way-to-high/m-p/750691#M80717</link>
      <description>&lt;P&gt;You have squared your continuous variable. That may be the cause.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 17:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Average-Square-Error-way-to-high/m-p/750691#M80717</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-27T17:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: 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/750518#M80716</link>
      <description>No - run the code. It generates the query below, which is also run and the results are displayed.&lt;BR /&gt;&lt;BR /&gt;select * from sashelp.class where name in (&amp;lt;list of names of those who are 14&amp;gt;);&lt;BR /&gt;&lt;BR /&gt;If both are in the same system though you can just do the following - no need for formats or macro variables.&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table want as &lt;BR /&gt;select * from tableA where name in (select name from TableB);&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;So no need to generate a macro list or format or any code.</description>
      <pubDate>Fri, 25 Jun 2021 18:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750518#M80716</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-25T18:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: 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/750516#M80715</link>
      <description>&lt;P&gt;I suspect a different approach such as a format might be more flexible.&lt;/P&gt;
&lt;P&gt;Skeleton program example.&lt;/P&gt;
&lt;PRE&gt;/* IF this set actually only contains valid values
   you would need a separate Fmtname value for each specific list
   of valid values. The C is for character variables, use N for numeric
*/
proc sql ;
   Create table validcntlin as
   select distinct (value) as start, "validvalue" as fmtname, label='Valid', type='C'
   from myfile;
quit;

proc format cntlin=validcntlin;
run;

data want;
   set have;
   where put(variablename,validvalue.) ne 'Valid';
run;&lt;/PRE&gt;
&lt;P&gt;Advantage: once you have the cntlin data set created you don't need to pull values from the source again like you would with macro variables. Once the format is created if stored in library in the format search path you don't need to do anything until you have to update the format definition because of new data. If you need to add a new format for new variables you only need to create the data/code for that one format as the format catalog can hold many formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If multiple variables share the same range of valid values then&amp;nbsp; you only need one format to test.&lt;/P&gt;
&lt;P&gt;If variables are numeric and continuous it would likely be easier to write range statements in proc format, especially if you have a few code values .&lt;/P&gt;
&lt;PRE&gt;Proc format;
value somefmtname
1 - 3000='Valid'
9999='Valid'
;
run;&lt;/PRE&gt;
&lt;P&gt;For an example that only reports numbers in the range of 1 to 3000 (including decimal portions) and the code 9999 as 'Valid'.&lt;/P&gt;
&lt;P&gt;This particular approach would have a formatted value of the numeric value as a BEST for anything except those in the ranges. OR use an othere= 'Invalid' and test for 'Invalid' as the formatted value. It is possible to code an Other into a Cntlin data set but would need more coding to add to the cntlin created in SQL to append a record with the variable, HLO and the value needed to set that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I've never used a discrete format with more than about 2,000 values but I don't see a problem. And the use is dead easy and possible in lots of places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously that dummy Want set should be restricted to only include identification variables and the invalid value variable(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually use a few formats like this when I read data sets because I have data sources that slip in new things like site identifiers.&lt;/P&gt;
&lt;P&gt;So I have in my data step that reads the data lines of code like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If put (siteid, validsitefmt.) ne 'Valid' then put "WARNING: Invalid site id of " siteid +1 "for " idvariable= _n_= ;&lt;/P&gt;
&lt;P&gt;Then my log shows information about the problems before the data gets processed any further and I can 1) validate whether that value should be there from the sources and take appropriate action. Sometimes it is a simple spelling error, sometimes in means a new site and I update the metadata about the sites and the validation format (append a record if the Cntlin is a data set, or add line of code to Proc Format statements) and rerun the proc format to update. Then reread the file.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 18:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750516#M80715</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-25T18:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: 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/750515#M80714</link>
      <description>&lt;P&gt;So this example creates a test dataset which consists of each valid value listed out separated by commas?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750515#M80714</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2021-06-25T17:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: 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/750512#M80713</link>
      <description>&lt;P&gt;Will a subquery work instead?&lt;/P&gt;
&lt;P&gt;Otherwise a data step that generates the full code dynamically does not have that limit, ie CALL EXECUTE()/DOSUBL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let age = 14;

data test;
set sashelp.class end = eof;;
where age = &amp;amp;age.;

if _n_ =1 then do;
	call execute('proc sql; select * from sashelp.class where name in (');
end;

if not eof then do;
call execute(quote(name));
call execute(",");
end;

if eof then do;
call execute(quote(name));
call execute("); quit;");
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-USER uid="37814"&gt;&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&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;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750512#M80713</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-25T17:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: 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/750511#M80712</link>
      <description>&lt;P&gt;If macro variables can't contain the desired information because it exceeds the maximum length of a macro variable, another solution is CALL EXECUTE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But either with macros or CALL EXECUTE, how do you indicate to the program which values are valid and which are invalid?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-macro-vars-using-PROC-SQL-select-into/m-p/750511#M80712</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-25T17:27:45Z</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>Re: SAS Access to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750341#M80710</link>
      <description>&lt;P&gt;Great, its the same thing. Please mark your post as answered then.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 21:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750341#M80710</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-06-24T21:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750338#M80709</link>
      <description>&lt;P&gt;Yes, that was the advice of Tech support and it works.&amp;nbsp; I used PROC APPEND rather than PROC DATASETS but that shouldn't matter.&lt;/P&gt;&lt;P&gt;Thank you for the advice!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 21:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750338#M80709</guid>
      <dc:creator>garyhaas</dc:creator>
      <dc:date>2021-06-24T21:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750334#M80708</link>
      <description>&lt;P&gt;Just to clarify, are you just appending rows here? If so I suggest you try PROC DATASETS with the APPEND statement where the BASE table is pre-defined table and the APPEND table is your SAS table.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 21:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750334#M80708</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-06-24T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750247#M80707</link>
      <description>&lt;P&gt;Need to pre-define table with Create table statement, not delete it before load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;219 data mydblib.zipterr_rbu_&amp;amp;qtr&lt;BR /&gt;220 (bulkload=yes&lt;BR /&gt;221 bl_internal_stage="user/someuser"&lt;BR /&gt;222 BL_COMPRESS=yes);&lt;BR /&gt;223 set idata.rbu_&amp;amp;terr._zip&lt;BR /&gt;224 ;&lt;/P&gt;&lt;P&gt;SNOWFLAKE: AUTOCOMMIT turned ON for connection id 1&lt;BR /&gt;&lt;BR /&gt;SNOWFLAKE_1: Prepared: on connection 1&lt;BR /&gt;SELECT * FROM "CDW_US_ASB_GBA_DB"."zipterr_rbu_Q221b" WHERE 0=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DBMS_TIMER: summary statistics&lt;BR /&gt;DBMS_TIMER: total SQL prepare seconds were: 0&lt;BR /&gt;DBMS_TIMER: dbiopen/dbiclose timespan was 0.&lt;BR /&gt;ERROR: The SNOWFLAKE table zipterr_rbu_Q221b has been opened for OUTPUT. This table already exists, or there is a name&lt;BR /&gt;conflict with an existing object. This table will not be replaced. This engine does not support the REPLACE&lt;BR /&gt;option.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode.&lt;BR /&gt;This prevents execution of subsequent data modification statements.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 2.62 seconds&lt;BR /&gt;cpu time 0.75 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 16:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/750247#M80707</guid>
      <dc:creator>garyhaas</dc:creator>
      <dc:date>2021-06-24T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/749755#M80706</link>
      <description>&lt;P&gt;Can you please post the SAS log including code and notes?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 23:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Access-to-Snowflake/m-p/749755#M80706</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-06-22T23:39:13Z</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>Re: Diference Date (MONTH) by ID</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749699#M80704</link>
      <description>&lt;P&gt;Nice, Thanks you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 20:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749699#M80704</guid>
      <dc:creator>Andres_Fuentes1</dc:creator>
      <dc:date>2021-06-22T20:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Diference Date (MONTH) by ID</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749685#M80703</link>
      <description>Please try this:&lt;BR /&gt;proc sort data=your_data; by ID date;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data results;&lt;BR /&gt;set your_data;&lt;BR /&gt;by ID date;;&lt;BR /&gt;retain pre_Date .;&lt;BR /&gt;if first.ID then do;&lt;BR /&gt;n_month=.;&lt;BR /&gt;pre_Date=date;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;n_month=intck('month', pre_Date, date, 'C');&lt;BR /&gt;pre_Date=date;&lt;BR /&gt;end;&lt;BR /&gt;drop pre_Date;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749685#M80703</guid>
      <dc:creator>Jerrya00</dc:creator>
      <dc:date>2021-06-22T19:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Diference Date (MONTH) by ID</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749656#M80702</link>
      <description>&lt;P&gt;That's Excel, not SAS data shown. In the future please show the SAS version. &lt;STRONG&gt;I'm assuming you have your data imported and that your date are SAS dates&lt;/STRONG&gt;, eg numeric with a date format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
by ID;
run;

data want;
set have;

by ID;

prev_date = lag(date);

if not first.id then n_month = intck('month', date, prev_date, 'C');

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may need to play with the INTCK() function to get the exact numbers you want but this gives you an idea of how to do it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-USER uid="386950"&gt;&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&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;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749656#M80702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-22T17:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Diference Date (MONTH) by ID</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749652#M80701</link>
      <description>&lt;P&gt;And so what is the desired result? Do you want 9 for ID = 1 and 12 for ID = 2 and 12 for ID=3?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your date variable a character variable in SAS or a numeric variable in SAS? What does PROC CONTENTS say?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI, please do not provide data as screen captures from Excel. The preferred method to provide data is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diference-Date-MONTH-by-ID/m-p/749652#M80701</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-22T18:05:30Z</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>Re: 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/749093#M80698</link>
      <description>&lt;P&gt;Assuming there were no tie for DATE .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile datalines truncover;
  input Location $ Date:mmddyy10. N T;
  format date date9.;
  datalines;
A 06/19/2020 3 2
A 06/29/2020 5 3
A 06/30/2020 1 1
A 7/01/2020 4 3
A 7/05/2020 7 1
A 07/15/2020 2 0
A 07/19/2020 3 1
A 07/21/2020 0 0
A 07/22/2020 0 0
A 08/01/2020 0 0
A 08/05/2020 0 0
A 08/15/2020 0 0
B 5/12/2020 4 4
B 05/24/2020 1 0
B 05/27/2020 3 2
;

data want;
 if _n_=1 then do;
  if 0 then set have;
  declare hash h();
  h.definekey('date');
  h.definedata('N','T');
  h.definedone();
 end;
set have;
by Location;
if first.Location then h.clear();
h.add();
sum_n=0;sum_t=0;
do i=date-1 to intnx('month',date,-1,'s') by -1;
  if h.find(key:i)=0 then do;sum_n+n;sum_t+t;end;
end;
want=divide(sum_t,sum_n);
drop i sum_: ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Jun 2021 11:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Defining-a-variable-within-a-date-interval/m-p/749093#M80698</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-06-20T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: 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/749084#M80697</link>
      <description>&lt;P&gt;A PROC SUMMARY solution (because PROC SUMMARY is my favorite PROC &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; ) with a MULTILABEL format. I didn't do the division at the end, but you can add that in yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have0;
infile cards delimiter='|' truncover;
input Location $ Date :mmddyy10. Nbr_warnings_N Nbr_correct_warnings_T;
cards;
A|06/19/2020|3|2
A|06/29/2020|5|3
A|06/30/2020|1|1
A|07/01/2020|4|3
A|07/05/2020|7|1
A|07/15/2020|2|0
A|07/19/2020|3|1
B|05/12/2020|4|4
B|05/24/2020|1|0
B|05/27/2020|3|2
;
data _null_;
    set have0 end=eof;
    if _n_=1 then call execute('proc format; value df (multilabel)');
    call execute(cats(date-31,'-',date-1,'=',date));
    if eof then call execute ('; run;');
run;
proc summary data=have0 nway;
    class location;
    class date / mlf;
    var nbr_warnings_n nbr_correct_warnings_t;
    output out=_sums_ sum=/autoname;
    format date df.;
run;
data _sums1_;
    set _sums_;
    ndate=input(left(date),7.);
    format ndate mmddyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Jun 2021 11:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Defining-a-variable-within-a-date-interval/m-p/749084#M80697</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-20T11:45:49Z</dc:date>
    </item>
  </channel>
</rss>

