<?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: Exporting PS file from mainframe to excel sheet using SAS-ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-PS-file-from-mainframe-to-excel-sheet-using-SAS-ODS/m-p/988#M474</link>
    <description>It appears that you have the file created already. Since this file is created already, you can use the FTP Access method along with the data step to move the file from the mainframe to the PC. On the PC, if you give this an extension of .XLS, the file will be opened in Excel since Excel can read HTML files. Note that this does not create a native Excel formatted file. The step below reads the HTML file and write it back out to the file specified with the filename statement and the FTP access method.&lt;BR /&gt;
&lt;BR /&gt;
ods listing close; &lt;BR /&gt;
&lt;BR /&gt;
filename temp ftp 'location/xxx.xls' &lt;BR /&gt;
user='joebloe' host='hostname'                          &lt;BR /&gt;
pass='xxx'                                             &lt;BR /&gt;
recfm=v                                                   &lt;BR /&gt;
prompt debug;                                           &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
filename in "some.html.file";&lt;BR /&gt;
                                                       &lt;BR /&gt;
data _null_;&lt;BR /&gt;
  infile in ;&lt;BR /&gt;
  input;&lt;BR /&gt;
  file temp;&lt;BR /&gt;
  put _infile_;&lt;BR /&gt;
run;</description>
    <pubDate>Fri, 07 Jul 2006 15:26:03 GMT</pubDate>
    <dc:creator>Chevell_sas</dc:creator>
    <dc:date>2006-07-07T15:26:03Z</dc:date>
    <item>
      <title>Exporting PS file from mainframe to excel sheet using SAS-ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-PS-file-from-mainframe-to-excel-sheet-using-SAS-ODS/m-p/987#M473</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a ps in mainframe which has HTML file. Now i want to export it to my PC in Excel format through SAS program. Is it possible to achieve this. I am not a professional SAS programmer. Expecting a reply as early as possible.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
MS</description>
      <pubDate>Fri, 07 Jul 2006 13:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-PS-file-from-mainframe-to-excel-sheet-using-SAS-ODS/m-p/987#M473</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-07-07T13:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting PS file from mainframe to excel sheet using SAS-ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-PS-file-from-mainframe-to-excel-sheet-using-SAS-ODS/m-p/988#M474</link>
      <description>It appears that you have the file created already. Since this file is created already, you can use the FTP Access method along with the data step to move the file from the mainframe to the PC. On the PC, if you give this an extension of .XLS, the file will be opened in Excel since Excel can read HTML files. Note that this does not create a native Excel formatted file. The step below reads the HTML file and write it back out to the file specified with the filename statement and the FTP access method.&lt;BR /&gt;
&lt;BR /&gt;
ods listing close; &lt;BR /&gt;
&lt;BR /&gt;
filename temp ftp 'location/xxx.xls' &lt;BR /&gt;
user='joebloe' host='hostname'                          &lt;BR /&gt;
pass='xxx'                                             &lt;BR /&gt;
recfm=v                                                   &lt;BR /&gt;
prompt debug;                                           &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
filename in "some.html.file";&lt;BR /&gt;
                                                       &lt;BR /&gt;
data _null_;&lt;BR /&gt;
  infile in ;&lt;BR /&gt;
  input;&lt;BR /&gt;
  file temp;&lt;BR /&gt;
  put _infile_;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 07 Jul 2006 15:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-PS-file-from-mainframe-to-excel-sheet-using-SAS-ODS/m-p/988#M474</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2006-07-07T15:26:03Z</dc:date>
    </item>
  </channel>
</rss>

