<?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 ODS CSV 2 challenges in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9006#M2897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can overcome the challenges using proc export on my Windows desktop, yes.&amp;nbsp; I have been running this successfully at my desk.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to set this up to run in batch.&amp;nbsp;&amp;nbsp;&amp;nbsp; I thought I had to use ODS for this, but maybe I could use proc export with the sas exprt -noterminal command?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 17:50:39 GMT</pubDate>
    <dc:creator>Pylon53</dc:creator>
    <dc:date>2012-02-21T17:50:39Z</dc:date>
    <item>
      <title>ODS CSV 2 challenges</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9003#M2894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with two challenges in creating ODS output with SAS 9.3.&amp;nbsp;&amp;nbsp; I am creating a mail merge data file with an ID column, then 6 additional columns with messages.&amp;nbsp;&amp;nbsp; Everyone will have at least one message and some will have more than one up to the six, meaning lots of empty cells all around.&amp;nbsp;&amp;nbsp; Some messages contain over 1024 characters.&amp;nbsp; The ID cell can have up to two leading zeroes.&amp;nbsp; &lt;/P&gt;&lt;P&gt; I have tried to create a modified csv tagset to deal with leading zeroes and that seems to work in a very simple query, but when I assign the adjusted templace to the ODC CSV process, the output is garbage.&amp;nbsp;&amp;nbsp; Quotes start appearing in multiple columns and many columns are shifted.&lt;/P&gt;&lt;P&gt;If I use the plain ods csv process and add an options (quoted_columns='1'), then my column layout looks great, but I don't see leading zeroes appearing on IDs in that first column.&amp;nbsp;&amp;nbsp; Trying to add this quoted_columns option to the modified tagset causes a crash.&amp;nbsp; I might not be adding it correctly, though.&lt;/P&gt;&lt;P&gt;I can't use ODS EXCELXP because of the 1024 character limitation.&lt;/P&gt;&lt;P&gt;Any ideas are appreciated.&amp;nbsp;&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 17:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9003#M2894</guid>
      <dc:creator>Pylon53</dc:creator>
      <dc:date>2012-02-21T17:28:15Z</dc:date>
    </item>
    <item>
      <title>ODS CSV 2 challenges</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9004#M2895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using ODS to generate a CSV file?&amp;nbsp; Why not just use a data step.&amp;nbsp; Use the Z format to preserve the leading zeros.&lt;/P&gt;&lt;P&gt;Check out this very recent thread on SAS-L.&lt;/P&gt;&lt;P&gt;&lt;A href="http://listserv.uga.edu/cgi-bin/wa?A2=ind1202C&amp;amp;L=sas-l&amp;amp;D=0&amp;amp;F=P&amp;amp;P=11485&amp;amp;F="&gt;http://listserv.uga.edu/cgi-bin/wa?A2=ind1202C&amp;amp;L=sas-l&amp;amp;D=0&amp;amp;F=P&amp;amp;P=11485&amp;amp;F=&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 17:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9004#M2895</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-21T17:36:58Z</dc:date>
    </item>
    <item>
      <title>ODS CSV 2 challenges</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9005#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Won't a straight CSV export of the data work? Any reason for an ODS? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The leading zero get dropped if you open the CSV file in Excel, but not in the actual CSV file, depending on your output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will export a comma quoted file which should meet most requirements for a mail merge data file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Data Null's code originall)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file log dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if _n_ eq 1 then link names;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; put (_all_)(~);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;names:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length _name_ $32;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do while(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call vnext(_name_);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if upcase(_name_) eq '_NAME_' then leave;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _name_ ~ @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; put;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 17:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9005#M2896</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-02-21T17:39:42Z</dc:date>
    </item>
    <item>
      <title>ODS CSV 2 challenges</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9006#M2897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can overcome the challenges using proc export on my Windows desktop, yes.&amp;nbsp; I have been running this successfully at my desk.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to set this up to run in batch.&amp;nbsp;&amp;nbsp;&amp;nbsp; I thought I had to use ODS for this, but maybe I could use proc export with the sas exprt -noterminal command?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 17:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9006#M2897</guid>
      <dc:creator>Pylon53</dc:creator>
      <dc:date>2012-02-21T17:50:39Z</dc:date>
    </item>
    <item>
      <title>ODS CSV 2 challenges</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9007#M2898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you only have to use the -noterminal option if you are running batch on Unix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 18:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSV-2-challenges/m-p/9007#M2898</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-21T18:25:10Z</dc:date>
    </item>
  </channel>
</rss>

