<?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: Dataset overriding caused error when running thru Unix command in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530333#M145001</link>
    <description>&lt;P&gt;Hello Brem,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input , but I am already using ods html and also closed the it and the end as mentioned in below code. still I am not getting an error. Please help me to get rid of it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro send_email;
        %if &amp;amp;send_email eq 1 and &amp;amp;send_emailuat eq 1 %then
                %do;
                        FILENAME MailBox EMAIL

                                TO=(
                                'Myself&amp;lt;XX.com&amp;gt;'



     ods html3 text = "Have a Great Day!";
                        ods html3 text = "Regards,";
                        ods html3 text = "ARun";
                        &lt;STRONG&gt;ods html3 close;&lt;/STRONG&gt;
                        run;
                        title;
                %end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 26 Jan 2019 17:09:22 GMT</pubDate>
    <dc:creator>arunrami</dc:creator>
    <dc:date>2019-01-26T17:09:22Z</dc:date>
    <item>
      <title>Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530021#M144910</link>
      <description>&lt;P&gt;Dear SASians,&lt;/P&gt;&lt;P&gt;Below is the part of code which I am using to create data set out of created report. Its working well and good in SAS EG(Unix platform). If I run the same code via unix command or shell script, I am getting below mentioned error which states some column width error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one explain why is it working fine in SAS EG(in adhoc run) and not working&amp;nbsp; fine when running thru Unix command??&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Log :

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 1 observations read from the data set WORK.MAIL.
WARNING: The data set X.EXISTING may be incomplete.  When this step was stopped there were 1 observations and 12 variables.
WARNING: Data set X.EXISTING was not replaced because this step was stopped.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds



ERROR: The width of ZP_FL_NM is not between 1 and 132. Adjust the column width or line size.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	Code:		PROC REPORT DATA=work.MAIL nowd HEADLINE HEADSKIP out=X.Existing
				style (report) = {background = white
				font_face = "Verdana" font_size = 7pt just=left bordercolor=grey rules=All frame=box}
				style (column) = {background = white CELLHEIGHT = 2.5%
		&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 11:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530021#M144910</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-01-25T11:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530027#M144912</link>
      <description>&lt;P&gt;ODS has a different default destination when programs are run from the commandline opposed to in a workspace server (EG).&lt;/P&gt;
&lt;P&gt;In batch, there's always ODS LISTING open, which has certain limits (especially linesize) not present in ODS TAGSETS.SASREPORT13 (the default in EG).&lt;/P&gt;
&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in your programs to prevent attempted output to the LISTING destination, and then set up your preferred destination (HTML, PDF, ...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 12:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530027#M144912</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-25T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530333#M145001</link>
      <description>&lt;P&gt;Hello Brem,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input , but I am already using ods html and also closed the it and the end as mentioned in below code. still I am not getting an error. Please help me to get rid of it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro send_email;
        %if &amp;amp;send_email eq 1 and &amp;amp;send_emailuat eq 1 %then
                %do;
                        FILENAME MailBox EMAIL

                                TO=(
                                'Myself&amp;lt;XX.com&amp;gt;'



     ods html3 text = "Have a Great Day!";
                        ods html3 text = "Regards,";
                        ods html3 text = "ARun";
                        &lt;STRONG&gt;ods html3 close;&lt;/STRONG&gt;
                        run;
                        title;
                %end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Jan 2019 17:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530333#M145001</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-01-26T17:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530346#M145005</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200330"&gt;@arunrami&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Brem,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.... still I am not getting an error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, then everything's fine, isn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 19:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530346#M145005</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-26T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530347#M145006</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200330"&gt;@arunrami&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Brem,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.... still I am not getting an error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, then everything's fine, isn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 19:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530347#M145006</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-26T19:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530348#M145007</link>
      <description>Oops &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;, sorry it was typo..still i am getting same error..&lt;BR /&gt;&lt;BR /&gt;Plz help !</description>
      <pubDate>Sat, 26 Jan 2019 19:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530348#M145007</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-01-26T19:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530350#M145008</link>
      <description>&lt;P&gt;Please post the&amp;nbsp;&lt;EM&gt;whole&lt;/EM&gt; log of the failing step.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 19:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530350#M145008</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-26T19:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530560#M145113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the step of log where I am getting error and its relevant code . Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Code:

                             PROC REPORT DATA=work.MAIL nowd HEADLINE HEADSKIP out=X.Existing
314                                     style (report) = {background = white
315                                     font_face = "Verdana" font_size = 7pt just=left bordercolor=grey rules=All frame=box}
316                                     style (column) = {background = white CELLHEIGHT = 2.5%
317                                     font_face = "Verdana" font_size = 7pt just=left }
318                                     style (header) = {foreground = cx5e2750 font_face="Verdana"
319                                     font_size = 8pt just=left
320                                     };
321                                     columns zp_fl_nm File_Size dlvry_id start_time end_time duration Trigger_File Load_Stats
322                                             Stats_Report DQ_Report start_time1;
323                                     define zp_fl_nm/display 'PROD_File_Name';&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Logs :


ERROR: The width of ZP_FL_NM is not between 1 and 132. Adjust the column width or line size.
^L14                                                         The SAS System                     Saturday, January 26, 2019 06:00:00 PM

NOTE: This affects LISTING output.

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 1 observations read from the data set WORK.MAIL.
WARNING: The data set X.EXISTING may be incomplete.  When this step was stopped there were 1 observations and 12 variables.
WARNING: Data set X.EXISTING was not replaced because this step was stopped.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           0.04 seconds
      cpu time            0.05 seconds&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 08:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530560#M145113</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-01-28T08:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530569#M145117</link>
      <description>&lt;P&gt;As you can see by this NOTE:&lt;/P&gt;
&lt;PRE&gt;NOTE: This affects LISTING output.&lt;/PRE&gt;
&lt;P&gt;you DO have the listing destination open. Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to close it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 09:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530569#M145117</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-28T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset overriding caused error when running thru Unix command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530583#M145124</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; . It works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I misplaced ODS close so that it wasnt working before&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-overriding-caused-error-when-running-thru-Unix-command/m-p/530583#M145124</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-01-28T11:00:43Z</dc:date>
    </item>
  </channel>
</rss>

