Newsgroups: bit.listserv.sas-l
Date:         Fri, 16 Oct 1992 10:14:58 EDT
Reply-To:     David Hopkins <DHOPKINS@ERS.BITNET>
From:         David Hopkins <DHOPKINS@ERS.BITNET>
Subject:      Invisible Vars in a KEEP = List

Good Morning SASperts,

I am having a hard time getting a SAS SET statement with a (KEEP = list
to find a variable that I want to keep.  What am I doing wrong?  I am
using the double dash convention, " -- ", for a list of variables.  Is this
the problem?

We have SAS 6.07 on MVS/ESA IBM 3090 computer.


--David Hopkins, DHOPKINS@ERS.BITNET

SAS listing below

------------------------------------------------------------------------

11                                                          The SAS System

 NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA.
 NOTE: SAS (r) Proprietary Software Release 6.07  TS301
       Licensed to USDA, NATIONAL COMPUTER CENTER AT KANSAS CITY, Site 000353600


  Welcome to the SAS System, Release 6.07.


 NOTE: The initialization phase used 0.10 CPU seconds and 1859K.
 1          ********************************************************************
 2           *** OPTIONS  MPRINT MLOGIC MERROR SYMBOLGEN  ;
 3
 4          ********************************************************************
 5
 6           LIBNAME OUTDISKA V5   ;
 NOTE: Libref OUTDISKA was successfully assigned as follows:
       Engine:        V5
       Physical Name: SYS92290.T083814.RA000.ERS7DHSS.TEMPA
 7           LIBNAME OUTDISKB V5   ;
 NOTE: Libref OUTDISKB was successfully assigned as follows:
       Engine:        V5
       Physical Name: SYS92290.T083814.RA000.ERS7DHSS.TEMPB
 8
 9          ********************************************************************
 10
 11          PROC CONTENTS  DATA = INDATA._ALL_  POSITION ;
 12         RUN;

 NOTE: The PROCEDURE CONTENTS used 0.61 CPU seconds and 3340K.
 NOTE: The PROCEDURE CONTENTS printed pages 1-132.

 13
 14
 15          DATA INDISKA.DISKA ;
 16               SET INDATA.STF3AUN (KEEP = FIPSCD -- P087_35) ;
 ERROR: Starting variable FIPSCD of double-dash list does not exist, but ending
+ERROR: Starting variable FIPSCD of double-dash list does not exist, but ending
+ERROR: Starting variable FIPSCD of double-dash list does not exist, but ending
 17         RUN;

 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: SAS set option OBS=0 and will continue to check statements. This may caus
 WARNING: The data set INDISKA.DISKA may be incomplete.  When this step was stop
12                                                          The SAS System

 NOTE: The DATA statement used 0.06 CPU seconds and 3597K.


**********************************************************************
    some lines cut out
**********************************************************************


 31

 ERROR: Errors printed on page 1.
+ERROR: Errors printed on page 1.
+ERROR: Errors printed on page 1.

 NOTE: The SAS session used 1.08 CPU seconds and 3640K.
 NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
1                                                           The SAS System

                                                          CONTENTS PROCEDURE

                                                         -----Directory-----

                                Libref:                  INDATA
                                Engine:                  V607
                                Physical Name:           ERS319.ER7XX.CENS1990.S
                                Unit:                    DISK
                                Volume:                  PERLQL
                                Disposition:             SHR
                                Device:                  3390
                                Blocksize:               27648
                                Blocks per Track:        2
                                Total Library Blocks:    6700
                                Total Used Blocks:       6448
                                Total Free Blocks:       252
                                Highest Used Block:      6448
                                Highest Formatted Block: 6448
                                Members:                 1

                                                     #  Name     Memtype  Indexe
                                                     ---------------------------
                                                     1  STF3AUN  DATA
1                                                           The SAS System

                                                          CONTENTS PROCEDURE

                         Data Set Name: INDATA.STF3AUN
                         Member Type:   DATA
                         Engine:        V607
                         Created:       13:58 Thursday, October 15, 1992
                         Last Modified: 13:58 Thursday, October 15, 1992
                         Protection:
                         Data Set Type:
                         Label:

                                             -----Engine/Host Dependent Informat

                                Data Set Page Size:       55296
                                Number of Data Set Pages: 3149
                                File Format:              607
                                First Data Page:          9
                                Max Obs per Page:         1
                                Obs in First Data Page:   1
                                Physical Name:            ERS319.ER7XX.CENS1990.
                                Release Created:          6.07
                                Release Last Modified:    6.07
                                Created by:               ERS7DHSS
                                Last Modified by:         ERS7DHSS
                                Subextents:               1
                                Total Blocks Used:        6298

                                         -----Alphabetic List of Variables and A

                                                  #    Variable    Type    Len
                                               ---------------------------------
                                                 13    AIANACC     Char      2
                                                 11    AIANACE     Char      4
                                                 12    AIANAFP     Char      5
                                                 59    ANPSADPI    Char     40
                                                 10    ANRC        Char      2
                                                 57    AREALAND    Char     10
                                                 58    AREAWAT     Char     10
                                                 14    ARTLI       Char      1
                                                 15    BLCK        Char      4
                                                 16    BLCKGR      Char      1
                                                  6    CHARITER    Char      3
                                                 23    CMSA        Char      2
                                                 24    CNTY        Char      3
                                                 25    CNTYSC      Char      2
                                                 21    CONCITCC    Char      2
                                                 19    CONCITCE    Char      1
                                                 20    CONCITFP    Char      5
                                                 22    CONCITSC    Char      2
                                                 18    CONGDIS     Char      2
                                                 28    COUSUBCC    Char      2
                                                 26    COUSUBCE    Char      3
                                                 27    COUSUBFP    Char      5
                                                 29    COUSUBSC    Char      2
                                                 30    DIVIS       Char      1
                                                 31    EXTCITIN    Char      1
                                                  2    FILEID      Char      8
                                                916    FILLER1     Char      2
1                                                           The SAS System

                                                          CONTENTS PROCEDURE

                                                  #    Variable    Type    Len
                                               ---------------------------------
                                               1768    FILLER2     Char      8
                                               2604    FILLER3     Char      8
                                               3449    FILLER4     Char     35
      NOTE:  Variable is found here ====>         1    FIPSCD      Num       8
                                                 60    FUNCSTAT    Char      1
                                                 61    GCUNI       Char      1
                                                  5    GEOCOMP     Char      2
                                                917    GEOINF2A    Char     30
                                                918    GEOINF2B    Char     30
                                                919    GEOINF2C    Char     30
                                                920    GEOINF2D    Char     30
                                                921    GEOINF2E    Char     30
                                                922    GEOINF2F    Char     30
                                                923    GEOINF2G    Char     30
                                                924    GEOINF2H    Char     30
                                                925    GEOINF2I    Char     30
                                                926    GEOINF2J    Char     30
                                               1769    GEOINF3A    Char     30
                                               1770    GEOINF3B    Char     30
                                               1771    GEOINF3C    Char     30
                                               1772    GEOINF3D    Char     30
************************************************************************
 lots of lines cut out

************************************************************************

1                                                           The SAS System

                                                          CONTENTS PROCEDURE

                                                  #    Variable    Type    Len
                                               ---------------------------------
                                               3342    STRH6301    Char     15
                                               3343    STRH6302    Char     15
                                               3344    STRH6303    Char     15
                                                  3    STUSAB      Char      2
                                                  4    SUMLEV      Char      3
                                                 17    TRACTBNA    Char      6
                                                 46    UASC        Char      2
                                                 44    URBANRUR    Char      1
                                                 45    URBAREA     Char      4
                                               3450    X           Num       8
1                                                           The SAS System

                                                          CONTENTS PROCEDURE

                                                -----Variables Ordered by Positi

                                                  #    Variable    Type    Len
                                               ---------------------------------
     NOTE: Variable is found here too ===>        1    FIPSCD      Num       8
                                                  2    FILEID      Char      8
                                                  3    STUSAB      Char      2
                                                  4    SUMLEV      Char      3
                                                  5    GEOCOMP     Char      2
                                                  6    CHARITER    Char      3
                                                  7    LOGRECNU    Char      6
                                                  8    LOGRECPN    Char      4
                                                  9    PARTREC     Char      4
                                                 10    ANRC        Char      2
                                                 11    AIANACE     Char      4
                                                 12    AIANAFP     Char      5
                                                 13    AIANACC     Char      2
                                                 14    ARTLI       Char      1
                                                 15    BLCK        Char      4
                                                 16    BLCKGR      Char      1
                                                 17    TRACTBNA    Char      6
                                                 18    CONGDIS     Char      2
                                                 19    CONCITCE    Char      1
                                                 20    CONCITFP    Char      5
                                                 21    CONCITCC    Char      2
                                                 22    CONCITSC    Char      2
                                                 23    CMSA        Char      2
                                                 24    CNTY        Char      3
                                                 25    CNTYSC      Char      2
                                                 26    COUSUBCE    Char      3
                                                 27    COUSUBFP    Char      5
                                                 28    COUSUBCC    Char      2

+----------------------------------------------------------------------+
| David Hopkins, Programmer/Analyst| BITNET:  DHOPKINS@ERS             |
| US Department of Agriculture     | Tel:     202-219-0491             |
| Economic Research Service        | Fax:     202-219-1292             |
| Data Services Center, rm. 308    |          (ATTN: Rm 308)           |
| 1301 New York Ave., NW           |also, INTERNET: DHOPKINS@ERS.BITNET|
| Washington, DC  20005-4788       |                                   |
+----------------------------------------------------------------------+
Newsgroups: bit.listserv.sas-l