<?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>topic Re: Process to handle multiple quotes in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192522#M48342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the table test and use a SQL query instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as &lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from data1 where &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;ye_borr_id_no&lt;/SPAN&gt; in (select&amp;nbsp; id_no from test);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2014 18:16:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-12-02T18:16:27Z</dc:date>
    <item>
      <title>Process to handle multiple quotes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192520#M48340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; test (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;keep&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=ln_no BO_BORR_FST_NM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BO_BORR_LAST_NM BO_BORR_MDL_NM BO_BORR_NM YE_BORR_ID_NO);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;set&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: teal;"&gt;data1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; ye_borr_id_no in (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'9897'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'4231'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'6240'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'3708'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'9517'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;);&lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;Is there an alternative process to include all of the numbers in quotes without having to physically place quotes between all values.&amp;nbsp; For example '9897'.&amp;nbsp; I have about 900 of these to place after the ye_borr_id_no.&amp;nbsp; I know I can do a table using cards like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;data test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;input id_no $4.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;cards:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;9897&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;etc........;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;I just need to perhaps incorporate this into the datastep.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192520#M48340</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-12-02T17:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Process to handle multiple quotes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192521#M48341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use quote function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192521#M48341</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2014-12-02T17:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Process to handle multiple quotes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192522#M48342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the table test and use a SQL query instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as &lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from data1 where &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;ye_borr_id_no&lt;/SPAN&gt; in (select&amp;nbsp; id_no from test);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192522#M48342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-02T18:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Process to handle multiple quotes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192523#M48343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 900 you are better off using a data set and using SQL or MERGE to do the sub setting.&lt;/P&gt;&lt;P&gt;But if you want to generated quoted list from space delimited list than TRANWRD can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;%let list=9897 4231 6240 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;%let qlist="%sysfunc(tranwrd(&amp;amp;list,%str( )," "))";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;%put &amp;amp;qlist;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192523#M48343</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-12-02T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Process to handle multiple quotes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192524#M48344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And yet another way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=work;&lt;BR /&gt;value $mylist&lt;BR /&gt; 9897, &lt;BR /&gt; 4231, &lt;BR /&gt; 6240, &lt;BR /&gt; 3708&amp;nbsp;&amp;nbsp; = 'Valid'&lt;BR /&gt; ;&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt; data _null_;&lt;BR /&gt; do x= '9897','5555';&lt;BR /&gt; if put(x,$mylist.)='Valid' then put 'In list';&lt;BR /&gt; else put 'not in list';&lt;BR /&gt; end;&lt;BR /&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 20:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Process-to-handle-multiple-quotes/m-p/192524#M48344</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-02T20:54:19Z</dc:date>
    </item>
  </channel>
</rss>

