PROC LCA: ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.

Reply
New Contributor
Posts: 3

PROC LCA: ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.

 

i downloaded and installed the externel program PROC LCA from the PennState University. I tried to run the test code provided by the developers:

 

DATA test;
INPUT it1 it2 it3 it4 count;
DATALINES;
1  1  1  1  5
1  1  1  2  5
1  1  2  1  9
1  1  2  2  8
1  2  1  2  5
1  2  2  1  8
1  2  2  2  4
2  1  1  1  5
2  1  1  2  3
2  1  2  1  6
2  1  2  2  8
2  2  1  1  3
2  2  1  2  7
2  2  2  1  5
2  2  2  2  10
;
RUN;
PROC LCA DATA=test;
NCLASS 2;
ITEMS it1 it2 it3 it4;
CATEGORIES 2 2 2 2;
FREQ count;
SEED 100000;
RHO PRIOR=1;
RUN;

 

Now i get the  following error that I don't know how to fix:

 

************************************************************************************************************

21 PROC LCA DATA=test;
----
22
202
NOTE: An external program, not a SAS procedure, is being executed.

ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
22 NCLASS 2;
23 ITEMS it1 it2 it3 it4;
24 CATEGORIES 2 2 2 2;
25 FREQ count;
26 SEED 100000;
27 RHO PRIOR=1;
28 RUN;

NOTE: Return code from LCA is -1073741510.
NOTE: PROZEDUR LCA used (Total process time):
******************************************************************************************************


I downloaded the 64-bit version for my 64-bit SAS and followed exactly the instructions of the developers.

Previously I used PROC LCA with SAS 9.3 and it ran smoothly. For SAS 9.4 I had to reinstall it and now it does not work anymore.

 

 

 

How can I fix this problem?

Thanks

PROC Star
Posts: 2,375

Re: PROC LCA: ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.

New Contributor
Posts: 3

Re: PROC LCA: ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.

Yes, I did. That's why I checked again if I installed the right version, but that does not seem to be the problem.

Ask a Question
Discussion stats
  • 2 replies
  • 111 views
  • 0 likes
  • 2 in conversation