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.
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?
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.
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?
Thank you very much, that was the issue of not having the IML there.
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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.