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

Reply
New Contributor
Posts: 2

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


hello,

I have the following error that I don't know how to fix:

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

This is the log file I received:

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

2773  DATA DATAYDER;
2774  INPUT ID ER1-ER11 T1-T11;
2775  CARDS;

NOTE: The data set WORK.DATAYDER has 217 observations and 23 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


2993  ;
2994  RUN;
2995
2996  PROC TRAJ DATA=DATAYDER OUT=OF OUTPLOT=OP OUTSTAT=OS OUTEST=OE ITDETAIL ALTSTART;
                ----
               22
                76
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 76-322: Syntax error, statement will be ignored.
2997  ID ID; VAR ER1-ER11; INDEP T1-T11;
2998  MODEL CNORM; MAX 4; NGROUPS 1; ORDER 2;
2999
3000  RUN;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE TRAJ used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

3001  PROC PRINT DATA=OP;
ERROR: File WORK.OP.DATA does not exist.
3002  RUN;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

WARNING: Apparent invocation of macro TRAJPLOT not resolved.
3003  %TRAJPLOT (OP, OS, 'Events_Rate vs. Month', 'CNORM Model', 'Events_Rate', 'Month');

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

How can I fix this problem?

Thanks

Super User
Posts: 17,863

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

Have you downloaded and installed the proc traj code?

traj: group-based modeling of longitudinal data

Download

New Contributor
Posts: 2

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

Yes, I did. I also followed the instructions regarding placing the downloaded files in the appropriate folders in SAS. What could the problem be?

Super Contributor
Posts: 282

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

Hi,

Depending on your version of SAS and platform, is the following relevant?:

4354 - Toolkit procedure fails with syntax error when submitted in EnterpriseGuide Code Window

Regards,

Amir.

New Contributor
Posts: 2

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

It happens to me too... Did you fix the problem??????

New Contributor
Posts: 2

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

Problem solved. I downloaded 64-bit instead of 32-bit...Well actually my laptop is 32bit... So...

Ask a Question
Discussion stats
  • 5 replies
  • 3632 views
  • 0 likes
  • 4 in conversation