Specifying PERMCO Keys Using the INSET= Option

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

                    SAS Sample Library

        Name: crpex04b.sas
 Description: Example program from SAS/ETS User's Guide,
              The SASECRSP Interface Engine
    Title: Specifying PERMCO Keys Using the INSET= Option 
  Product: SAS/ETS Software
     Keys: CCM data access, CRSPAccess, INSET= Option, PERMCO
    Procs: SASECRSP
    Notes: Read this before you run this sample.                      
           The CRSP CCM database resides in the  CRSP_CST folder. You 
           must install your CRSP COMPUSTAT Merged data
           and define your Windows system environment  
           variable, CRSP_CST, to point to the physical path
           of your installed CRSP CCM database. Use the following
           form of the libname statement:         

libname comp2 sasecrsp "%sysget(CRSP_CST)"
        setid=200
        inset='companies,PERMCO,PERMCO'
        range='20040101-20040531';
----------------------------------------------------------------*/
data companies;
   permco=8045;  output;  /* Oracle */
   permco=20483; output;  /* Citigroup */
run;

libname comp2 sasecrsp "%sysget(CRSP_CST)"
        setid=200
        inset='companies,PERMCO,PERMCO'
        range='20040101-20040531';

title2 'Using the Link Info of Selected PERMCOs';
proc print data=comp2.link label;
run;

title3 'To Show Dividends Per Share for Oracle and Citigroup';
proc print data=comp2.div label;
run;