Accessing One PERMNO Using No RANGE

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

                    SAS Sample Library

        Name: crpex03.sas
 Description: Example program from SAS/ETS User's Guide,
              The SASECRSP Interface Engine
    Title: Accessing One PERMNO Using No RANGE
  Product: SAS/ETS Software
     Keys: Stock data access, CRSPAccess
    Procs: SASECRSP
    Notes: Read this before you run this sample.
           The CRSP database resides in the  CRSP_MSTK folder. You
           must install your CRSP monthly stock data
           and define your system environment
           variable, CRSP_MSTK, to point to the physical path
           of your installed CRSP database. Use the following
           form of the libname statement:

libname testit3 sasecrsp "%sysget(CRSP_MSTK)"
        setid=20
        permno=81871;
----------------------------------------------------------------*/

title2 'Select only PERMNO = 81871';
title3 'Valid trading dates (19890131--19981231)';
title4 'No range option, leave wide open';

libname _all_ clear;
libname testit3 sasecrsp "/r/tappan/vol/vol1/crsp1/data201212/MIZ201212/"
        setid=20
        permno=81871;

data c;
   set testit3.ask;
run;

proc print data=c;
run;