Re: SAS Error

2016-11-02 Thread Barry Merrill
There are SAS options that control whether SAS will read all of the 80 bytes or 
only the first 72.

And SAS reads columns 73-80 of the first //SYSIN statement and if there are no 
line numbers, 
assumes the rest of the input is also unnumbered, so a later line with a line 
number can trip
up that presumption.

Barry Merrill


Merrilly yours,

 Herbert W. Barry Merrill, PhD
 President-Programmer
 Merrill Consultants
 MXG Software
 10717 Cromwell Drive  technical questions: supp...@mxg.com
 Dallas, TX 75229
 http://www.mxg.comadmin questions: ad...@mxg.com
 tel: 214 351 1966
 fax: 214 350 3694




-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Ron Thomas
Sent: Wednesday, November 2, 2016 11:59 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: SAS Error

Thanks Donald ! I looked at the code and there was line numbers in 73-80 col 
and in removed those and it worked fine . Thanks !

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Lizette Koehler
The only function in SAS I found that does not like line numbers are SAS Macros.

Lizette


> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Lizette Koehler
> Sent: Wednesday, November 02, 2016 10:06 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: SAS Error
> 
> SAS typically ignores 73-80 line numbers.  The SASLOG, as Barry indicated,
> lists the SAS code line and the error location.
> 
> 
> Lizette
> 
> 
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Leonardo Vaz
> > Sent: Wednesday, November 02, 2016 9:55 AM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: SAS Error
> >
> > I don't know SAS or how it reads the SYSIN DD, but maybe you have
> > numbers on columns 73-80?
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Barry Merrill
> > Sent: Wednesday, November 02, 2016 12:51 PM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: SAS Error
> >
> > The 180 error means SAS could not resolve the syntax, and there is
> > nothing VISIBLY wrong in your program.
> >
> > Post the full SAS log of the job and/or look for an unprintable
> > character in your SAS program.
> >
> > Barry
> >
> >
> > Merrilly yours,
> >
> >  Herbert W. Barry Merrill, PhD
> >  President-Programmer
> >  Merrill Consultants
> >  MXG Software
> >  10717 Cromwell Drive  technical questions: supp...@mxg.com
> >  Dallas, TX 75229
> >  http://www.mxg.comadmin questions: ad...@mxg.com
> >  tel: 214 351 1966
> >  fax: 214 350 3694
> >
> >
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Ron Thomas
> > Sent: Wednesday, November 2, 2016 10:54 AM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > 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='4,4'
> > //*
> > //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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Lizette Koehler
SAS typically ignores 73-80 line numbers.  The SASLOG, as Barry indicated, 
lists the SAS code line and the error location.


Lizette


> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Leonardo Vaz
> Sent: Wednesday, November 02, 2016 9:55 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: SAS Error
> 
> I don't know SAS or how it reads the SYSIN DD, but maybe you have numbers on
> columns 73-80?
> 
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Barry Merrill
> Sent: Wednesday, November 02, 2016 12:51 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: SAS Error
> 
> The 180 error means SAS could not resolve the syntax, and there is nothing
> VISIBLY wrong in your program.
> 
> Post the full SAS log of the job and/or look for an unprintable character in
> your SAS program.
> 
> Barry
> 
> 
> Merrilly yours,
> 
>  Herbert W. Barry Merrill, PhD
>  President-Programmer
>  Merrill Consultants
>  MXG Software
>  10717 Cromwell Drive  technical questions: supp...@mxg.com
>  Dallas, TX 75229
>  http://www.mxg.comadmin questions: ad...@mxg.com
>  tel: 214 351 1966
>  fax: 214 350 3694
> 
> 
> 
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Ron Thomas
> Sent: Wednesday, November 2, 2016 10:54 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> 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='4,4'
> //*
> //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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Ron Thomas
Thanks Donald ! I looked at the code and there was line numbers in 73-80 col 
and in removed those and it worked fine . Thanks !

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Leonardo Vaz
I don't know SAS or how it reads the SYSIN DD, but maybe you have numbers on 
columns 73-80?

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Barry Merrill
Sent: Wednesday, November 02, 2016 12:51 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: SAS Error

The 180 error means SAS could not resolve the syntax, and there is nothing 
VISIBLY wrong in your program.

Post the full SAS log of the job and/or look for an unprintable character in 
your SAS program.

Barry


Merrilly yours,

 Herbert W. Barry Merrill, PhD
 President-Programmer
 Merrill Consultants
 MXG Software
 10717 Cromwell Drive  technical questions: supp...@mxg.com
 Dallas, TX 75229
 http://www.mxg.comadmin questions: ad...@mxg.com
 tel: 214 351 1966
 fax: 214 350 3694



-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Ron Thomas
Sent: Wednesday, November 2, 2016 10:54 AM
To: IBM-MAIN@LISTSERV.UA.EDU
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='4,4'
//*
//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 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Barry Merrill
The 180 error means SAS could not resolve the syntax,
and there is nothing VISIBLY wrong in your program.

Post the full SAS log of the job and/or look for an unprintable
character in your SAS program.

Barry


Merrilly yours,

 Herbert W. Barry Merrill, PhD
 President-Programmer
 Merrill Consultants
 MXG Software
 10717 Cromwell Drive  technical questions: supp...@mxg.com
 Dallas, TX 75229
 http://www.mxg.comadmin questions: ad...@mxg.com
 tel: 214 351 1966
 fax: 214 350 3694



-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Ron Thomas
Sent: Wednesday, November 2, 2016 10:54 AM
To: IBM-MAIN@LISTSERV.UA.EDU
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='4,4'
//*
//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 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Lizette Koehler
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:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Ron Thomas
> Sent: Wednesday, November 02, 2016 8:54 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> 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='4,4'
> //*
> //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
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: SAS Error

2016-11-02 Thread Grinsell, Don
I pasted your code into my JCL and it worked like a charm.  Do you have some 
extraneous data on a line that wasn't copied to the email?

--
 
Donald Grinsell, Systems Programmer
Enterprise Technology Services Bureau
SITSD/Montana Department of Administration
406.444.2983 (D)

"We fear things in proportion to our ignorance of them."
~ Titus Livius

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Ron Thomas
> Sent: Wednesday, November 02, 2016 9:54 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> 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='4,4'
> //*
> //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
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


SAS Error

2016-11-02 Thread Ron Thomas
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='4,4'
//*
//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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN