<?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 Calling a SAS VA distribution from SAS Enterprise Guide? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/803775#M15918</link>
    <description>&lt;P&gt;Hey guys!&lt;/P&gt;&lt;P&gt;I'll try my best to explain my current problem, maybe someone has any idea on how to approach this:&lt;/P&gt;&lt;P&gt;To make it short, I will call SAS Enterprise Guide 8.3 "SAS EG" and SAS Visual Analytics 7.4 "SAS VA".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current data flow:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SAS EG: Treats and uploads a dataset.&lt;/LI&gt;&lt;LI&gt;SAS VA: Reads that dataset, and shows a dashboard.&lt;/LI&gt;&lt;LI&gt;SAS VA: Using the integrated distribution, sends an email with the dashboard to some users.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sometimes some fields of the dataset are empty. When that happens, we would not want to send the email distribution.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Try to validate if the fields are empty on SAS VA so we don't send the distribution. &lt;U&gt;Doesn't seem possible. It just lets you change scheduling.&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;Try to migrate the SAS VA Dashboard to SAS EG, so we can easily check the empty fields and send the mail trough SAS EG. &lt;U&gt;Possible, but it would take lots of time to replicate the dashboard.&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;Try to find a physical script/file that "runs" the Visual Analytics distribution. We could validate the empty fields on SAS EG, and call that script from SAS EG. I've searched all arround the SAS folders, but I can't seem to find any actual file. I've found it on the SAS Management Console, but I can't "call" it from SAS EG.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Does anyone has any idea on how to solve this?&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 12:18:55 GMT</pubDate>
    <dc:creator>Dhernaam</dc:creator>
    <dc:date>2022-03-24T12:18:55Z</dc:date>
    <item>
      <title>Calling a SAS VA distribution from SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/803775#M15918</link>
      <description>&lt;P&gt;Hey guys!&lt;/P&gt;&lt;P&gt;I'll try my best to explain my current problem, maybe someone has any idea on how to approach this:&lt;/P&gt;&lt;P&gt;To make it short, I will call SAS Enterprise Guide 8.3 "SAS EG" and SAS Visual Analytics 7.4 "SAS VA".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current data flow:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SAS EG: Treats and uploads a dataset.&lt;/LI&gt;&lt;LI&gt;SAS VA: Reads that dataset, and shows a dashboard.&lt;/LI&gt;&lt;LI&gt;SAS VA: Using the integrated distribution, sends an email with the dashboard to some users.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sometimes some fields of the dataset are empty. When that happens, we would not want to send the email distribution.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Try to validate if the fields are empty on SAS VA so we don't send the distribution. &lt;U&gt;Doesn't seem possible. It just lets you change scheduling.&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;Try to migrate the SAS VA Dashboard to SAS EG, so we can easily check the empty fields and send the mail trough SAS EG. &lt;U&gt;Possible, but it would take lots of time to replicate the dashboard.&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;Try to find a physical script/file that "runs" the Visual Analytics distribution. We could validate the empty fields on SAS EG, and call that script from SAS EG. I've searched all arround the SAS folders, but I can't seem to find any actual file. I've found it on the SAS Management Console, but I can't "call" it from SAS EG.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Does anyone has any idea on how to solve this?&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 12:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/803775#M15918</guid>
      <dc:creator>Dhernaam</dc:creator>
      <dc:date>2022-03-24T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a SAS VA distribution from SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/804163#M15928</link>
      <description>&lt;P&gt;Since report distribution is based on time rather than event, one idea you could have is to distribute the report through SAS by email. All you'll need is the link to the report. Visual Analytics 7.4 links can be easily obtained by going to the menu, selecting "Email," and copying the link. In Visual Analytics 7.5 and later, it's under "Copy Link."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only downside to this method is that you cannot include a pdf attachment, but you can at least alert people that new valid data has been added to the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To send an email through SAS, use the email filename access method. We'll call the email code to run only when all rows are populated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Email configuration */
%let to     = email_list@company.com;  *Space-separate additional email addresses;
%let from   = no-reply@company.com;
%let report = %nrstr(REPORT LINK HERE);

/* Check number of missing rows for a column */
proc sql noprint;
    select nmiss(column)
    into :nmiss
    from have
    ;
quit;

/* Only send an email if column is not missing */
%macro sendEmail;
    %if(&amp;amp;nmiss. LE 0) %then %do;
        filename mailbox email
            to      = ("&amp;amp;to.")
            from    = "&amp;amp;from." 
            subject = "Report data has been updated"
        ;

        data _null_;
            file mailbox;

            put "New data has been added to the report.";
            put "Report URL: %superq(report)";
        run;
    %end;
%mend;
%sendEmail;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As a side note, if you go to SAS Viya, &lt;A href="https://developer.sas.com/apis/rest/Visualization/#operations-2" target="_self"&gt;you can pull images of a report through the Viya REST API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 19:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/804163#M15928</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2022-03-25T19:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a SAS VA distribution from SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/804186#M15929</link>
      <description>&lt;P&gt;It seems to me that you are using EG to regularly prepare and load data into SAS VA. How often are you doing this? Daily, weekly or some other interval?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a similar setup to you. EG 8.3 and SAS VA 7.5. We have daily and monthly jobs updating SAS VA. However we use SAS Management Console to schedule and run those regular jobs rather than using EG. Is there any reason why you don't have access to SMC? It's a far better and more reliable tool for running regular SAS jobs as all of the processing is server-based and not reliant on a PC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also there's no problem sending conditional emails as part of the data preparation as explained by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/61362"&gt;@Stu_SAS&lt;/a&gt; .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 21:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calling-a-SAS-VA-distribution-from-SAS-Enterprise-Guide/m-p/804186#M15929</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-25T21:39:14Z</dc:date>
    </item>
  </channel>
</rss>

