ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER. ???

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 128
Accepted Solution

ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER. ???

1          ********************************************************************;
2            OPTIONS NODATE LS=132 OBS=MAX SORT=2430 SORTPGM=BEST               
3                    PS=59 NOBYLINE YEARCUTOFF=1920;                            
4                                                                               5               **IMPORT RECOUPEMENTPROJECT EXCEL FILE**                        
6                DATA PROJECT1;                                                 
7                  INFILE PROJECT1 DLM=',' DSD FIRSTOBS=2;                      
                   ______                                                       
                   ______                                                       
                   ______                                                       
                   180                                                          
                   180                                                          
                   180                                                          
2                                                          THE SAS SYSTEM       
                                                                                
                                                                                
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.        
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.        
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.        
                                                                                
8                    INPUT FINARR      $2.                                      
                     _____                                                      
                     _____                                                      
                     _____                                                      
                     180                                                        
                     180                                                        
                     180                                                        
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.        
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.        
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.        
                                                                                
9                        PROCESSTYPE $5.                                        10                       TAXID       14                                         
11                       PSO         $1.                                        
12                       DEBTORNM    $35.                                       
13                       RCNNUM      $11.                                       
14                       CLMBASEID   $9.                                        
15                 RUN;                                                         
                                                                                
16               DATA PROJECT2;                                                 
17                 INFILE PROJECT2 DLM=',' DSD FIRSTOBS=2;                      
18                   INPUT FINARR      $2.                                      
19                       PROCESSTYPE $5.                                        
20                       TAXID       14                                         
21                       PSO         $1.                                        
22                       DEBTORNM    $35.                                       
23                       RCNNUM      $11.                                       
24                       CLMBASEID   $9.                                        
25                 RUN;                                                         
26                                                                              
                                                                                
NOTE: SAS SET OPTION OBS=0 AND WILL CONTINUE TO CHECK STATEMENTS. THIS MAY CAUSE
NOTE: THE DATA SET WORK.PROJECT2 HAS 0 OBSERVATIONS AND 8 VARIABLES.            
NOTE: THE DATA STATEMENT USED 0.00 CPU SECONDS AND 13802K.                      
                                                                                
NOTE: THE ADDRESS SPACE HAS USED A MAXIMUM OF 636K BELOW THE LINE AND 14236K ABO
                                                                                
                                                                                
27               DATA PROJECT3;                                                 
28                 INFILE PROJECT3 DLM=',' DSD FIRSTOBS=2;                      

Accepted Solutions
Solution
3 weeks ago
PROC Star
Posts: 8,165

Re: ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER. ???

You're getting the error message because of the line:

**IMPORT RECOUPEMENTPROJECT EXCEL FILE**                        

However, you'd get other errors if you remove that line because you haven't assigned the filename you are using with your infile statement.

 

Art, CEO, AnalystFinder.com

 

View solution in original post


All Replies
Solution
3 weeks ago
PROC Star
Posts: 8,165

Re: ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER. ???

You're getting the error message because of the line:

**IMPORT RECOUPEMENTPROJECT EXCEL FILE**                        

However, you'd get other errors if you remove that line because you haven't assigned the filename you are using with your infile statement.

 

Art, CEO, AnalystFinder.com

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 80 views
  • 0 likes
  • 2 in conversation