Statistical programming, matrix languages, and more

ERROR 180-322: Statement is not valid or it is used out of proper order.

Accepted Solution Solved
Reply
Contributor
Posts: 38
Accepted Solution

ERROR 180-322: Statement is not valid or it is used out of proper order.

I have the following commands in SAS:

F_sectors = {'F01000', 'F02000', 'F03000', 'F04000', 'F06C00', 'F06I00','F07C00', 'F07I00', 'F08C00', 'F08I00', 'F09C00', 'F09I00'};

pce_sector = {'F01000'};

and runnig them I get the following error:

124   F_sectors = {'F01000', 'F02000', 'F03000', 'F04000', 'F06C00', 'F06I00','F07C00',

      ---------

      180

124! 'F07I00', 'F08C00', 'F08I00', 'F09C00', 'F09I00'};

ERROR 180-322: Statement is not valid or it is used out of proper order.

125

126   pce_sector = {'F01000'};

      ----------

      180

ERROR 180-322: Statement is not valid or it is used out of proper order.


Accepted Solutions
Solution
‎06-08-2012 09:03 AM
SAS Employee
Posts: 94

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Are these IML statments? Could it be that somehow you are not in IML, that either you have neglected to do a proc iml; statement or maybe you quit the IML proc?

View solution in original post


All Replies
Grand Advisor
Posts: 10,239

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Without all of the code it's hard to diagnose but this is a common error if the previous statement does not end with a semicolon or since you have lot's of strings, an unclosed string or possibly unbalance " and ' for a string.

Solution
‎06-08-2012 09:03 AM
SAS Employee
Posts: 94

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Are these IML statments? Could it be that somehow you are not in IML, that either you have neglected to do a proc iml; statement or maybe you quit the IML proc?

Contributor
Posts: 38

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Thank you very much, that was the issue of not having the IML there.

SAS Employee
Posts: 21

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

You can make this work without explicitly writing PROC IML in your code if you use SAS IML Studio http://support.sas.com/rnd/app/studio/studio.html

☑ This topic is SOLVED.

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

Discussion stats
  • 4 replies
  • 12931 views
  • 0 likes
  • 4 in conversation