Retrieving Information for Availability of Group INDNOs

/*----------------------------------------------------------------

                    SAS Sample Library

        Name: xcmex09.sas
 Description: Example program from SAS/ETS User's Guide,
              The SASEXCCM Interface Engine
    Title: Retrieving Information for Availability of Group INDNOs
  Product: SAS/ETS Software
     Keys: IND Data Access, CRSPAccess, ITEMLIST=, INDNO= Option
    Procs: SASEXCCM
    Notes: Read this before you run this sample.
           The CRSP US Stock and Indices database resides
           in the CRSP_DSTK folder. You
           must install your CRSP Stock database
           and define your system environment
           variable, CRSP_DSTK, to point to the physical path
           of your installed CRSP Stock database. If you define
           CRSP_DSTK=/thirdparty/crspdata/DIZ201006/,
           then you can use the following equivalent form
           of the libname statement:

libname crsp sasexccm
   "%sysget(CRSP_DSTK)"
   setid=440
   itemlist="INDNOG.*;INDCOG.*;INDNAMEG.*;GROUPNAMEG.*";

           For clarity, this example is showing the actual physical
           path to the CRSP US Stock and Indices Database. You will
           use your own physical path to your data instead of the one
           shown below.
----------------------------------------------------------------*/

title 'Retrieve Header Information for a Complete INDNO list';
libname _all_ clear;

libname crsp sasexccm
   "/thirdparty/crspdata/DIZ201006/"
   setid=440
   itemlist="INDNOG.*;INDCOG.*;INDNAMEG.*;GROUPNAMEG.*";

data dgindts_all;
   set crsp.indhdrg;
run;

proc print data=dgindts_all(keep=kyindno indnameg); run;