<?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: Ouput txt file without quotation marks and maintain numeric values in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125449#M1600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other mentioned issue with numerics is known as precision. Apply a correct format and rounding is included. &lt;A href="https://support.sas.com/techsup/technote/ts654.pdf" title="https://support.sas.com/techsup/technote/ts654.pdf"&gt;https://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 12:57:24 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-09-12T12:57:24Z</dc:date>
    <item>
      <title>Ouput txt file without quotation marks and maintain numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125445#M1596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a file writer transformation in DI studio 4.4 to write a dataset to a text file.&amp;nbsp; I am faced with two problems, firstly every fiels is enclosed in quotation marks.&amp;nbsp; I believe this is because within some of the field I have non alphanumeric characters like "-".&amp;nbsp; The second issue I have is that there is a field with numeric characters.&amp;nbsp; They look fine in the dataset but when exported they are exported as 2.99e6 (or something similar) this ends up being 290000.&amp;nbsp; Most importantly how can I maintain the number in the field? secondly how can I export without quotation marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to export without quotation marks by editing the code to remove all references to "quote" (see below) although I would rather use a standard transformation if possibkle than modify one, VAR 5 is the numeric field.&amp;nbsp; I have highlighted the fields I remove/ modify to get output without quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let SYSLAST = work.W4VOE3O;&lt;/P&gt;&lt;P&gt;data _null_; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; set &amp;amp;SYSLAST; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib VAR1 length = $3; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib VAR2 length = $3; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib VAR3 length = $3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib VAR5 length = 8;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quote='"';&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file "$DISC_FTP/info_today_date1._&amp;amp;tf_hour.00.txt" LRECL=32760 dlm='|';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put &lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quote +(-1)VAR1&amp;nbsp; +(-1) quote&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&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; quote +(-1)VAR2&amp;nbsp; +(-1) quote&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&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; quote +(-1)VAR3&amp;nbsp; +(-1) quote&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&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; quote +(-1)VAR4&amp;nbsp; +(-1) quote&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&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; quote +(-1)VAR5&amp;nbsp; +(-1) quote&lt;/SPAN&gt;&lt;BR /&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; ;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125445#M1596</guid>
      <dc:creator>qwererty</dc:creator>
      <dc:date>2013-04-30T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput txt file without quotation marks and maintain numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125446#M1597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About the numerical variables, any specified format should be honored.&lt;/P&gt;&lt;P&gt;The quotes seems a bit more frustrating :smileyconfused:&lt;/P&gt;&lt;P&gt;Your option would be to use User written body ( as you probably already tested), but that's not recommended.&lt;/P&gt;&lt;P&gt;An option would be to create a User Written File Writer transformation. With this, you will get the data types and format of all output variables in your target file as macro variables, so you could make the code dynamic.&lt;/P&gt;&lt;P&gt;In my opinion, both File reader and Writer transformations seems like an early hack, and should be candidates for enhancements. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 10:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125446#M1597</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-05-07T10:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput txt file without quotation marks and maintain numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125447#M1598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author " style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="233452" data-username="TwanManders" href="https://communities.sas.com/people/TwanManders" id="jive-23345225903089546097186" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba;"&gt;TwanManders&lt;/A&gt; &lt;/STRONG&gt;May 26, 2014 6:12 AM &lt;SPAN class="font-color-meta-light j-thread-replyto" style="padding: 0 0 0 3px; font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;(&lt;A _jive_internal="true" class="font-color-meta-light " href="https://communities.sas.com/message/157741#157741" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;" title="Go to message"&gt;in response to FredrikFerm&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author " style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;SPAN class="font-color-meta-light j-thread-replyto" style="padding: 0 0 0 3px; font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;Wrote&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Times New Roman'; color: #000000;"&gt;"You must select "Treat consecutive delimiters as a single delimiter" in the external file properties (File Parameters tab) to prevent the double quotation marks from being included in the data."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: 'Times New Roman'; color: #000000;"&gt;And it worked to me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125447#M1598</guid>
      <dc:creator>JanB</dc:creator>
      <dc:date>2014-09-12T12:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput txt file without quotation marks and maintain numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125448#M1599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use: &lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1m51h0mem3lmxn1i8p5p9r6b6bo.htm" title="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1m51h0mem3lmxn1i8p5p9r6b6bo.htm"&gt;SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt; The $quote. format? It does the thing you described. Doubling somet thing as usual conention incuded.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125448#M1599</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-12T12:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput txt file without quotation marks and maintain numeric values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125449#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other mentioned issue with numerics is known as precision. Apply a correct format and rounding is included. &lt;A href="https://support.sas.com/techsup/technote/ts654.pdf" title="https://support.sas.com/techsup/technote/ts654.pdf"&gt;https://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ouput-txt-file-without-quotation-marks-and-maintain-numeric/m-p/125449#M1600</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-12T12:57:24Z</dc:date>
    </item>
  </channel>
</rss>

