<?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: Delete the empty space in XML file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447495#M112434</link>
    <description>&lt;P&gt;Create fully working example for one observation.&amp;nbsp; That means post a data step with in-line data to create your example data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  length var1 $20 var2 8;
  infile cards dsd dlm='|' truncover ;
  input var1 var2;
cards;
XXX|123
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A data step to create the XML output for that observation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set have ;
  file 'example.xml' ;
  put ....
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The resulting XML you get when you run that code.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;tag1&amp;gt;XXX&amp;lt;/tag1&amp;gt;&lt;/PRE&gt;
&lt;P&gt;And what you want to get instead and explanation of how the two outputs differ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps the issue is that you do not understand either the input data or the output format and it is causing you to use the wrong condition in your IF statement?&lt;/P&gt;
&lt;P&gt;Include the LOG from running the step that writes the XML. Including any notes like uninitialized variables, conversion from character to numeric.&lt;/P&gt;
&lt;P&gt;One simple mistake could be is that you think the variable is numeric but it is really character and somewhere earlier in your process a missing value got assigned to the variable and it is stored as '&amp;nbsp; &amp;nbsp; &amp;nbsp; .' and so it is not a missing character value and is thus getting written to your output file.&lt;/P&gt;
&lt;PRE&gt; 73         data _null_;
 74           do x=1, . ;
 75              length y $5 ;
 76              y=x;
 77              put x= y=:$quote. ;
 78           end;
 79         run;
 
 NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
       76:8   
 x=1 y="    1"
 x=. y="    ."&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 17:02:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-03-21T17:02:28Z</dc:date>
    <item>
      <title>Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447038#M112230</link>
      <description />
      <pubDate>Thu, 22 Mar 2018 08:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447038#M112230</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-22T08:18:35Z</dc:date>
    </item>
    <item>
      <title>SAS dataset to XML converion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/446867#M112266</link>
      <description>&lt;P&gt;I have the placed below the snippet of&amp;nbsp;SAS program &amp;nbsp;which will convert the SAS dataset to XML file. However when I do,&amp;nbsp;the field &lt;STRONG&gt;dpf_base &lt;/STRONG&gt;is&amp;nbsp;not filled in in the SAS dataset but the field &amp;lt;dynamicPricingFactor&amp;gt; in the xml file is filled in with a ‘.’ &amp;nbsp;instead of leaving it as empty. Appreciate if someone of you guide me to resolve this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put '&amp;lt;dynamicPricingFactorPolicyCover&amp;gt;';
	put   '&amp;lt;productVersionCoverRef&amp;gt;';
	put '    &amp;lt;externalIdentifier&amp;gt;'  cover +(-1) '&amp;lt;/externalIdentifier&amp;gt;';
	put '   &amp;lt;/productVersionCoverRef&amp;gt;';
	put '    &amp;lt;isForNonMatch&amp;gt;false&amp;lt;/isForNonMatch&amp;gt;';
	put '    &amp;lt;hashCode1&amp;gt;'  veh_driver_hashcode +(-1)  '&amp;lt;/hashCode1&amp;gt;';
	put '    &amp;lt;hashCode2&amp;gt;' version_subversion_hashcode +(-1) '&amp;lt;/hashCode2&amp;gt;';
	put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;';
	put '    &amp;lt;dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put '       &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;FR&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	a=translate(expl_base,'-','/');
	put '            &amp;lt;explanation&amp;gt;' a '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '        &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;VLS&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	put '            &amp;lt;explanation&amp;gt;' a '&amp;lt;/explanation&amp;gt;';

	*put '            &amp;lt;explanation&amp;gt;' translate(expl_base,'-','/') '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '    &amp;lt;/dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put ' &amp;lt;/dynamicPricingFactorPolicyCover&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Mar 2018 16:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/446867#M112266</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-19T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS dataset to XML converion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/446882#M112267</link>
      <description>&lt;P&gt;Set option missing=‘’;&lt;/P&gt;
&lt;P&gt;or add an IF statement to conditionally put the value or missing&lt;/P&gt;
&lt;P&gt;or use COALESCE to determine the actual value to handle the missing value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have the placed below the snippet of&amp;nbsp;SAS program &amp;nbsp;which will convert the SAS dataset to XML file. However when I do,&amp;nbsp;the field &lt;STRONG&gt;dpf_base &lt;/STRONG&gt;is&amp;nbsp;not filled in in the SAS dataset but the field &amp;lt;dynamicPricingFactor&amp;gt; in the xml file is filled in with a ‘.’ &amp;nbsp;instead of leaving it as empty. Appreciate if someone of you guide me to resolve this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put '&amp;lt;dynamicPricingFactorPolicyCover&amp;gt;';
	put   '&amp;lt;productVersionCoverRef&amp;gt;';
	put '    &amp;lt;externalIdentifier&amp;gt;'  cover +(-1) '&amp;lt;/externalIdentifier&amp;gt;';
	put '   &amp;lt;/productVersionCoverRef&amp;gt;';
	put '    &amp;lt;isForNonMatch&amp;gt;false&amp;lt;/isForNonMatch&amp;gt;';
	put '    &amp;lt;hashCode1&amp;gt;'  veh_driver_hashcode +(-1)  '&amp;lt;/hashCode1&amp;gt;';
	put '    &amp;lt;hashCode2&amp;gt;' version_subversion_hashcode +(-1) '&amp;lt;/hashCode2&amp;gt;';
	put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;';
	put '    &amp;lt;dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put '       &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;FR&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	a=translate(expl_base,'-','/');
	put '            &amp;lt;explanation&amp;gt;' a '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '        &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;VLS&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	put '            &amp;lt;explanation&amp;gt;' a '&amp;lt;/explanation&amp;gt;';

	*put '            &amp;lt;explanation&amp;gt;' translate(expl_base,'-','/') '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '    &amp;lt;/dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put ' &amp;lt;/dynamicPricingFactorPolicyCover&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 17:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/446882#M112267</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-19T17:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447052#M112234</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this would solve the issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if dpf_base eq "" then do;

put '    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;';
end;
else do;
put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;';
end;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or are you looking for something else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Joao Moreira.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447052#M112234</guid>
      <dc:creator>joao_moreira</dc:creator>
      <dc:date>2018-03-20T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447056#M112235</link>
      <description>&lt;P&gt;It´s not working as in the output XML file I see as &amp;lt;dynamicPricingFactor&amp;gt;.&amp;lt;/dynamicPricingFactor&amp;gt;. I placed the following code before&amp;nbsp;the code snippet which I gave in the initial post. Appreciate if could help me further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	if dpf_base eq "" then do;

put '    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;';
end;
else do;
put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447056#M112235</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-20T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447058#M112236</link>
      <description>&lt;P&gt;I assume that's because&amp;nbsp;dpf_base is numeric. Is that rigth?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so the code should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if dpf_base eq . then do;
put '    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;';
end;
else do;
put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;';
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Joao Moreira&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT (@Reeza) correct a double quote to single quote.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 15:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447058#M112236</guid>
      <dc:creator>joao_moreira</dc:creator>
      <dc:date>2018-03-21T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447063#M112238</link>
      <description>&lt;P&gt;or you use the missing() function which works for both numeric and character&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if missing(dpf_base eq) then do;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of writing this XML using data step put statements it might also be worth testing if the libname XMLV2 engine could generate an acceptable result.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname test xmlv2 'c:\test\test.xml';
data test.class;
  set sashelp.class;
  if _n_=2 then call missing(name);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447063#M112238</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-20T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447075#M112243</link>
      <description>&lt;P&gt;Could you please help me to resolve this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;60         		if missing(dpf_base eq) then
                                   _
                                   390
                                   76
ERROR 390-185: Expecting an relational or arithmetic operator.

ERROR 76-322: Syntax error, statement will be ignored.

61         do;
62         put '    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;';
63         end;
           ___
           161
ERROR 161-185: No matching DO/SELECT statement.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447075#M112243</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-20T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447085#M112247</link>
      <description>&lt;P&gt;Still the issue seem to be not resolved. I just compared the output after (right) &amp;nbsp;and before (left) updating the code and screenshot below for quick reference. I´m getting two extra lines (red highlighted in right side) as you seen below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code which I added is,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if dpf_base eq . then do;
put '    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;';
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output Comparision:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comparison.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19315i662CEB4D5926E125/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comparison.PNG" alt="Comparison.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447085#M112247</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-20T13:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447139#M112259</link>
      <description>&lt;P&gt;The MISSING() function just takes a value.&amp;nbsp; The EQ keyword does not make sense there.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if missing(dpf_base) then&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447139#M112259</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-20T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447148#M112263</link>
      <description>I think the tricky part is where we adding that if clause. Could you please&lt;BR /&gt;help me understand where should I add the If clause?  Is it at the&lt;BR /&gt;beginning of the code or in between the code which I shared in the initial&lt;BR /&gt;post?&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447148#M112263</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-20T15:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447160#M112268</link>
      <description>&lt;P&gt;You add the clause where you output the statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF &amp;lt;&amp;gt; then do;&lt;/P&gt;
&lt;P&gt;put ...&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;else do;&lt;/P&gt;
&lt;P&gt;put ...&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt; wrote:&lt;BR /&gt;I think the tricky part is where we adding that if clause. Could you please&lt;BR /&gt;help me understand where should I add the If clause? Is it at the&lt;BR /&gt;beginning of the code or in between the code which I shared in the initial&lt;BR /&gt;post?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447160#M112268</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-20T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447276#M112307</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please post sample data for your code so we can provide an actually tested solution.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 23:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447276#M112307</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-20T23:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447277#M112308</link>
      <description>&lt;P&gt;Additional lines make no sense.&lt;/P&gt;&lt;P&gt;You replace one put statement with another, so you'll have the same number of lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;if missing(dpf_base) then 
  put '    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;';
else 
  put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;";
&amp;nbsp;&lt;/PRE&gt;&amp;nbsp;&amp;nbsp;instead of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-sas lia-code-sample" data-lia-code-lang="sas" data-lia-code-macro="true"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'    &amp;lt;dynamicPricingFactor&amp;gt;'&lt;/SPAN&gt; dpf_base &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;-1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; '&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;dynamicPricingFactor&lt;SPAN class="token operator"&gt;&amp;gt;&lt;/SPAN&gt;"&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;sorry for the spam, the formatting keeps getting butchered.&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 23:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447277#M112308</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-20T23:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447282#M112312</link>
      <description>&lt;P&gt;SAS OPTIONS go outside of the PROC. Put the option before the data step and it should work fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im assuming you have data step code somewhere since none is shown.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 00:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447282#M112312</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-21T00:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447284#M112314</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Here another coding option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  dpf_base='AAA';
  output;
  dpf_base=' ';
  output;
  stop;
run;

data _null_;
  file print;
  set have;
  move= -1-missing(dpf_base);
  put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +move '&amp;lt;/dynamicPricingFactor&amp;gt;';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;dynamicPricingFactor&amp;gt;AAA&amp;lt;/dynamicPricingFactor&amp;gt;
    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 00:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447284#M112314</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-21T00:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447355#M112362</link>
      <description>&lt;P&gt;Still I'm not receiving the desired output. In real time,&amp;nbsp;the variables (numeric) DPF_base, DPF_major_change and DPF_Minor_Change are not filled in SAS dataset then the field: &amp;lt;dynamicPricingFactor&amp;gt; in the xml file is filled in with a ‘.’ &amp;nbsp;The below conversion program will do this automatically and this &amp;nbsp;not the good way to fill it, it should be left empty as&amp;nbsp;&lt;SPAN&gt;&amp;lt;&lt;STRONG&gt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please guide me where should I add your proposed solution in my code below? If I add it after the put statement I'm not receiving the desired output as the number of output lines after adding the code rose from 12327 lines to 12567.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My condition is actual output lines in the code should be always be 12327 even after executing the code after the changes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	set input.dpf_cur_mon end=fin;
	by externalidentifier;
	length a$200 b$200 c$300;
	file "/shared/xml/dpf_cur_mon.xml";
		if _n_=1 then
		do;
			put '&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;';
  			end;

	if first.externalidentifier then
		do;
            put '&amp;lt;dynamicPricingFactorPolicy&amp;gt; ';
			put '&amp;lt;policyRef&amp;gt;';
			put '&amp;lt;externalIdentifier&amp;gt;' externalidentifier +(-1)'&amp;lt;/externalIdentifier&amp;gt;';
			put '&amp;lt;/policyRef&amp;gt;';
			put '&amp;lt;dateRenewal&amp;gt;' dateRenewal+(-1)'&amp;lt;/dateRenewal&amp;gt;';
			put '&amp;lt;clauseCode&amp;gt;' clause_Base+(-1)'&amp;lt;/clauseCode&amp;gt;';
			put '&amp;lt;dynamicPricingFactorPolicyCoverList&amp;gt;';
		end;

	put '&amp;lt;dynamicPricingFactorPolicyCover&amp;gt;';
	put   '&amp;lt;productVersionCoverRef&amp;gt;';
	put '    &amp;lt;externalIdentifier&amp;gt;'  cover +(-1) '&amp;lt;/externalIdentifier&amp;gt;';
	put '   &amp;lt;/productVersionCoverRef&amp;gt;';
	put '    &amp;lt;isForNonMatch&amp;gt;false&amp;lt;/isForNonMatch&amp;gt;';
	put '    &amp;lt;hashCode1&amp;gt;'  veh_driver_hashcode +(-1)  '&amp;lt;/hashCode1&amp;gt;';
	put '    &amp;lt;hashCode2&amp;gt;' version_subversion_hashcode +(-1) '&amp;lt;/hashCode2&amp;gt;';
	put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +(-1) '&amp;lt;/dynamicPricingFactor&amp;gt;';
	put '    &amp;lt;dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put '       &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;FR&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	a=translate(expl_base,'-','/');
	put '            &amp;lt;explanation&amp;gt;' a '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '        &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;VLS&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	put '            &amp;lt;explanation&amp;gt;' a '&amp;lt;/explanation&amp;gt;';

	*put '            &amp;lt;explanation&amp;gt;' translate(expl_base,'-','/') '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '    &amp;lt;/dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put ' &amp;lt;/dynamicPricingFactorPolicyCover&amp;gt;';
	put '&amp;lt;dynamicPricingFactorPolicyCover&amp;gt;';
	put   '&amp;lt;productVersionCoverRef&amp;gt;';
	put '    &amp;lt;externalIdentifier&amp;gt;'  cover +(-1) '&amp;lt;/externalIdentifier&amp;gt;';
	put '   &amp;lt;/productVersionCoverRef&amp;gt;';
	put '    &amp;lt;isForNonMatch&amp;gt;true&amp;lt;/isForNonMatch&amp;gt;';
	put '    &amp;lt;hashCode1&amp;gt;'  veh_driver_hashcode +(-1)  '&amp;lt;/hashCode1&amp;gt;';
	put '    &amp;lt;hashCode2&amp;gt;&amp;lt;/hashCode2&amp;gt;';
	put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_minor_change +(-1)'&amp;lt;/dynamicPricingFactor&amp;gt;';
	put '    &amp;lt;dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put '       &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;FR&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	b=translate(expl_minor_change,'-','/');
	put '            &amp;lt;explanation&amp;gt;' b '&amp;lt;/explanation&amp;gt;';

	*put '            &amp;lt;explanation&amp;gt;' translate(expl_major_change,'-','/') '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '        &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;VLS&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';

	*put '            &amp;lt;explanation&amp;gt;' translate(expl_major_change,'-','/') '&amp;lt;/explanation&amp;gt;';
	put '            &amp;lt;explanation&amp;gt;' b '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '    &amp;lt;/dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put ' &amp;lt;/dynamicPricingFactorPolicyCover&amp;gt;';
	put '&amp;lt;dynamicPricingFactorPolicyCover&amp;gt;';
	put   '&amp;lt;productVersionCoverRef&amp;gt;';
	put '    &amp;lt;externalIdentifier&amp;gt;'  cover +(-1)  '&amp;lt;/externalIdentifier&amp;gt;';
	put '   &amp;lt;/productVersionCoverRef&amp;gt;';
	put '    &amp;lt;isForNonMatch&amp;gt;true&amp;lt;/isForNonMatch&amp;gt;';
	put '    &amp;lt;hashCode1&amp;gt;&amp;lt;/hashCode1&amp;gt;';
	put '    &amp;lt;hashCode2&amp;gt;&amp;lt;/hashCode2&amp;gt;';
	put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_major_change +(-1)  '&amp;lt;/dynamicPricingFactor&amp;gt;';
	put '    &amp;lt;dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put '       &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;FR&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	c=translate(expl_major_change,'-','/');
	put '            &amp;lt;explanation&amp;gt;' c '&amp;lt;/explanation&amp;gt;';

	*put '            &amp;lt;explanation&amp;gt;' translate(expl_minor_change,'-','/') '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '        &amp;lt;dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '            &amp;lt;languageRef&amp;gt;';
	put '                 &amp;lt;externalIdentifier&amp;gt;VLS&amp;lt;/externalIdentifier&amp;gt;';
	put '            &amp;lt;/languageRef&amp;gt;';
	put '            &amp;lt;explanation&amp;gt;' c '&amp;lt;/explanation&amp;gt;';
	put '        &amp;lt;/dynamicPricingFactorPolicyCoverLang&amp;gt;';
	put '    &amp;lt;/dynamicPricingFactorPolicyCoverLangList&amp;gt;';
	put ' &amp;lt;/dynamicPricingFactorPolicyCover&amp;gt;';

	if last.externalidentifier then
		do;
			put '&amp;lt;/dynamicPricingFactorPolicyCoverList&amp;gt;';
			put '&amp;lt;/dynamicPricingFactorPolicy&amp;gt;';
		end;

	if fin then
		do;
			put	'&amp;lt;/dynamicPricingFactorPolicyList&amp;gt;';
			end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="1712"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;externalIdentifier&lt;/TD&gt;
&lt;TD width="81"&gt;dateRenewal&lt;/TD&gt;
&lt;TD width="147"&gt;Veh_Driver_hashcode&lt;/TD&gt;
&lt;TD width="64"&gt;Version_subversion_hashcode&lt;/TD&gt;
&lt;TD width="88"&gt;Clause_Base&lt;/TD&gt;
&lt;TD width="150"&gt;Clause_Major_change&lt;/TD&gt;
&lt;TD width="150"&gt;Clause_Minor_change&lt;/TD&gt;
&lt;TD width="64"&gt;Cover&lt;/TD&gt;
&lt;TD width="68"&gt;DPF_base&lt;/TD&gt;
&lt;TD width="64"&gt;Expl_base&lt;/TD&gt;
&lt;TD width="123"&gt;DPF_major_change&lt;/TD&gt;
&lt;TD width="277"&gt;Expl_major_change&lt;/TD&gt;
&lt;TD width="64"&gt;DPF_minor_change&lt;/TD&gt;
&lt;TD width="270"&gt;Expl_minor_change&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;9000345833&lt;/TD&gt;
&lt;TD&gt;12/03/2119&lt;/TD&gt;
&lt;TD&gt;31_834261303&lt;/TD&gt;
&lt;TD&gt;1.0&lt;/TD&gt;
&lt;TD&gt;ClauseBase1&lt;/TD&gt;
&lt;TD&gt;ClauseMajor1&lt;/TD&gt;
&lt;TD&gt;ClauseMinor1&lt;/TD&gt;
&lt;TD&gt;covMotorbikeBA&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;FR BA x2 perextra/NL BA x2 perc extra&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;FR BA x0,5 pe xtra/NL BA x0,5 perc extra&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;FR BA x1,5 prc xtra/NL BA x1,5 perc extra&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447355#M112362</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-21T10:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447375#M112372</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If you want me to run your code with the data you've posted then please post this data in a friendlier form (as SAS data step creating the data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I've posted should work for both character and numeric variables. Below the same approach for two numeric variables. I hope that will answer your question where and how&amp;nbsp;in the code to populate and use variable &lt;EM&gt;move.&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  dpf_base=999; dpf_major_change=.; output;
  dpf_base=.; dpf_major_change=123; output;
  stop;
run;

data _null_;
  file print;
  set have;
  move= -1-missing(dpf_base);
  put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_base +move '&amp;lt;/dynamicPricingFactor&amp;gt;';
  move= -1-missing(dpf_major_change);
  put '    &amp;lt;dynamicPricingFactor&amp;gt;' dpf_major_change +move '&amp;lt;/dynamicPricingFactor&amp;gt;';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;dynamicPricingFactor&amp;gt;999&amp;lt;/dynamicPricingFactor&amp;gt;
    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;
    &amp;lt;dynamicPricingFactor&amp;gt;&amp;lt;/dynamicPricingFactor&amp;gt;
    &amp;lt;dynamicPricingFactor&amp;gt;123&amp;lt;/dynamicPricingFactor&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447375#M112372</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-21T11:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447402#M112380</link>
      <description>&lt;P&gt;I just wanted to know where&amp;nbsp;I've to (in my code) add your proposed code to resolve the issue. &amp;nbsp;Given below the data step which creates the data after placing the file in the location where you have access to import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA INPUT.dpf_bcar_bmotorbike_201803;
    LENGTH
        externalIdentifier $ 11
        dateRenewal      $ 10
        Veh_Driver_hashcode $ 19
        Version_subversion_hashcode $ 3
        Clause_Base      $ 11
        Clause_Major_change $ 12
        Clause_Minor_change $ 12
        Cover            $ 20
        DPF_base           8
        Expl_base        $ 65
        DPF_major_change   8
        Expl_major_change $ 45
        DPF_minor_change   8
        Expl_minor_change $ 69 ;
    FORMAT
        externalIdentifier $CHAR11.
        dateRenewal      $CHAR10.
        Veh_Driver_hashcode $CHAR19.
        Version_subversion_hashcode $CHAR3.
        Clause_Base      $CHAR11.
        Clause_Major_change $CHAR12.
        Clause_Minor_change $CHAR12.
        Cover            $CHAR20.
        DPF_base         F12.4
        Expl_base        $CHAR65.
        DPF_major_change F12.4
        Expl_major_change $CHAR45.
        DPF_minor_change F12.4
        Expl_minor_change $CHAR69. ;
    INFORMAT
        externalIdentifier $CHAR11.
        dateRenewal      $CHAR10.
        Veh_Driver_hashcode $CHAR19.
        Version_subversion_hashcode $CHAR3.
        Clause_Base      $CHAR11.
        Clause_Major_change $CHAR12.
        Clause_Minor_change $CHAR12.
        Cover            $CHAR20.
        DPF_base         BEST12.
        Expl_base        $CHAR65.
        DPF_major_change BEST12.
        Expl_major_change $CHAR45.
        DPF_minor_change BEST12.
        Expl_minor_change $CHAR69. ;
    INFILE '/GTU/AGSR/wrk1/SAS_workBCE300000AD2_dlu0lsas009g.linux.dv.be/#LN00016'
        LRECL=294
        ENCODING="LATIN1"
        TERMSTR=CRLF
        DLM='7F'x
        MISSOVER
        DSD ;
    INPUT
        externalIdentifier : $CHAR11.
        dateRenewal      : $CHAR10.
        Veh_Driver_hashcode : $CHAR19.
        Version_subversion_hashcode : $CHAR3.
        Clause_Base      : $CHAR11.
        Clause_Major_change : $CHAR12.
        Clause_Minor_change : $CHAR12.
        Cover            : $CHAR20.
        DPF_base         : BEST32.
        Expl_base        : $CHAR65.
        DPF_major_change : BEST32.
        Expl_major_change : $CHAR45.
        DPF_minor_change : BEST32.
        Expl_minor_change : $CHAR69. ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Mar 2018 13:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447402#M112380</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-21T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the empty space in XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447430#M112396</link>
      <description>&lt;P&gt;The code you've posted is an import data step, whereas the code you initially posted was a list of PUT statements more likely to export data. You've switched the problem and code around here somewhere....&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 14:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-the-empty-space-in-XML-file/m-p/447430#M112396</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-21T14:42:21Z</dc:date>
    </item>
  </channel>
</rss>

