<?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: create .csv without blanks in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201334#M50256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It´s a client requirement.&lt;/P&gt;&lt;P&gt;I said than a blank it´s not a problem but has said NO.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So, I cant put ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know that with proc export there is not this problem, but i´ve the problem that i think it´s not possible to writte differtent formats for diferent rows.&lt;/P&gt;&lt;P&gt;So, I cant put blaknk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 20:55:25 GMT</pubDate>
    <dc:creator>PFAN</dc:creator>
    <dc:date>2015-06-09T20:55:25Z</dc:date>
    <item>
      <title>create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201331#M50253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I´m trying to create a .csv without blancs in the character variables not informated, but I only arrived to obtain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xxx; ;xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insted of &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;xxx;;xxxx&amp;nbsp; (without blanks).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I´m ussing data _null_ becouse I need to write the first line with some variables and the others with other diferent variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Mycode is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;options missing='';&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file "/DIOGEN/REPORTINGOS/IPCA_INFOINSTAL_D_&amp;amp;nombre&amp;amp;gui&amp;amp;fec&amp;amp;csv"&amp;nbsp;&amp;nbsp; dlm=';';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; set TmpHC.&amp;amp;SISTEMA;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_ = 1 then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* write column names or labels */&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; do;&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; put @01&amp;nbsp; IdentificacionMensaje&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VersionMensaje&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TipoMensaje&lt;/P&gt;&lt;P&gt;&amp;nbsp; TipoProceso&lt;/P&gt;&lt;P&gt;&amp;nbsp; TipoSubproceso&lt;/P&gt;&lt;P&gt;&amp;nbsp; IdSistema&lt;/P&gt;&lt;P&gt;&amp;nbsp; CodificacionSistema&lt;/P&gt;&lt;P&gt;&amp;nbsp; IdentificacionRemitente&lt;/P&gt;&lt;P&gt;&amp;nbsp; CodificacionRemitente&lt;/P&gt;&lt;P&gt;&amp;nbsp; FuncionRemitente&lt;/P&gt;&lt;P&gt;&amp;nbsp; IdentificacionDestinatario&lt;/P&gt;&lt;P&gt;&amp;nbsp; codificacionDestinatario&lt;/P&gt;&lt;P&gt;&amp;nbsp; FuncionDestinatario&lt;/P&gt;&lt;P&gt;&amp;nbsp; FechaHoraMensaje&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horizonte&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_ &amp;gt;= 1 then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* write column names or labels */&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; do;&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; put @01&amp;nbsp; IdentificadorSerieTemporal&lt;/P&gt;&lt;P&gt;&amp;nbsp; UPR&lt;/P&gt;&lt;P&gt;&amp;nbsp; CodificacionUPR&lt;/P&gt;&lt;P&gt;&amp;nbsp; Central&lt;/P&gt;&lt;P&gt;&amp;nbsp; CodificacionCentral&lt;/P&gt;&lt;P&gt;&amp;nbsp; UnidadMedida&lt;/P&gt;&lt;P&gt;&amp;nbsp; IntervaloTiempo&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resolucion&lt;/P&gt;&lt;P&gt;&amp;nbsp; Pos&lt;/P&gt;&lt;P&gt;&amp;nbsp; Produccion&lt;/P&gt;&lt;P&gt;&amp;nbsp; ConsumoPropio&lt;/P&gt;&lt;P&gt;&amp;nbsp; Consumo&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnergiaDisponible&amp;nbsp; &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; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do for obtain it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201331#M50253</guid>
      <dc:creator>PFAN</dc:creator>
      <dc:date>2015-06-09T17:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201332#M50254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;IMO the blank will not hurt at all when you read the .cvs file. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Take into account that SAS represents missing values with a . for numeric variables and with a blank for character variables.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;CTorres&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 18:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201332#M50254</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2015-06-09T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201333#M50255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use the DSD option on the FILE statement?&amp;nbsp; That is what it is for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201333#M50255</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-09T19:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201334#M50256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It´s a client requirement.&lt;/P&gt;&lt;P&gt;I said than a blank it´s not a problem but has said NO.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So, I cant put ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know that with proc export there is not this problem, but i´ve the problem that i think it´s not possible to writte differtent formats for diferent rows.&lt;/P&gt;&lt;P&gt;So, I cant put blaknk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 20:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201334#M50256</guid>
      <dc:creator>PFAN</dc:creator>
      <dc:date>2015-06-09T20:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201335#M50257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Tom, I dont know how to use the dsd option for that, can you explain me please?&lt;/P&gt;&lt;P&gt;On other hand I think they are going to use the csv to charge values into html, but the obtion of blank is not acepted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 21:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201335#M50257</guid>
      <dc:creator>PFAN</dc:creator>
      <dc:date>2015-06-09T21:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201336#M50258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom, I´m looking for the utility of DSD and I´ve make a proof.&lt;/P&gt;&lt;P&gt;It seem to be perfect, but I would like to know exactly what is it for.&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 21:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201336#M50258</guid>
      <dc:creator>PFAN</dc:creator>
      <dc:date>2015-06-09T21:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: create .csv without blanks</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201337#M50259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) read the man page.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually the online man page for the DSD option on the INFILE statement explains better than the section in the FILE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.4399995803833px; background-color: #ffffff;"&gt; When you specify DSD, SAS treats two consecutive delimiters as a missing value and removes quotation marks from character values.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) try a little experiment.&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; if _n_=1 then age=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_=2 then name = ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; file log dsd ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (_all_) (:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 04:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-csv-without-blanks/m-p/201337#M50259</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-10T04:19:37Z</dc:date>
    </item>
  </channel>
</rss>

