Newsgroups: bit.listserv.sas-l
Date:         Mon, 9 Nov 1992 14:59:35 +0100
Reply-To:     HOLLI@FRINED51.BITNET
From:         HOLLI@FRINED51.BITNET
Subject:      thanx - simple update question

Thank you for all of you who pointed my typo of variable names PRENOM and NOM.
It was frieday afternoon and I was in hurry to go to weekend trip to Normandy
and was not just careful enough.  Anyway I cannot spell in any languages.

Also thank you for the people who gave me extra information on UPDATE.  It was
very helpful.

Now I'm testing INDEX= option in DATA set.  The variable ELEVE has sequencial
value of student ID.  The error must have some syntax
problem but I cannot find the clearer example in "SAS Technical Report P-222,
Changes ad Enhancemet to Base SAS Software, Release 6.07" p. xxv.

Can someone clearify this error message for me?  thanks very much.

Machiko Hollifield
l'Institut National D'Etudes Demographique
Paris


------------this is the list of contents----------------------------------------
1The SAS System
                                                    1

                       14:40 Monday, November 9, 1992

 CONTENTS PROCEDURE

 Data Set Name: MATIERE.PROMO                             Observations:
191
 Member Type:   DATA                                      Variables:
6
 Engine:        V607                                      Indexes:
0
 Created:       14:22 Thursday, November 5, 1992          Observation Length:
50
 Last Modified: 11:44 Monday, November 9, 1992            Deleted Observations:
0
 Protection:                                              Compressed:
NO
 Data Set Type:                                           Sorted:
NO
 Label:


 -----Engine/Host Dependent Information-----

 Data Set Page Size:       8192
 Number of Data Set Pages: 2
 File Format:              607
 First Data Page:          1
 Max Obs per Page:         163
 Obs in First Data Page:   141
 Filename:                 VOLNAY$DUA1:[BRINGE.FORMSAS]PROMO.SASEB$DATA
 Disk Blocks Allocated:    34

 -----Alphabetic List of Variables and Attributes-----

 #    Variable    Type    Len    Pos
 -----------------------------------
 1    AGE         Num       8      0
 2    ELEVE       Num       8      8
 6    GROUPE      Char      3     47
 4    NOM         Char     15     31
 3    PRENOM      Char     15     16
 5    SEXE        Char      1     46
11                                                          The SAS System
                       14:40 Monday, November 9, 1992

--------------------this is what I tried and error msg--------------------------

 1          option nocenter;
 2
*******************************************************************************
 3          *  Example Program for Modify
 4
*******************************************************************************;
 5
 6          libname matiere 'disk3:[bringe.formsas]';
 NOTE: Libref MATIERE was successfully assigned as follows:
       Engine:        V607
       Physical Name: VOLNAY$DUA1:[BRINGE.FORMSAS]
 7          libname transact 'disk5:[hollifield.course]';
 NOTE: Libref TRANSACT was successfully assigned as follows:
       Engine:        V607
       Physical Name: BARSAC$DUB1:[HOLLIFIELD.COURSE]
 8          proc contents data=matiere.promo;

 NOTE: The PROCEDURE CONTENTS printed page 1.

 9          data promo(index=eleve); set matiere.promo;
+                            _____
+                            _____
+                            _____
                             23
+                            23
+                            23
 10         endsas;

 ERROR 23-7: Invalid value for the INDEX option.
+ERROR 23-7: Invalid value for the INDEX option.
+ERROR 23-7: Invalid value for the INDEX option.

 NOTE: The SAS System stopped processing this step because of errors.

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

 NOTE: SAS Institute S.A., Boite Postale 5, 77166 Gregy-Sur-Yerres
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU