<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proc Traj Troubleshooting in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457500#M23859</link>
    <description>&lt;P&gt;Hi, Thanks for your reply. It must be an installing issue on my end, because SAS recognizes that I am running proc traj, but even on the testing code I get the exact same errors as in my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 20:03:30 GMT</pubDate>
    <dc:creator>arianajhnsn</dc:creator>
    <dc:date>2018-04-25T20:03:30Z</dc:date>
    <item>
      <title>Proc Traj Troubleshooting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457479#M23856</link>
      <description>&lt;P&gt;I have installed and uninstalled proc traj and seem to have so many errors that I cannot even begin to troubleshoot. I am wondering if anyone is familiar with proc traj troubleshooting of any sort.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below I have posted my code and the log from when that code is run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data macrowork1;&lt;BR /&gt;set fillin;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc traj data=macrowork1 OUT=OF OUTPLOT=OP OUTSTAT=OS OUTEST=OE ITDETAIL;&lt;BR /&gt;ID study_id;&lt;BR /&gt;VAR newweight1 - newweight12; INDEP newnumber1 - newnumber12;&lt;BR /&gt;MODEL CNORM; MIN -99.00000000; MAX 99.00000000; ngroups 4; order 1 1 1 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%trajplot (OP, OS, 'gestational age vs. gestational weight', 'cnorm model', 'weight', 'week of pregnancy');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERRORS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc traj data=macrowork1 OUT=OF OUTPLOT=OP OUTSTAT=OS OUTEST=OE ITDETAIL;&lt;BR /&gt;----&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;NOTE: An external program, not a SAS procedure, is being executed.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, AUDIT, CC, CLEANUP.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;1182 ID study_id;&lt;BR /&gt;1183 VAR newweight1 - newweight12; INDEP newnumber1 - newnumber12;&lt;BR /&gt;1184 MODEL CNORM; MIN -99.00000000; MAX 99.00000000; ngroups 4; order 1 1 1 1;&lt;BR /&gt;1185 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE TRAJ used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;1186&lt;BR /&gt;1187 %trajplot (OP, OS, 'gestational age vs. gestational weight', 'cnorm model', 'weight', 'week&lt;BR /&gt;1187! of pregnancy');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: File WORK.OP.DATA does not exist.&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: The data set WORK.CPREDTMP has 0 observations and 0 variables.&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;BR /&gt;(Line):(Column).&lt;BR /&gt;1818:139&lt;BR /&gt;NOTE: Variable name is uninitialized.&lt;BR /&gt;NOTE: There were 0 observations read from the data set WORK.CPREDTMP.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Deleting WORK.CPREDTMP (memtype=DATA).&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE DATASETS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: File WORK.OS.DATA does not exist.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: The value for the ACROSS option must be greater than 0. The specified value will be&lt;BR /&gt;ignored.&lt;BR /&gt;ERROR: File WORK.OP.DATA does not exist.&lt;BR /&gt;NOTE 137-205: Line generated by the invoked macro "TRAJPLOT".&lt;BR /&gt;5 legend1 label=('Group Percents') value=(%unquote(&amp;amp;GpPcts)) across=&amp;amp;Cnt; proc&lt;BR /&gt;5 ! gplot data=&amp;amp;PlotFile; title1 &amp;amp;Title1; title2 &amp;amp;Title2; format t 12.2 avg1 12.2;&lt;BR /&gt;5 ! plot &amp;amp;aline &amp;amp;pline / overlay legend=legend1; label t=&amp;amp;Xlab;&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, (.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "TRAJPLOT".&lt;BR /&gt;5 legend1 label=('Group Percents') value=(%unquote(&amp;amp;GpPcts)) across=&amp;amp;Cnt; proc&lt;BR /&gt;5 ! gplot data=&amp;amp;PlotFile; title1 &amp;amp;Title1; title2 &amp;amp;Title2; format t 12.2 avg1 12.2;&lt;BR /&gt;5 ! plot &amp;amp;aline &amp;amp;pline / overlay legend=legend1; label t=&amp;amp;Xlab;&lt;BR /&gt;-&lt;BR /&gt;76&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE GPLOT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457479#M23856</guid>
      <dc:creator>arianajhnsn</dc:creator>
      <dc:date>2018-04-25T19:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Traj Troubleshooting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457484#M23857</link>
      <description>&lt;P&gt;I believe they provide some test code to see if it's working, do any of their main examples work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.andrew.cmu.edu/user/bjones/sas/strtxmpl2.sas" target="_blank"&gt;https://www.andrew.cmu.edu/user/bjones/sas/strtxmpl2.sas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457484#M23857</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-25T19:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Traj Troubleshooting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457500#M23859</link>
      <description>&lt;P&gt;Hi, Thanks for your reply. It must be an installing issue on my end, because SAS recognizes that I am running proc traj, but even on the testing code I get the exact same errors as in my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 20:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457500#M23859</guid>
      <dc:creator>arianajhnsn</dc:creator>
      <dc:date>2018-04-25T20:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Traj Troubleshooting</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457571#M23863</link>
      <description>&lt;P&gt;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:&lt;/P&gt;
&lt;PRE&gt;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;

&lt;/PRE&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &lt;STRONG&gt;manually&lt;/STRONG&gt; retyping the Proc statement removes the first error that could be what happened.&lt;/P&gt;
&lt;P&gt;It appears that the other errors are all occurring because the first statement failed.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 23:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Traj-Troubleshooting/m-p/457571#M23863</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-25T23:09:03Z</dc:date>
    </item>
  </channel>
</rss>

