Thanks once again to Kit Baum, a new version of the descgen package is now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of descgen.

The descgen package is described as below on my website. The new version fixes a few typos in the online help, and also makes descgen a rclass command, saving a list of dataset characteristics in the result r(charlist).

Best wishes

Roger

---------------------------------------------------------------------------
package descgen from http://www.rogernewsonresources.org.uk/stata10
---------------------------------------------------------------------------

TITLE
descgen: Add Stata dataset attribute variables to a xdir resultsset

DESCRIPTION/AUTHOR(S)
descgen is intended for use in output datasets (or resultssets)
produced by the xdir package, which have one observation for each
of a list of files, and data on directory names and file names. It
inputs the file name variable and (optionally) the directory name
variable, and generates a list of new variables, containing, in
each observation, Stata dataset attributes describing the Stata
dataset stored in the corresponding file. These attributes include
numbers of variables and observations and sizes of an observation
or of the dataset, and (optionally) dataset labels, dataset
characteristics or lists of variables in the dataset. If the
corresponding file is not a Stata dataset, then these dataset
attribute variables will have missing values.

Author: Roger Newson
Distribution-Date: 22february2019
Stata-Version: 10

INSTALLATION FILES (click here to install)
descgen.ado
descgen.sthlp
---------------------------------------------------------------------------
(click here to return to the previous screen)