LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2011, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 24 Feb 2011 10:55:27 -0800
Reply-To:     J McClure <mc006@PACBELL.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         J McClure <mc006@PACBELL.NET>
Subject:      Set command help
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body text="#000000" bgcolor="#ffffff"> Hi,<br> I'm new to SAS and am trying to use some code developed by Dr. <font face="Geneva">Brian P. O'Connor&nbsp; <a class="moz-txt-link-freetext" href=""></a>.<br> However, I am getting error messages and can't figure out what to change in the code.<br> The first error I'm getting is with this section:<br> (When I ran the code I commented out the line /*start of artificial data commands*/&nbsp; but I left it as it was originally below) <br> The error is <br> 1125&nbsp; set length=none printback = off&nbsp; width = 120.<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 180<br> ERROR 180-322: Statement is not valid or it is used out of proper order.<br> Thanks for any help!<br> Jan<br> </font> <pre>* These next commands generate artificial raw data (50 cases) that can be used for a trial-run of the program, instead of using your own raw data; Just select and run this whole file; However, make sure to delete these commands before attempting to run your own data.

* Start of artificial data commands. set length=none printback = off width = 120. input program. loop #a=1 to 500. compute com1 = normal (10). compute com2 = normal (10). compute com3 = normal (10). compute var1 = normal (10) + com1. compute var2 = normal (10) + com1. compute var3 = normal (10) + com1. compute var4 = normal (10) + com2. compute var5 = normal (10) + com2. compute var6 = normal (10) + com2. compute var7 = normal (10) + com3. compute var8 = normal (10) + com3. compute var9 = normal (10) + com3. end case. end loop. end file. end input program. factor var = var1 to var9. * End of artificial data commands. </pre> <br> </body> </html>

Back to: Top of message | Previous page | Main SAS-L page