<?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: Export sas dataset into excel on a shared drive. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212009#M15871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To fetch the output of an external command to the SAS log, use the following method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename oscmd pipe "your command 2&amp;gt;&amp;amp;1"; * 2&amp;gt;&amp;amp;1 redirects stderr to stdout, so no messages are lost;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile oscmd;&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually the target for scp looks like userid@hostname:path_to_target_file. Note the colon.&lt;/P&gt;&lt;P&gt;I also see a blank in your target path name. I'd rather avoid directory names with blanks, as they force you to use additional (single) quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 07:05:21 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-05-12T07:05:21Z</dc:date>
    <item>
      <title>Export sas dataset into excel on a shared drive.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212004#M15866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to export sas eg result into an excel on a shared drive in a windows environment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the x "scp....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code runs and no error or warning messages exist in the log however the file transfer is not taking place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest why this might be happening or any similar experience in the past.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212004#M15866</guid>
      <dc:creator>sasstar</dc:creator>
      <dc:date>2015-05-08T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas dataset into excel on a shared drive.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212005#M15867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The X statement does not echo back your OS commands.&amp;nbsp; You can use filename pipe instead.&amp;nbsp; Or do a remote desktop connection to your windows server with the same account and try your scp instruction there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 18:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212005#M15867</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-05-08T18:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas dataset into excel on a shared drive.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212006#M15868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the note what is filename pipe. Can you please provide an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 18:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212006#M15868</guid>
      <dc:creator>sasstar</dc:creator>
      <dc:date>2015-05-08T18:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas dataset into excel on a shared drive.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212007#M15869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What operating system does your SAS server use? How are you creating your Excel file in the first place - in a SAS program / process flow or from an EG menu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify so we can help you better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 23:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212007#M15869</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-05-09T23:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas dataset into excel on a shared drive.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212008#M15870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently writing my code in SAS-EG which is being operated on a Unix environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the final dataset is created I would like to export that dataset and create an excel spreadsheet onto a shared drive (Which is in windows environment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently here is the winscp I am running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;X&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;"scp /opt/sasusershome/myid/LPK_CCA_COMPARE_28JAN2015.xml myid&lt;A href="mailto:myid@cirnasnap1n1.corp.samplebank.com/LTBshare$/private/STRATEGIC SERVICES/StratS AWS/CCA_LPK_Compare/test.xml"&gt;&lt;SPAN style="color: black;"&gt;@cirnasnap1n1.corp.samplebank.com/LTBshare$/private/STRATEGIC SERVICES/StratS AWS/CCA_LPK_Compare/test.xml&lt;/SPAN&gt;&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;The log is running and not generating any error messages but no file is being written.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;Can you please help troubleshoot and let me know if there is any error in my syntax or any other reasons as to why it not happening.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212008#M15870</guid>
      <dc:creator>sasstar</dc:creator>
      <dc:date>2015-05-11T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas dataset into excel on a shared drive.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212009#M15871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To fetch the output of an external command to the SAS log, use the following method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename oscmd pipe "your command 2&amp;gt;&amp;amp;1"; * 2&amp;gt;&amp;amp;1 redirects stderr to stdout, so no messages are lost;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile oscmd;&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually the target for scp looks like userid@hostname:path_to_target_file. Note the colon.&lt;/P&gt;&lt;P&gt;I also see a blank in your target path name. I'd rather avoid directory names with blanks, as they force you to use additional (single) quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 07:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-sas-dataset-into-excel-on-a-shared-drive/m-p/212009#M15871</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-05-12T07:05:21Z</dc:date>
    </item>
  </channel>
</rss>

