SPSS Statistics

 View Only

 simple commands are not being recognized

Marlene eisenberg's profile image
Marlene eisenberg posted Mon November 18, 2024 08:07 AM

Simple commands, like Frequencies, are not being recognized.  I have used the drop down commands as well as syntax commands, and I get error messages that it does not recognize my variables.  I have used both new and old .sav files, as well as using a syntax file with nothing but the Frequencies command, to make sure that an old error is not corrupting my new command.  Nothing seems to work.  

Bruce Weaver's profile image
Bruce Weaver

Try executing the following code:

NEW FILE.
DATASET CLOSE ALL.
INPUT PROGRAM.
- LOOP #i = 1 to 100.
-  COMPUTE ID = $casenum.
-  COMPUTE CatVar = MOD(ID,5).
-  COMPUTE Y = RV.NORMAL(50,10).
-  END CASE.
- END LOOP.
END FILE.
END INPUT PROGRAM.
EXECUTE.
FORMATS ID CatVar (F5.0).
FREQUENCIES CatVar.
DESCRIPTIVES Y.

Does it run without errors?  If not, please copy the error messages and post them here.