<?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 Create a CSV file with ODS issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727354#M226203</link>
    <description>&lt;P&gt;All,&lt;/P&gt;
&lt;DIV&gt;I have created a job which creates a CSV which runs as SAS job in DI. The issue that I am facing is that when I run the DI job manually , the file gets populated correctly, however now I have put the job in the scheduler the file doesnt get populated correctly. Is there anything that I am doing wrong&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ods csv file="ODS_CSV.csv";
     proc print data=sashelp.class;
	     title "&amp;amp;sysver";
		 footnote "&amp;amp;sysdate";
     run;
   ods csv close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Mar 2021 10:45:30 GMT</pubDate>
    <dc:creator>sathya66</dc:creator>
    <dc:date>2021-03-18T10:45:30Z</dc:date>
    <item>
      <title>Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727354#M226203</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;DIV&gt;I have created a job which creates a CSV which runs as SAS job in DI. The issue that I am facing is that when I run the DI job manually , the file gets populated correctly, however now I have put the job in the scheduler the file doesnt get populated correctly. Is there anything that I am doing wrong&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ods csv file="ODS_CSV.csv";
     proc print data=sashelp.class;
	     title "&amp;amp;sysver";
		 footnote "&amp;amp;sysdate";
     run;
   ods csv close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 10:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727354#M226203</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-03-18T10:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727356#M226204</link>
      <description>&lt;P&gt;What do you mean by "not correctly populated"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And why so complicated? A simple PROC EXPORT does the same (minus the observation numbers), and will perform better.&lt;/P&gt;
&lt;P&gt;And I suspect there is a dedicated export task in DI Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, look at the log of the job that did not work as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 10:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727356#M226204</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-18T10:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727364#M226207</link>
      <description>Yes, I used PROC EXPORT insated of ods csv . this is a user written code and not using proper DI.&lt;BR /&gt;its just not exporting the CSV file.&lt;BR /&gt;which one is best? is it PROC EXPORT or ODS CSV?</description>
      <pubDate>Thu, 18 Mar 2021 11:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727364#M226207</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-03-18T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727369#M226210</link>
      <description>&lt;P&gt;Since PROC EXPORT creates a data step and runs it, it will outperform ODS CSV, by orders of magnitude once the size of the data grows.&lt;/P&gt;
&lt;P&gt;And if you have an export task available in DI Studio, it is recommended to use that. The less user-written code, the easier to work with (if you are a DI user, which I am not).&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 12:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727369#M226210</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-18T12:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727428#M226241</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes, I used PROC EXPORT insated of ods csv . this is a user written code and not using proper DI.&lt;BR /&gt;its just not exporting the CSV file.&lt;BR /&gt;which one is best? is it PROC EXPORT or ODS CSV?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What exactly does the LOG show from that part of the job?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727428#M226241</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-18T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727449#M226250</link>
      <description>It is executing fine without errors but not saving the file on the server. its strange.</description>
      <pubDate>Thu, 18 Mar 2021 15:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727449#M226250</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2021-03-18T15:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727455#M226255</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I suggest you give the full path in the statement&amp;nbsp; &lt;FONT color="#FF0000"&gt;ods csv file="/full_path_here/ODS_CSV.csv";&lt;BR /&gt;&lt;FONT color="#000000"&gt;Please check your DI job settings.&lt;BR /&gt;Please share your outcome&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727455#M226255</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-18T15:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a CSV file with ODS issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727481#M226275</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93352"&gt;@sathya66&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It is executing fine without errors but not saving the file on the server. its strange.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The log should show exactly where the file was written. The log after the ODS CLOSE should show something like&lt;/P&gt;
&lt;PRE&gt;NOTE: Writing CSV file: X:\&amp;lt;path information&amp;gt;\&amp;lt;filename.csv&amp;gt;&lt;/PRE&gt;
&lt;P&gt;as appropriate for your operating system and code&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-CSV-file-with-ODS-issue/m-p/727481#M226275</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-18T17:17:47Z</dc:date>
    </item>
  </channel>
</rss>

