<?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: STP to have a PDF in Developers</title>
    <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62575#M3170</link>
    <description>If you are creating your stored process in EG, I do not understand why the %STPBEGIN/%STPEND are not being inserted into your code. There might be something about your implementation of EG that is making the Stored Process Wizard generate incorrect code. I would recommend that you work with SAS Tech Support on this matter.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 06 May 2011 11:55:23 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-05-06T11:55:23Z</dc:date>
    <item>
      <title>STP to have a PDF</title>
      <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62571#M3166</link>
      <description>all,&lt;BR /&gt;
&lt;BR /&gt;
I'm working on a STP that should generate a PDF with the options orientation=landscape papersize=legal;papersize=legal; &lt;BR /&gt;
&lt;BR /&gt;
With an execution on SAS that works perfectly.&lt;BR /&gt;
&lt;BR /&gt;
I created the STP based on that program and I get a portrait orientation. I don't understand why.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible with a STP ?&lt;BR /&gt;
Do I need an another option ?&lt;BR /&gt;
Do I need to delete the %stpbegin; step in order to replace it by a stpsrv_header() line ? (not sure I understandd that but I could try)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I'm working with EGUIDE 4.1, Windows BI platform. I must use the workspace server.&lt;BR /&gt;
&lt;BR /&gt;
I declared these parameters&lt;BR /&gt;
&lt;BR /&gt;
_RESULT = PACKAGE_TO_REQUESTER;&lt;BR /&gt;
_ODSDEST = PDF;&lt;BR /&gt;
_ODSSTYLE = printer;&lt;BR /&gt;
&lt;BR /&gt;
and I use that &lt;BR /&gt;
&lt;BR /&gt;
ODS NOPTITLE;&lt;BR /&gt;
FILENAME EGPDFX TEMP;&lt;BR /&gt;
options orientation=landscape papersize=legal;&lt;BR /&gt;
ODS PDF (ID=EGPDFX) FILE=EGPDFX ;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate ...&lt;BR /&gt;
&lt;BR /&gt;
;*';*";*/;quit;run;&lt;BR /&gt;
ODS _ALL_ CLOSE;&lt;BR /&gt;
&lt;BR /&gt;
Help...

Message was edited by: Stephane</description>
      <pubDate>Thu, 05 May 2011 15:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62571#M3166</guid>
      <dc:creator>Stephane</dc:creator>
      <dc:date>2011-05-05T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: STP to have a PDF</title>
      <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62572#M3167</link>
      <description>If you're using STPBEGIN/END you are likely getting multiple ODS statements.&lt;BR /&gt;
&lt;BR /&gt;
Set OPTIONS MPRINT and examine the log to see.&lt;BR /&gt;
&lt;BR /&gt;
Generally speaking, if you want to use STPBEGIN/END, you should not supply your own ODS statements.&lt;BR /&gt;
&lt;BR /&gt;
Vince DelGobbo&lt;BR /&gt;
SAS R&amp;amp;D</description>
      <pubDate>Thu, 05 May 2011 16:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62572#M3167</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2011-05-05T16:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: STP to have a PDF</title>
      <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62573#M3168</link>
      <description>Hi:&lt;BR /&gt;
  You might want to work with Tech Support. There used to be some issues with EG and orientation for PDF, as explained in this Tech Support note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/4/781.html" target="_blank"&gt;http://support.sas.com/kb/4/781.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  I am not sure why your code has the FILENAME statement &lt;U&gt;and&lt;/U&gt; the overrides to _ODSDEST and the other reserved macro variables. Also, I don't think you really need to set _RESULT. And, I'm curious about why you would even set a parameter like _RESULT with a prompt.  I would have expected to see something like this for your SP code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
*ProcesBody;&lt;BR /&gt;
                   &lt;BR /&gt;
%let _ODSDEST = PDF;&lt;BR /&gt;
%let _ODSSTYLE = printer;&lt;BR /&gt;
%let _odsoptions = NOTOC;&lt;BR /&gt;
                    &lt;BR /&gt;
options orientation=landscape papersize=legal;&lt;BR /&gt;
          &lt;BR /&gt;
%stpbegin;&lt;BR /&gt;
           &lt;BR /&gt;
ODS NOPTITLE;&lt;BR /&gt;
             &lt;BR /&gt;
  proc tabulate data=sashelp.prdsale f=comma6.;&lt;BR /&gt;
    class country region division product;&lt;BR /&gt;
    var actual predict;&lt;BR /&gt;
    table country*region all,&lt;BR /&gt;
          division*product*actual*(sum n);&lt;BR /&gt;
  run;&lt;BR /&gt;
                &lt;BR /&gt;
%stpend;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                   &lt;BR /&gt;
When I ran the above code, AS A STORED PROCESS, in EG 4.3, I got landscape results returned to my EG session (using the Workspace server). I turned off the PDF bookmarks with NOTOC, in order to verify that the returned results were landscape mode.&lt;BR /&gt;
 &lt;BR /&gt;
That's why I'd recommend working with Tech Support. Your code does not look like it has been fully converted to a stored process and your reserved macro variables do not seem to be set correctly.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 05 May 2011 16:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62573#M3168</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-05-05T16:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: STP to have a PDF</title>
      <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62574#M3169</link>
      <description>Great. Thank you. &lt;BR /&gt;
&lt;BR /&gt;
I create the program with eg and choose the pdf output in the option. This is why I have the filename. &lt;BR /&gt;
Because I execute it with the web stored process interface I add the parameter to have the pdf output. Otherwise it does not work.&lt;BR /&gt;
&lt;BR /&gt;
Do you have a better solution that simplify my work ? If I elaborate a stp with a process flow in eg , do I unclick all the output in the options and add the macro parameters like you ?

Message was edited by: Stephane</description>
      <pubDate>Fri, 06 May 2011 07:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62574#M3169</guid>
      <dc:creator>Stephane</dc:creator>
      <dc:date>2011-05-06T07:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: STP to have a PDF</title>
      <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62575#M3170</link>
      <description>If you are creating your stored process in EG, I do not understand why the %STPBEGIN/%STPEND are not being inserted into your code. There might be something about your implementation of EG that is making the Stored Process Wizard generate incorrect code. I would recommend that you work with SAS Tech Support on this matter.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 06 May 2011 11:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62575#M3170</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-05-06T11:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: STP to have a PDF</title>
      <link>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62576#M3171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a similar issue.&amp;nbsp; I have a stored process that I'd like to render back to the html client.&amp;nbsp; With the option _ODSDEST=PDF, the orientation is always portrait when sent back to the client, even though the options orientation=landscape is set.&amp;nbsp; If I save the pdf to a file using ods pdf file=&amp;lt;...&amp;gt;, the orientation is landscape.&amp;nbsp; Is there anyway to set the orientation to landscape when streaming the results back to the client?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 14:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/STP-to-have-a-PDF/m-p/62576#M3171</guid>
      <dc:creator>GregElmore</dc:creator>
      <dc:date>2011-09-09T14:49:19Z</dc:date>
    </item>
  </channel>
</rss>

