<?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: Issue with DDE to export data to Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71144#M15366</link>
    <description>Thats worked.  Thanks a lot!</description>
    <pubDate>Tue, 31 May 2011 04:26:03 GMT</pubDate>
    <dc:creator>A_B_C</dc:creator>
    <dc:date>2011-05-31T04:26:03Z</dc:date>
    <item>
      <title>Issue with DDE to export data to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71142#M15364</link>
      <description>When I am trying output data using DDE facing the following problem hence any help is greatly appreciable.&lt;BR /&gt;
&lt;BR /&gt;
When I am trying to export data to Excel using DDE, one row is splitting up into two rows and getting displayed in Excel. This is happening for few observations and rest are coming once observation per row.&lt;BR /&gt;
&lt;BR /&gt;
The following is the code I am using:&lt;BR /&gt;
filename myexcel dde "Excel|[SAE Template_1.xls]sae_details!r6c5:r567c29" notab;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  set sae_final_n;&lt;BR /&gt;
  file myexcel ;&lt;BR /&gt;
  put  patid '09'x saeno '09'x stdytrt '09'x saediag '09'x onsetdt '09'x onsettm '09'x stopdt '09'x stoptm '09'x saecrit '09'x acttkn '09'x outcm '09'x causal '09'x grade '09'x saecomm '09'x typerept '09'x crfsaediag '09'x crfonsetdt '09'x crfonsettm '09'x crfenddt '09'x crfendtm '09'x saecrt '09'x act_tkn '09'x outcome '09'x causal '09'x intenseassctcae ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
here is the ouptut:&lt;BR /&gt;
01007 	7	  	DISEASE PROGRESSION 	28-Dec-10	06:00:00	NA 	NA 	  	- 	Death 	Unlikely 	Grade 5 	  	Preliminary 	EXTREME FATIGUE AND COUGH WITH HEMOPTYSIS 	28-Dec-10	06:00	. 	. 	Hospitalization 	  	  	Unlikely 	Grade 3&lt;BR /&gt;
01007 	7	  	DISEASE PROGRESSION 	28-Dec-10	06:00:00	NA 	NA 	Death 	- 	Death 	Unlikely 	Grade 5 	  	Final 	DISEASE PROGRESSION 	28-Dec-10	06:00	. 	. 	  	  	Death 	Unlikely 	Grade 5&lt;BR /&gt;
01008 	1	  	FATIGUE 	22-May-10	12:40:00	28-May-10	03:40	  	Symptomatic treatment and hospitalization 	Recovered 	Unassessable/ Unclassifiable 	Grade 3 	  	Final 	FATIGUE 	22-May-10	12:40	28-May-10	03:40	Hospitalization 				&lt;BR /&gt;
Hospitalization,SymptomaticRx 	Recovered 	Unassessable/ Unclassifiable 	Grade 3																					&lt;BR /&gt;
&lt;BR /&gt;
In the above output for the patient 01008, the data after the variable 'saecrt' (hospitalization) the data for next variables(Hospitalization,SymptomaticRx 	Recovered 	Unassessable/ Unclassifiable 	Grade 3	)  displayed in the next row Excel. am not sure why is it happening. Any help is greatly appreciable</description>
      <pubDate>Mon, 30 May 2011 14:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71142#M15364</guid>
      <dc:creator>A_B_C</dc:creator>
      <dc:date>2011-05-30T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with DDE to export data to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71143#M15365</link>
      <description>Hello.&lt;BR /&gt;
&lt;BR /&gt;
Try to add linesize option.&lt;BR /&gt;
&lt;BR /&gt;
filename myexcel dde "Excel|[SAE Template_1.xls]sae_details!r6c5:r567c29" notab;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set sae_final_n;&lt;BR /&gt;
file myexcel &lt;B&gt; ls=32000 &lt;/B&gt; ;&lt;BR /&gt;
put patid '09'x saeno '09'x stdytrt '09'x saediag '09'x onsetdt '09'x onsettm '09'x stopdt '09'x stoptm '09'x saecrit '09'x acttkn '09'x outcm '09'x causal '09'x grade '09'x saecomm '09'x typerept '09'x crfsaediag '09'x crfonsetdt '09'x crfonsettm '09'x crfenddt '09'x crfendtm '09'x saecrt '09'x act_tkn '09'x outcome '09'x causal '09'x intenseassctcae ;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 30 May 2011 14:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71143#M15365</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2011-05-30T14:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with DDE to export data to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71144#M15366</link>
      <description>Thats worked.  Thanks a lot!</description>
      <pubDate>Tue, 31 May 2011 04:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-DDE-to-export-data-to-Excel/m-p/71144#M15366</guid>
      <dc:creator>A_B_C</dc:creator>
      <dc:date>2011-05-31T04:26:03Z</dc:date>
    </item>
  </channel>
</rss>

