<?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 missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309039#M66422</link>
    <description>&lt;P&gt;Salve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sto utilizzando SAS Data Integration Studio per scrivere, in un file di testo (.txt), alcuni campi letti da una tabella Oracle.&lt;/P&gt;&lt;P&gt;I valori dei campi scritti nel file sono racchiusi tra i doppi apici&amp;nbsp;“ e “ e separati dal carattere ; ad esempio:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"TO_20147521221127";"4293675";"70419/ES";"1";"2";"42.00";"0.00";"0.00";"07MAR2015:00:00:00";"14FEB2015:00:00:00";".";"0";"0";".";"TO_21221127";"150.30";&lt;STRONG&gt;"."&lt;/STRONG&gt;;"13APR2015:16:01:56";&lt;STRONG&gt;" "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ho evidenziato in&amp;nbsp;&lt;STRONG&gt;nero&lt;/STRONG&gt;&amp;nbsp;l'ultimo&amp;nbsp;e il penultimo campo.&lt;/P&gt;&lt;P&gt;L'ultimo&amp;nbsp;campo, di tipo Numeric, è valorizzato con l’espressione: IFN(2=1,ID_FACTOR, ., .)&lt;/P&gt;&lt;P&gt;Il penultimo campo,&amp;nbsp;di tipo Character,&amp;nbsp;è invece&amp;nbsp;valorizzato con l’espressione: IFC(2=1,"ID_FACTOR", "", "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Poiché la condizione 2=1 è sempre falsa, entrambi i campi non saranno mai valorizzati con ID_FACTOR. Ma vorrei che tali campi siano scritti nel file entrambi con “”, anziché con "." e " " come mostrato nell’ esempio.&lt;/P&gt;&lt;P&gt;In altre parole, come potrei cambiare le espressioni per un campo Numeric e per un campo Character, evitando che nel file compaia “.” e “ “, ma facendo in modo che nel file sia scritto “” ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grazie,&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 10:45:57 GMT</pubDate>
    <dc:creator>niespolo</dc:creator>
    <dc:date>2016-11-04T10:45:57Z</dc:date>
    <item>
      <title>missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309039#M66422</link>
      <description>&lt;P&gt;Salve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sto utilizzando SAS Data Integration Studio per scrivere, in un file di testo (.txt), alcuni campi letti da una tabella Oracle.&lt;/P&gt;&lt;P&gt;I valori dei campi scritti nel file sono racchiusi tra i doppi apici&amp;nbsp;“ e “ e separati dal carattere ; ad esempio:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"TO_20147521221127";"4293675";"70419/ES";"1";"2";"42.00";"0.00";"0.00";"07MAR2015:00:00:00";"14FEB2015:00:00:00";".";"0";"0";".";"TO_21221127";"150.30";&lt;STRONG&gt;"."&lt;/STRONG&gt;;"13APR2015:16:01:56";&lt;STRONG&gt;" "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ho evidenziato in&amp;nbsp;&lt;STRONG&gt;nero&lt;/STRONG&gt;&amp;nbsp;l'ultimo&amp;nbsp;e il penultimo campo.&lt;/P&gt;&lt;P&gt;L'ultimo&amp;nbsp;campo, di tipo Numeric, è valorizzato con l’espressione: IFN(2=1,ID_FACTOR, ., .)&lt;/P&gt;&lt;P&gt;Il penultimo campo,&amp;nbsp;di tipo Character,&amp;nbsp;è invece&amp;nbsp;valorizzato con l’espressione: IFC(2=1,"ID_FACTOR", "", "")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Poiché la condizione 2=1 è sempre falsa, entrambi i campi non saranno mai valorizzati con ID_FACTOR. Ma vorrei che tali campi siano scritti nel file entrambi con “”, anziché con "." e " " come mostrato nell’ esempio.&lt;/P&gt;&lt;P&gt;In altre parole, come potrei cambiare le espressioni per un campo Numeric e per un campo Character, evitando che nel file compaia “.” e “ “, ma facendo in modo che nel file sia scritto “” ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grazie,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309039#M66422</guid>
      <dc:creator>niespolo</dc:creator>
      <dc:date>2016-11-04T10:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: campi non valorizzati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309041#M66424</link>
      <description>&lt;P&gt;Since there is not yet an Italian regional group here, I strongly suggest you post your question in English, as it will attract a larger pool of possible helpers.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 14:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309041#M66424</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-03T14:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309225#M66489</link>
      <description>&lt;DIV class="tw-swapa"&gt;Hello,&lt;/DIV&gt;&lt;DIV class="_Ejb"&gt;&lt;DIV&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;DIV class="_Ejb"&gt;&lt;DIV&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;DIV class="_Ejb"&gt;&lt;DIV&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;DIV class="_Ejb"&gt;&lt;DIV&gt;&lt;DIV class="tw-ta-container tw-nfl"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS Data Integration Studio to write, in a text file (.txt), some fields read from an Oracle table.&lt;BR /&gt;Field values ​​written to the file are enclosed in double quotes " and " and separated by the character ; eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"TO_20147521221127";"4293675";"70419/ES";"1";"2";"42.00";"0.00";"0.00";"07MAR2015:00:00:00";"14FEB2015:00:00:00";".";"0";"0";".";"TO_21221127";"150.30";&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;"."&lt;/STRONG&gt;&lt;/FONT&gt;;"13APR2015:16:01:56";&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;" "&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I highlighted in&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;red&lt;/FONT&gt;&lt;/STRONG&gt; the last and the&amp;nbsp;third to last&amp;nbsp;field. The last field, of Numeric type, is enhanced with the expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IFN(2=1,ID_FACTOR, ., .)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;third to last&amp;nbsp;field, of type Character, is instead enhanced with the expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IFC(2=1,"ID_FACTOR", "", "")&lt;/EM&gt;&lt;BR /&gt;Since the condition 2 = 1 is always false, both fields will never be emphasized by using ID_FACTOR. But I wish that these fields are written to the file either with "", instead of "." and " " as shown in the example.&lt;BR /&gt;In other words, how could I change the expressions for a Numeric and a Character field, avoiding "." and " ", but to write " " in the file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309225#M66489</guid>
      <dc:creator>niespolo</dc:creator>
      <dc:date>2016-11-04T10:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309236#M66493</link>
      <description>&lt;P&gt;You will always get one blank, but&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing = ' ';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will display a blank instead of the dot for missing numeric values.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 12:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309236#M66493</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-04T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309271#M66504</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi KurtBremser,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;it doesn't work because the missing numbers are valued as " " and not with "" as I would like.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I've tried with:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;FONT size="3"&gt;options missing = ' ';&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="2"&gt;and with:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;FONT size="3"&gt;options missing = '';&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;but the output in the file is " " for blanks and not "".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 14:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/missing-values/m-p/309271#M66504</guid>
      <dc:creator>niespolo</dc:creator>
      <dc:date>2016-11-04T14:02:28Z</dc:date>
    </item>
  </channel>
</rss>

