<?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: Double quotes around numeric variables?? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17420#M3300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you thinking of something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6617&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6618&amp;nbsp;&amp;nbsp;&amp;nbsp; file log dsd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6619&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6620&amp;nbsp;&amp;nbsp;&amp;nbsp; put (_all_)(~);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6621&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Alfred","M","14","69","112.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Alice","F","13","56.5","84"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Barbara","F","13","65.3","98"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Carol","F","14","62.8","102.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Henry","M","14","63.5","102.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"James","M","12","57.3","83"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Jane","F","12","59.8","84.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 17:14:40 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2011-06-20T17:14:40Z</dc:date>
    <item>
      <title>Double quotes around numeric variables??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17419#M3299</link>
      <description>Need to add double quotes around certain formatted numeric variables for a comma delimited file. Is there an easy way to accomplish without converting numeric variables to character?</description>
      <pubDate>Mon, 20 Jun 2011 14:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17419#M3299</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2011-06-20T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Double quotes around numeric variables??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17420#M3300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you thinking of something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6617&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6618&amp;nbsp;&amp;nbsp;&amp;nbsp; file log dsd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6619&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6620&amp;nbsp;&amp;nbsp;&amp;nbsp; put (_all_)(~);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;6621&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Alfred","M","14","69","112.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Alice","F","13","56.5","84"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Barbara","F","13","65.3","98"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Carol","F","14","62.8","102.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Henry","M","14","63.5","102.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"James","M","12","57.3","83"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Jane","F","12","59.8","84.5"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 17:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17420#M3300</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-06-20T17:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Double quotes around numeric variables??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17421#M3301</link>
      <description>Sorry, no.&lt;BR /&gt;
I need to double quote specific numeric fields before I plug them into a csv file. It won't be all the fields.&lt;BR /&gt;
&lt;BR /&gt;
Example:&lt;BR /&gt;
SMF30ZIP,20110620,3,Acct_Code,"997KCE999999",Acct_Code2,"KCUN",Acct_Code3,"3",Shift,"1",JESNR,"JOB07760",,,,,,</description>
      <pubDate>Mon, 20 Jun 2011 17:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17421#M3301</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2011-06-20T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Double quotes around numeric variables??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17422#M3302</link>
      <description>Perhaps,&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
6627  data _null_;&lt;BR /&gt;
6628     file log dsd;&lt;BR /&gt;
6629     set sashelp.class;&lt;BR /&gt;
6630     put name age ~ sex height weight ~;&lt;BR /&gt;
6631     run;&lt;BR /&gt;
&lt;BR /&gt;
Alfred,"14",M,69,"112.5"&lt;BR /&gt;
Alice,"13",F,56.5,"84"&lt;BR /&gt;
Barbara,"13",F,65.3,"98"&lt;BR /&gt;
Carol,"14",F,62.8,"102.5"&lt;BR /&gt;
Henry,"14",M,63.5,"102.5"&lt;BR /&gt;
James,"12",M,57.3,"83"&lt;BR /&gt;
Jane,"12",F,59.8,"84.5"&lt;BR /&gt;
Janet,"15",F,62.5,"112.5"&lt;BR /&gt;
Jeffrey,"13",M,62.5,"84"&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 20 Jun 2011 18:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17422#M3302</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-06-20T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Double quotes around numeric variables??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17423#M3303</link>
      <description>Once again, you prove yourself a pro....&lt;BR /&gt;
Works perfectly. I ran across another posting where you had the (_all_) statement in it, but I didn't realize what exactly the ~ character was accomplishing. Now I know!&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
G.I. Jeff</description>
      <pubDate>Mon, 20 Jun 2011 18:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17423#M3303</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2011-06-20T18:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Double quotes around numeric variables??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17424#M3304</link>
      <description>Relevant Tech Support notes on using the tilde format modifier:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/8/082.html" target="_blank"&gt;http://support.sas.com/kb/8/082.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/4/765.html" target="_blank"&gt;http://support.sas.com/kb/4/765.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 20 Jun 2011 21:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Double-quotes-around-numeric-variables/m-p/17424#M3304</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-20T21:01:16Z</dc:date>
    </item>
  </channel>
</rss>

