It will help to post the code that generates the first errors into a code box using the forum's {I} menu icon like this:
proc traj data=macrowork1 OUT=OF OUTPLOT=OP OUTSTAT=OS 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.
1182 ID study_id;
The reason: the code box will maintain formatting of the error message the position of the underline will show where one of the listed expected items should occur.
There is a long shot that if you copied the basic Proc Traj statement from an internet or word processor source that there is a "hidden" character that the compiler is picking up. If manually retyping the Proc statement removes the first error that could be what happened.
It appears that the other errors are all occurring because the first statement failed.
... View more