<?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: SAS Management Console - how to extract a report for audit? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805151#M24122</link>
    <description>&lt;P&gt;I added the date by changing the flow data step to pull MetadataCreated as "flow_create" and then convert it to flow_create_num:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create table of flow IDs and Names */
data flows (keep=flow_id flow_name flow_create_num);
  length type id flow_uri  $ 50 flow_name $ 255 flow_id $ 17 flow_create $ 18 flow_create_num 8;
  format flow_create_num datetime18.;
  call missing(of _character_);
  flow_obj="omsobj:JFJob?@PublicType='DeployedFlow'";
  flowcount=metadata_resolve(flow_obj,type,id);
  put "NOTE: Found " flowcount "flows.";
  if flowcount ge 1 then do i=1 to flowcount;
    rc=metadata_getnobj(flow_obj,i,flow_uri);
    rc=metadata_getattr(flow_uri,"Name",flow_name);
    rc=metadata_getattr(flow_uri,"Id",flow_id);
	rc=metadata_getattr(flow_uri,"MetadataCreated",flow_create);
	flow_create_num=input(flow_create,datetime18.);
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Mar 2022 21:15:43 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2022-03-30T21:15:43Z</dc:date>
    <item>
      <title>SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805128#M24120</link>
      <description>&lt;P&gt;The "Search" tab of SMC has a nice search function to find all "Deployed Flows" for the current year, which is great for our internal audit purposes.&amp;nbsp; It lists each flow name, type, Last Modified date, and location.&amp;nbsp; The problem is there is no way to right-click-copy the list to Excel or to export this list.&amp;nbsp; We tried exporting to a package - an spk file - which gives a log at the end, but the log does not have all bits of information - it only has flow names.&amp;nbsp; How can we get the data from the search functionality OUT of SMC and into Excel for our auditors?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 18:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805128#M24120</guid>
      <dc:creator>Bruno7</dc:creator>
      <dc:date>2022-03-30T18:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805137#M24121</link>
      <description>You could use Metadata DATA Step functions to pull attributes on any flows created within a given date range. This program pulls information on flows and their associated jobs, though it doesn't pull when they were created/modified, it could be modified to do so.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/greg-wootton/sas-programs/blob/main/Scheduling/get_job_and_flow.sas" target="_blank"&gt;https://github.com/greg-wootton/sas-programs/blob/main/Scheduling/get_job_and_flow.sas&lt;/A&gt;</description>
      <pubDate>Wed, 30 Mar 2022 20:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805137#M24121</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-03-30T20:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805151#M24122</link>
      <description>&lt;P&gt;I added the date by changing the flow data step to pull MetadataCreated as "flow_create" and then convert it to flow_create_num:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create table of flow IDs and Names */
data flows (keep=flow_id flow_name flow_create_num);
  length type id flow_uri  $ 50 flow_name $ 255 flow_id $ 17 flow_create $ 18 flow_create_num 8;
  format flow_create_num datetime18.;
  call missing(of _character_);
  flow_obj="omsobj:JFJob?@PublicType='DeployedFlow'";
  flowcount=metadata_resolve(flow_obj,type,id);
  put "NOTE: Found " flowcount "flows.";
  if flowcount ge 1 then do i=1 to flowcount;
    rc=metadata_getnobj(flow_obj,i,flow_uri);
    rc=metadata_getattr(flow_uri,"Name",flow_name);
    rc=metadata_getattr(flow_uri,"Id",flow_id);
	rc=metadata_getattr(flow_uri,"MetadataCreated",flow_create);
	flow_create_num=input(flow_create,datetime18.);
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/805151#M24122</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-03-30T21:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806371#M24156</link>
      <description>&lt;P&gt;This is fantastic!&amp;nbsp; Thank you.&amp;nbsp; &amp;nbsp;Do you know how I can obtain a listing of all possible variables I could extract?&amp;nbsp; In particular, I am looking for the flow MODIFIED date.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 18:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806371#M24156</guid>
      <dc:creator>Bruno7</dc:creator>
      <dc:date>2022-04-06T18:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806374#M24157</link>
      <description>The Metadata Model is described in this documentation:&lt;BR /&gt;&lt;BR /&gt;SAS® 9.4 Metadata Model: Reference&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#titlepage.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#titlepage.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The modified date attribute is called MetadataUpdated. &lt;BR /&gt;&lt;BR /&gt;The documentation page for the JFJob type is here (flows are a JFJob type):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#jfjob.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/omamodref/67417/HTML/default/viewer.htm#jfjob.htm&lt;/A&gt;</description>
      <pubDate>Wed, 06 Apr 2022 18:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806374#M24157</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-04-06T18:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806377#M24158</link>
      <description>&lt;P&gt;Bravo!&amp;nbsp; Thank you so much.&amp;nbsp; Being able to query metadata means less manual work for my team In complying with our internal auditors.&amp;nbsp; This information is GOLD.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 18:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806377#M24158</guid>
      <dc:creator>Bruno7</dc:creator>
      <dc:date>2022-04-06T18:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806445#M24159</link>
      <description>I also find the Metadata Browser in a full SAS session (from the menus, Solutions&amp;gt;Accessories&amp;gt;Metadata Browser) invaluable to work out associations between objects when writing a data step query.</description>
      <pubDate>Thu, 07 Apr 2022 08:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806445#M24159</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2022-04-07T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806938#M24162</link>
      <description>&lt;P&gt;Does anyone know if there is a way to find orphaned jobs?&amp;nbsp; As in jobs that are set up in DI Studio, but are not a part of any Flow in SAS Management Console?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2022 16:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/806938#M24162</guid>
      <dc:creator>Bruno7</dc:creator>
      <dc:date>2022-04-09T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/807150#M24167</link>
      <description>Something like this?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/greg-wootton/sas-programs/blob/main/Scheduling/get_deployed_jobs_no_flow.sas" target="_blank"&gt;https://github.com/greg-wootton/sas-programs/blob/main/Scheduling/get_deployed_jobs_no_flow.sas&lt;/A&gt;</description>
      <pubDate>Mon, 11 Apr 2022 12:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/807150#M24167</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-04-11T12:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console - how to extract a report for audit?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/807158#M24170</link>
      <description>YES!!!! EXACTLY LIKE THIS!!! Thank you so much!! WONDERFUL!</description>
      <pubDate>Mon, 11 Apr 2022 13:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Management-Console-how-to-extract-a-report-for-audit/m-p/807158#M24170</guid>
      <dc:creator>Bruno7</dc:creator>
      <dc:date>2022-04-11T13:28:39Z</dc:date>
    </item>
  </channel>
</rss>

