First, there is a SAS list that is extremely helpful with these types of 
questions.
To join, if you have not done so,
https://listserv.uga.edu/cgi-bin/wa?LIST=SAS-L

Second, please post the complete code output with the Error messages.  The 
error messages alone are not as helpful.

The SAS proc may have some differences in your shop than mine.  By posting the 
entire job and error messages will help to see what the error is.

I suspect the //SYSPRINT either needs to be deleted or moved above the SYSIN

Lizette



> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Ron Thomas
> Sent: Wednesday, November 02, 2016 8:54 AM
> To: [email protected]
> Subject: SAS Error
> 
> Hi .
> 
> I am completely  new to SAS  and when i executed the below  one to write 111
> char to a dataset , the following below error message is showing up could
> someone please let me know where the issue is ?
> 
> 
> //RDDATA   EXEC  SAS,WORK='40000,40000'
> //*
> //SASLIST  DD  DSN=RS32UVT.SAS.SASLIST,
> //             DISP=SHR
> //TESTF1   DD  DSN=RS32UVT.TEST.FILE,
> //             DISP=SHR
> //SYSIN  DD *
> OPTIONS NOCENTER;
> DATA _NULL_ ;
>   FILE TESTF1 ;
>    PUT @1 '111 '
>        ;
> RUN;
> //SYSPRINT DD SYSOUT=*
> 
> 
> 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.
> 
> Thanks
> Ron T
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to
> [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to