Sas Error - Missing Numeric Suffix?

View All Questions

Ask a New Question

  Posted by Guest - Sas Error - Missing Numeric Suffix? :
What is this error in the SAS program code below?  I can't get past it but it keeps asking about a numeric suffix which makes no sense.

1             OPTIONS NOCENTER LINESIZE=MAX;                                  
2             DATA FILOTHR;                                                    
3                INFILE INOTHR;                                                
4                INPUT @1   NAME-FIRST           $25.                          
ERROR: Missing numeric suffix on a numbered variable list (NAME-FIRST).        
ERROR: Missing numeric suffix on a numbered variable list (NAME-FIRST).        
ERROR: Missing numeric suffix on a numbered variable list (NAME-FIRST).        
5                      @28  NAME-LAST            $25.                          
ERROR: Missing numeric suffix on a numbered variable list (NAME-LAST).        
ERROR: Missing numeric suffix on a numbered variable list (NAME-LAST).        
ERROR: Missing numeric suffix on a numbered variable list (NAME-LAST).        
6                      @58  ADDRESS-1            $75.                          
                                    _            ____                          
                                    _            ____                          
                                    _            ____                          
                                    22           200                          
                                    22           200                          
                                    22           200                          
ERROR 22-322: Syntax error, expecting one of the following: a name, -, CHAR, CH
ERROR 22-322: Syntax error, expecting one of the following: a name, -, CHAR, CH
ERROR 22-322: Syntax error, expecting one of the following: a name, -, CHAR, CH

Guest Says:
SAS doesn't allow any hyphens in your field variables, so its giving you error messages on it.  Just change your sas names there to underscores or remove the hyphens and the errors will go away.

Guest Says:
Thanks

Guest Says:
SAS really needs to upgrade their error message to say something that makes sense.  Why not just actually say "hyphen or underscore" not allowed here?   lol, instead sas throws a cryptic message out that everyone has to go searching for.

Guest Says:
SAS is a great language to work with on flat files but yeah I agree that the sas error messsages arent the easiest to figure out.


Add your reply below ...



This site allows you to ask questions and get answers from various posters. You may also answer any posts if you feel like you have input to give. Feel free to ask for help with any new question you wish, but most of the questions here are tech related. You will find many questions and answers related to your Ipod or Ipod Nano, Itunes, audio and video converting, spyware or adware cleanup, pc or other computer questions, and even mainframe questions. Although these are the tech questions most often asked, you will find help on almost any computer or software related subject. Feel free to go to the main menu and review the posts already present, or feel free to ask your own question. (Some questions will be closed once the moderator feels they are sufficiently answered and that no other input is needed).

See All Tips        Iphone Apps


Your Name:

Your Reply:

Type in verification code:


Forum - Front Page

Spyware/Task Database

Computer Tips (Main Page)