<?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: Creating email with a data table after a failure in Data Integration Studio 4.905 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951450#M371940</link>
    <description>&lt;P&gt;Thank you.&lt;BR /&gt;I will try this.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 08:55:12 GMT</pubDate>
    <dc:creator>HannaSinger</dc:creator>
    <dc:date>2024-11-21T08:55:12Z</dc:date>
    <item>
      <title>Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951215#M371873</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm developing a process in Data Integration Studio 4.905.&lt;BR /&gt;The goal is to get a set of transformations, where the first part is a group of loop transformations which can fail and the last transformation should send an email with the status of the failure.&lt;BR /&gt;The mail should contain a text message in the subject and a table with some data in the mail body.&lt;BR /&gt;The process doesn't work completely as it supposed to. The mail is being sent, but only the mail subject is available without the data table in the mail body.&amp;nbsp;&lt;BR /&gt;Once the process finishes and I run only the last transformation, the mail is being sent completely together with the data table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The data table is printed by means of &lt;STRONG&gt;proc print&lt;/STRONG&gt;.&lt;BR /&gt;I can see in the log that in case that all transformations are running together, the proc print doesn't deliver any observation, but once the last transformation runs alone, the observations are being read.&lt;BR /&gt;Any advice, how can I get the proc print delivering all the observations when all transformations are running?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the meantime, I found a workaround. I’m selecting all values of the relevant column in the data table separated by comma &amp;nbsp;into a macro variable and using this macro variable withing &lt;STRONG&gt;proc odstext&lt;/STRONG&gt; for mail creation. It works, but the solution is not very satisfying.&lt;BR /&gt;&lt;BR /&gt;Thank in advance for any idea.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 13:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951215#M371873</guid>
      <dc:creator>HannaSinger</dc:creator>
      <dc:date>2024-11-19T13:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951271#M371885</link>
      <description>&lt;P&gt;I don't really understand how your process/flow looks like but based on your description it sounds like a timing issue. Make sure that your error check/send email step is outside of the loop (especially when running in parallel).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 21:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951271#M371885</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-11-19T21:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951296#M371892</link>
      <description>&lt;P&gt;Thanks Patrick for your reply.&lt;BR /&gt;Yes, the send mail step is outside of the loop and the process is running sequentially.&lt;BR /&gt;The issue is:&lt;BR /&gt;When there is no error in the loop' everything is fine and the email contains the subject and the data table in the mail body,&lt;BR /&gt;but once there is an error in the loop the email is not complete - it contains the subject but doesn't contain the data table. I noticed that it happens because of the proc print which is printing the table and doesn't retrieve any observations in case of a failure in the loop&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 05:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951296#M371892</guid>
      <dc:creator>HannaSinger</dc:creator>
      <dc:date>2024-11-20T05:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951297#M371893</link>
      <description>&lt;P&gt;Se eaprt of the log (the error and then the email/proint) might help us to understand.&lt;/P&gt;
&lt;P&gt;A guess, some errors make SAS go into syntax check mode, and sets obs=0.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 07:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951297#M371893</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-11-20T07:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951307#M371896</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;Yes, indeed. There is a NOTE OBS=0, enabling syntax check mode&lt;BR /&gt;in the log with the failure.&lt;BR /&gt;Because of the custom data I cannot send the whole log.&lt;BR /&gt;Is there a possibility to force the system not to get to the syntax check mode in the specific run?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 11:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951307#M371896</guid>
      <dc:creator>HannaSinger</dc:creator>
      <dc:date>2024-11-20T11:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951318#M371899</link>
      <description>&lt;P&gt;I’d ask what’s causing this error in first place. Ideally you’ve got some error handling in your job so it doesn’t go into syntax check mode.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If an error situation doesn’t cause this table to not even get populated then you could of course also set options obs=max for the portion of your code where you create and send the email using some code along the line of below (not tested, but syntax will be at least close to working).&lt;/P&gt;
&lt;PRE&gt;%let sv_obs=%sysfunc(getoption(obs,keyword));
Options obs=max;
/* here your code for the email */
Options &amp;amp;sv_obs;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Nov 2024 12:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951318#M371899</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-11-20T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951450#M371940</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;I will try this.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 08:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951450#M371940</guid>
      <dc:creator>HannaSinger</dc:creator>
      <dc:date>2024-11-21T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951719#M372007</link>
      <description>&lt;P&gt;Unfortunately, It didn't work.&lt;BR /&gt;So for now I will stay with the workaround, using the proc odstext&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2024 11:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951719#M372007</guid>
      <dc:creator>HannaSinger</dc:creator>
      <dc:date>2024-11-24T11:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating email with a data table after a failure in Data Integration Studio 4.905</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951739#M372013</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/430757"&gt;@HannaSinger&lt;/a&gt;&amp;nbsp;If confidentiality allows share the whole DIS generated code as attachment.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2024 21:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-email-with-a-data-table-after-a-failure-in-Data/m-p/951739#M372013</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-11-24T21:48:08Z</dc:date>
    </item>
  </channel>
</rss>

