<?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: Analyze Datasets in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25480#M1327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Cool tool.&amp;nbsp; I can explicitly run analyze, but I only want to run from the dataset level, and the only option is to itemize every fc, so if I have 100 feature datasets with 20 feature classes in most of the fd, that is a lot of selecting, especially at the last minute that I don't want to analyze 1 specific FD with its 40 sub layers.&amp;nbsp; This change would need to be un selected manually.&amp;nbsp; Seems like I should have the capability to just analyze at the FD level, too.&amp;nbsp; Do like the idea though, at least 1 script will need to be reworked.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Analyze Datasets and Rebuild Indexes tools give you a list of all the data that the currently connected user owns. You are correct that we do not provide an option to just analyze a single feature dataset. If you are using the tool through the UI you will need to manually unselect the data that you do not wish to analyze. If you are running the tool through Python you could pass in a list of only the classes in the feature datasets you wish to analyze. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The help topic that I wrote for this has an example of how to get a list of all the data in your geodatabase. You could quickly alter this script to only use a single feature dataset as the source of the datasets to analyze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the current code sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color:#008000;"&gt;# set the workspace environment&lt;/SPAN&gt;
&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# NOTE: Analyze Datasets can accept a Python list of datasets.

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# Get a list of all the datasets the user has access to.
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# First, get all the stand alone tables, feature classes and rasters.
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataList &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListTables&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListRasters&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;()
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;
# Next, for feature datasets get all of the datasets and featureclasses
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# from the list and add them to the master list.
&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color:#A31515;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#A31515;"&gt;"Feature"&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataList &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;()
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;
# reset the workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change this to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color:#008000;"&gt;# set the workspace environment&lt;/SPAN&gt;
&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# The name of your feature dataset&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;
FDS = 'NameOfYourFDS'

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# NOTE: Analyze Datasets can accept a Python list of datasets.

# Next, for feature datasets get all of the datasets and featureclasses
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# from the list and add them to the master list.
&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(FDS&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#A31515;"&gt;"Feature"&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp; dataList &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;()
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;
# reset the workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:02:12 GMT</pubDate>
    <dc:creator>RussellBrennan</dc:creator>
    <dc:date>2021-12-10T21:02:12Z</dc:date>
    <item>
      <title>Analyze Datasets</title>
      <link>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25479#M1326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cool tool.&amp;nbsp; I can explicitly run analyze, but I only want to run from the dataset level, and the only option is to itemize every fc, so if I have 100 feature datasets with 20 feature classes in most of the fd, that is a lot of selecting, especially at the last minute that I don't want to analyze 1 specific FD with its 40 sub layers.&amp;nbsp; This change would need to be un selected manually.&amp;nbsp; Seems like I should have the capability to just analyze at the FD level, too.&amp;nbsp; Do like the idea though, at least 1 script will need to be reworked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 18:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25479#M1326</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2012-01-12T18:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Datasets</title>
      <link>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25480#M1327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Cool tool.&amp;nbsp; I can explicitly run analyze, but I only want to run from the dataset level, and the only option is to itemize every fc, so if I have 100 feature datasets with 20 feature classes in most of the fd, that is a lot of selecting, especially at the last minute that I don't want to analyze 1 specific FD with its 40 sub layers.&amp;nbsp; This change would need to be un selected manually.&amp;nbsp; Seems like I should have the capability to just analyze at the FD level, too.&amp;nbsp; Do like the idea though, at least 1 script will need to be reworked.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ted, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Analyze Datasets and Rebuild Indexes tools give you a list of all the data that the currently connected user owns. You are correct that we do not provide an option to just analyze a single feature dataset. If you are using the tool through the UI you will need to manually unselect the data that you do not wish to analyze. If you are running the tool through Python you could pass in a list of only the classes in the feature datasets you wish to analyze. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The help topic that I wrote for this has an example of how to get a list of all the data in your geodatabase. You could quickly alter this script to only use a single feature dataset as the source of the datasets to analyze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the current code sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color:#008000;"&gt;# set the workspace environment&lt;/SPAN&gt;
&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# NOTE: Analyze Datasets can accept a Python list of datasets.

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# Get a list of all the datasets the user has access to.
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# First, get all the stand alone tables, feature classes and rasters.
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataList &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListTables&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListRasters&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;()
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;
# Next, for feature datasets get all of the datasets and featureclasses
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# from the list and add them to the master list.
&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color:#A31515;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#A31515;"&gt;"Feature"&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataList &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;()
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;
# reset the workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change this to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color:#008000;"&gt;# set the workspace environment&lt;/SPAN&gt;
&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# The name of your feature dataset&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;
FDS = 'NameOfYourFDS'

&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# NOTE: Analyze Datasets can accept a Python list of datasets.

# Next, for feature datasets get all of the datasets and featureclasses
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;# from the list and add them to the master list.
&lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset &lt;/SPAN&gt;&lt;SPAN style="color:#0000FF;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(FDS&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#A31515;"&gt;"Feature"&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;dataset&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp; dataList &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;()
&lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;
# reset the workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;workspace&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25480#M1327</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2021-12-10T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze Datasets</title>
      <link>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25481#M1328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Russell.&amp;nbsp; I already have a py script to loop through feature datasets, so I would conceivably just use that one for awhile after 10.1 is formally released.&amp;nbsp; However, for people just getting started in managing gdbs these are both useful tools, in that they simplify workflows.&amp;nbsp; Its too bad the actual tool does have its limits, but as end users we are always going to get maximum flexibility with python.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 17:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/analyze-datasets/m-p/25481#M1328</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2012-01-15T17:26:50Z</dc:date>
    </item>
  </channel>
</rss>

