BookmarkSubscribeRSS Feed
subhendu
Calcite | Level 5

While trying to run Proc Traj for the first time I am encountering the following error message

PROC TRAJ DATA=TRAJ4 OUTPLOT=OP OUTSTAT=OS OUT=OF OUTEST=OE ITDETAIL;

               ----

               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.

15   ID ID; VAR O1-O2; INDEP T1-T2;

16   MODEL CNORM; MAX 2; NGROUPS 2; ORDER 3 3;

17   RUN;

 

NOTE: The SAS System stopped processing this step because of errors.

NOTE: PROCEDURE TRAJ used (Total process time):

      real time           0.01 seconds

      cpu time            0.01 seconds

 

18

 

What may be a problrm here?

2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Please search on the forum for previous questions about PROC TRAJ. As you can see from the note, PROC TRAJ is NOT a SAS Procedure. I remember that is it a user-written procedure. So it is supported by the person who wrote it.

From this paper, it looks like it was written by researches at Carnegie-Mellon:
https://www.andrew.cmu.edu/user/bjones/pdf/ref1.pdf

And this appears to be the CMU web site:
https://www.andrew.cmu.edu/user/bjones/

cynthia
Emma_at_SAS
Lapis Lazuli | Level 10

Subhendu, could you run proc traj in SAS.

 

I tried to install the package for PROC TRAJ but it sounds like I do not have enough knowledge to do so. This webpage https://www.andrew.cmu.edu/user/bjones/ provides information to install the Stata version and not the SAS version. Any comments on that?

 

Thanks,

Maryam

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 4107 views
  • 0 likes
  • 3 in conversation