Resources

Using the OUTSELECT=ON Option to View Key Selection Variables

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

                    SAS Sample Library

        Name: havex11.sas
 Description: Example program from SAS/ETS User's Guide,
              The SASEHAVR Interface Engine
    Title: Using the OUTSELECT=ON Option to View Key Selection Variables
  Product: SAS/ETS Software
     Keys: SASEHAVR
    Procs:
    Notes: Read this before you run this sample.
           The database resides in the ets/sasmisc folder. You
           must copy the database to a writeable folder before
           using it. Then define your Windows system environment
           variable, HAVER_DATA, to the path of your
           writeable folder containing
           the haverd.dat and haverd.idx files (Haver database files).
           To assign a fileref to the external file to be processed,
           use the following form of the libname statement:

Libname lib1 sasehavr "%sysget(HAVER_DATA)"
        outselect=on ;
----------------------------------------------------------------*/


Libname lib1 sasehavr "%sysget(HAVER_DATA)"
        outselect=on ;

data validD1;
   set lib1.haverd;
run;

title1 'OUTSELECT=ON, Print the OUT= Data Set';
title2 'Shows the Values for Key Selection Variables:';
title3 'Name, Source, Geog1, Geog2, Shortsrc, Longsrc';
title4 'OUTSELECT=ON, the CONTENTS Procedure with Variable Names and Labels';
proc print data=validD1;
run;

proc contents data=validD1;
run;