BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
VNguyen
Calcite | Level 5

Hello,

 

I am new to SAS and have been trying to run a test code on TSO (the code below). I recevied the Error 180-322 under Lines 1 and 10 and could not find out what was wrong with them. This is quite an urgent matter and it is greatly appreciated if I can receive some help soon.

 

00001 //NGUYEVE1 JOB (XXXX),'XXXX',MSGCLASS=X,CLASS=E,         

00002 //         PRTY=3,NOTIFY=XXXX,TIME=NOLIMIT                     

00003 //STEP00  EXEC PAPCRMS,TYPRUN='P'                                

00004 //DANFILE EXEC SAS                                               

00005 //WORK DD UNIT=(DISK,4),SPACE=(CYL,(2000,1000),RLSE)         

00006 //SASAUTOS DD DSN=UCLN23.FSDU.XTRACMAC,DISP=SHR

00009 //NONP1612 DD DSN=RIRU.SONGK3.TDFS.NONPRIME.LON.V1612,DISP=SHR

00010 //SYSIN DD *                                                    

00011 DATA NONPRIME;                                                      

00012 SET NONP1612.RBVFCL;                                               

00013 PROC PRINT DATA=NONPRIME (obs=10);                                 

00014 RUN;       

1 ACCEPTED SOLUTION

Accepted Solutions
Peter_C
Rhodochrosite | Level 12
SAS is treating the jcl as if it is SAS code.
If you expect to submit interactively, remove the jcl.

Or find the way to submit it as a batch job

View solution in original post

6 REPLIES 6
VNguyen
Calcite | Level 5

Hello,

 

Please see the log in the attachment.

 

Thank you

ballardw
Super User

Also paste the LOG into a code box opened with the forum {i} icon. That error message typically places and underscore in the code where there is an issue. Pasting the log into the code box preserves formatting so we see where that underscore actually occurs that will be removed by the forum if pasted into the body of message as your code example.

 

And possibly code previously submitted.

Your comment about line 1 and 10 makes me suspect that for some reason the JCL isn't being recognized. Did you submit this interactively (within a SAS session) or as a batch job?

VNguyen
Calcite | Level 5

Hello,

 

I submmitted the job in ISPF editor. I hope I copied the log correctly for you. In the case the JCL is not recognized, could it be because of the information i provided in the job card (the Account ID etc)?

                                                                              
 1    //NGUYEVE1 JOB (XXXX),'XXXX',MSGCLASS=X,CLASS=E,                
      --                                                                      
      180                                                                     
 ERROR 180-322: Statement is not valid or it is used out of proper order.     
                                                                              
 2    //         PRTY=3,NOTIFY=XXXX,TIME=NOLIMIT                           
 3    //STEP00  EXEC PAPCRMS,TYPRUN='P'                                       
 4    //DANFILE EXEC SAS                                                      
 5    //WORK DD UNIT=(DISK,4),SPACE=(CYL,(2000,1000),RLSE)                    
 6    //SASAUTOS DD DSN=UCLN23.FSDU.XTRACMAC,DISP=SHR
                                                                              
 7    //NONP1612 DD DSN=RIRU.SONGK3.TDFS.NONPRIME.LON.V1612,DISP=SHR          
 8    //SYSIN DD *                                                            
 9    DATA NONPRIME;                                                          
                                                                              
 10   SET NONP1612.RBVFCL;                                                    
      ---                                                                     
      180                                                                     
                                                                              
 ERROR 180-322: Statement is not valid or it is used out of proper order.     
                                                                              
                                                                              
 11   PROC PRINT DATA=NONPRIME (obs=10);                                      
 ERROR: File WORK.NONPRIME.DATA does not exist.                               
 12   RUN;                                                                    
                                                                              
 NOTE: The SAS System stopped processing this step because of errors.         
 NOTE: The PROCEDURE PRINT used 0.01 CPU seconds and 22181K.                  
                                                                              
 NOTE: The address space has used a maximum of 996K below the line and        
       24564K above the line.                                                 
                                                                                      
Peter_C
Rhodochrosite | Level 12
SAS is treating the jcl as if it is SAS code.
If you expect to submit interactively, remove the jcl.

Or find the way to submit it as a batch job
VNguyen
Calcite | Level 5

Thank you. I believe this is the answer. Essentially I need to submit the job the right way.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1005 views
  • 1 like
  • 4 in conversation