<?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: Save the SAS traj program results as a PDF file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874805#M345659</link>
    <description>&lt;P&gt;Are there any ODS-related errors or notes in your SAS log? Try using TRAJ outside of a macro to exclude that as a possible cause.&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 00:52:47 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-05-10T00:52:47Z</dc:date>
    <item>
      <title>Save the SAS traj program results as a PDF file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874625#M345584</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I ran the SAStraj program, and the result is shown in figure, but cannot be exported to a PDF file.I would appreciate it if someone could help me solve this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods pdf file="E:\traj.pdf";
%macro traj(data, out, op, os ,oe, nn,order,tilte,subtitle);
PROC TRAJ DATA=&amp;amp;data OUT=&amp;amp;out OUTPLOT=&amp;amp;OP OUTSTAT=&amp;amp;OS OUTEST=&amp;amp;OE; 
id pe_id;
VAR ecrf_06 ecrf_08 ecrf_10 ecrf_12; 
INDEP T1-T4; 
MODEL CNORM;
MIN 0; 
MAX 100; 
NGROUPS &amp;amp;nn;
ORDER &amp;amp;order; 
RUN;
%mend traj;
%traj(men, out, op, os ,oe,3, 4 4 4,Men,Group3);
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 912px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83738i6AF4D4968757BF1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 09:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874625#M345584</guid>
      <dc:creator>YoloY</dc:creator>
      <dc:date>2023-05-09T09:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Save the SAS traj program results as a PDF file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874788#M345649</link>
      <description>&lt;P&gt;Not sure why it is not working neither I've used proc traj procedure before but it looks like if you put ods statement inside the sas macro might work.&lt;/P&gt;
&lt;P&gt;Also, it is worth checking destination path is accessible.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/441403"&gt;@YoloY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro traj(data, out, op, os ,oe, nn,order,tilte,subtitle);
ods pdf file="E:\traj.pdf";
PROC TRAJ DATA=&amp;amp;data OUT=&amp;amp;out OUTPLOT=&amp;amp;OP OUTSTAT=&amp;amp;OS OUTEST=&amp;amp;OE; 
id pe_id;
VAR ecrf_06 ecrf_08 ecrf_10 ecrf_12; 
INDEP T1-T4; 
MODEL CNORM;
MIN 0; 
MAX 100; 
NGROUPS &amp;amp;nn;
ORDER &amp;amp;order; 
RUN;
ods pdf close;
%mend traj;
%traj(men, out, op, os ,oe,3, 4 4 4,Men,Group3);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 May 2023 22:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874788#M345649</guid>
      <dc:creator>MayurJadhav</dc:creator>
      <dc:date>2023-05-09T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Save the SAS traj program results as a PDF file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874805#M345659</link>
      <description>&lt;P&gt;Are there any ODS-related errors or notes in your SAS log? Try using TRAJ outside of a macro to exclude that as a possible cause.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 00:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/874805#M345659</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-10T00:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Save the SAS traj program results as a PDF file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/875393#M345874</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you. I tried the program you recommended, but the SAS log shows that ODSPDF printing did not produce output.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 03:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-the-SAS-traj-program-results-as-a-PDF-file/m-p/875393#M345874</guid>
      <dc:creator>YoloY</dc:creator>
      <dc:date>2023-05-12T03:11:27Z</dc:date>
    </item>
  </channel>
</rss>

