<?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 ODS PDF FILE to generate in UNIX directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/547839#M151889</link>
    <description>&lt;P&gt;This is the macro code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro rept_plot3xxx_8451_lo(num);&lt;BR /&gt;title "Lift scatter plot";&lt;/P&gt;&lt;P&gt;ODS pdf file="/trnapp/sas/qa/warehouse/playpens/{User Directory}/";&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=DWM_MIN_LIST_3XXX_T4T_SHORT;&lt;BR /&gt;where VEHICLE_NO = "&amp;amp;num"&lt;BR /&gt;and DWM_TRUCK_1_PRESS_2_FDBK_8451 between -2 and 25&lt;BR /&gt;and fault_code not in ('20-2093', '20-2094', '20-2095',&lt;BR /&gt;'20-2096', '20-2021')&lt;BR /&gt;;&lt;BR /&gt;yaxis label= "DWM_TRUCK_1_PRESS_2_FDBK_8451 psi";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;scatter x=OCCUR_DATE y=DWM_TRUCK_1_PRESS_2_FDBK_8451;&lt;BR /&gt;xaxis grid;&lt;BR /&gt;yaxis grid;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend rept_plot3xxx_8451_lo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calling the macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;array veh_no[39] _temporary_ (3725:3763)&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;call execute('proc sql;');&lt;/P&gt;&lt;P&gt;do i=1 to dim(veh_no) while (veh_no(i) ne .);&lt;BR /&gt;call execute(cats('%nrstr(%rept_plot3xxx_8451_lo)(',veh_no(i),')'));&lt;BR /&gt;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;call execute('quit;');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following errors in the log file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: GPATH or PATH is not a writable directory. It will be ignored.&lt;BR /&gt;ERROR: Cannot write image to /trnapp/sas/common/biconfig/qgrid/Lev1/SASApp/SGPlot.png. Please ensure that proper disk permissions&lt;BR /&gt;are set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were n observations read from the data set WORK.DWM_MIN_LIST_3XXX_T4T_SHORT.&lt;BR /&gt;WHERE (VEHICLE_NO='3725') and (DWM_TRUCK_1_PRESS_2_FDBK_8451&amp;gt;=-2 and DWM_TRUCK_1_PRESS_2_FDBK_8451&amp;lt;=25) and fault_code not in&lt;BR /&gt;('20-2021', '20-2093', '20-2094', '20-2095', '20-2096');&lt;/P&gt;&lt;P&gt;ERROR: SAS ended due to errors.&lt;BR /&gt;You specified: OPTIONS ERRORABEND;.&lt;BR /&gt;ERROR: Invalid file, /trnapp/sas/qa/warehouse/playpens/{User Directory"}.&lt;BR /&gt;ERROR: Errors printed on pages 1,2,10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How will I resolve this error? I want to generate the plot in PDF format in the mentioned directory which is given in the macro code but it is somewhat trying to save in /trnapp/sas/common/biconfig/qgrid/Lev1/SASApp/ as .png format which I don't want and also giving an error.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 10:02:48 GMT</pubDate>
    <dc:creator>ssaha</dc:creator>
    <dc:date>2019-04-02T10:02:48Z</dc:date>
    <item>
      <title>ODS PDF FILE to generate in UNIX directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/547839#M151889</link>
      <description>&lt;P&gt;This is the macro code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro rept_plot3xxx_8451_lo(num);&lt;BR /&gt;title "Lift scatter plot";&lt;/P&gt;&lt;P&gt;ODS pdf file="/trnapp/sas/qa/warehouse/playpens/{User Directory}/";&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=DWM_MIN_LIST_3XXX_T4T_SHORT;&lt;BR /&gt;where VEHICLE_NO = "&amp;amp;num"&lt;BR /&gt;and DWM_TRUCK_1_PRESS_2_FDBK_8451 between -2 and 25&lt;BR /&gt;and fault_code not in ('20-2093', '20-2094', '20-2095',&lt;BR /&gt;'20-2096', '20-2021')&lt;BR /&gt;;&lt;BR /&gt;yaxis label= "DWM_TRUCK_1_PRESS_2_FDBK_8451 psi";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;scatter x=OCCUR_DATE y=DWM_TRUCK_1_PRESS_2_FDBK_8451;&lt;BR /&gt;xaxis grid;&lt;BR /&gt;yaxis grid;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend rept_plot3xxx_8451_lo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calling the macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;array veh_no[39] _temporary_ (3725:3763)&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;call execute('proc sql;');&lt;/P&gt;&lt;P&gt;do i=1 to dim(veh_no) while (veh_no(i) ne .);&lt;BR /&gt;call execute(cats('%nrstr(%rept_plot3xxx_8451_lo)(',veh_no(i),')'));&lt;BR /&gt;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;call execute('quit;');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following errors in the log file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: GPATH or PATH is not a writable directory. It will be ignored.&lt;BR /&gt;ERROR: Cannot write image to /trnapp/sas/common/biconfig/qgrid/Lev1/SASApp/SGPlot.png. Please ensure that proper disk permissions&lt;BR /&gt;are set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were n observations read from the data set WORK.DWM_MIN_LIST_3XXX_T4T_SHORT.&lt;BR /&gt;WHERE (VEHICLE_NO='3725') and (DWM_TRUCK_1_PRESS_2_FDBK_8451&amp;gt;=-2 and DWM_TRUCK_1_PRESS_2_FDBK_8451&amp;lt;=25) and fault_code not in&lt;BR /&gt;('20-2021', '20-2093', '20-2094', '20-2095', '20-2096');&lt;/P&gt;&lt;P&gt;ERROR: SAS ended due to errors.&lt;BR /&gt;You specified: OPTIONS ERRORABEND;.&lt;BR /&gt;ERROR: Invalid file, /trnapp/sas/qa/warehouse/playpens/{User Directory"}.&lt;BR /&gt;ERROR: Errors printed on pages 1,2,10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How will I resolve this error? I want to generate the plot in PDF format in the mentioned directory which is given in the macro code but it is somewhat trying to save in /trnapp/sas/common/biconfig/qgrid/Lev1/SASApp/ as .png format which I don't want and also giving an error.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 10:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/547839#M151889</guid>
      <dc:creator>ssaha</dc:creator>
      <dc:date>2019-04-02T10:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF FILE to generate in UNIX directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/547955#M151902</link>
      <description>&lt;P&gt;Replace&amp;nbsp;&lt;SPAN&gt;{User Directory}&amp;nbsp; with the&amp;nbsp; name of an existing sub-directory without using spaces and curly brackets in the name.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Make sure you have write access to that directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 16:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/547955#M151902</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-04-02T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF FILE to generate in UNIX directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/548062#M151941</link>
      <description>&lt;P&gt;Also, try closing other ODS destinations. Run:&lt;/P&gt;
&lt;P&gt;ods _all_ close;&lt;/P&gt;
&lt;P&gt;before your code.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 21:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-FILE-to-generate-in-UNIX-directory/m-p/548062#M151941</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-04-02T21:54:47Z</dc:date>
    </item>
  </channel>
</rss>

