<?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: Dynamic Creation of SAS Program File in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24695#M4134</link>
    <description>Thanks Scott.  Great suggestion.  I will definitely keep that in mind down the road.  Shortly after posting my issue, I figured out what my problem was (I was using single quotes when I should have used double quotes).  That simple oversight ultimately did the trick!    Thanks for responding so quickly.</description>
    <pubDate>Tue, 28 Apr 2009 21:15:38 GMT</pubDate>
    <dc:creator>Michael_W</dc:creator>
    <dc:date>2009-04-28T21:15:38Z</dc:date>
    <item>
      <title>Dynamic Creation of SAS Program File</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24693#M4132</link>
      <description>I am stuck and I am hoping one of the many SAS guru can assist me.   I am trying to dymanically generate several .sas files that are incrementally named (e.g. PRG01.SAS, PRG02.SAS, etc.) and each of which contains slightly different contents (e.g. PRG01.SAS contains Data WORK.TMP01;  Set MYTBL (FirstObs=1 OBS=1000000); run;  and PRG02.SAS contains Data WORK.TMP01;  Set MYTBL (FirstObs=10000001 OBS=2000000); run;)&lt;BR /&gt;
&lt;BR /&gt;
The FIRSTOBS and OBS values are calculated based on a macro variable value that I compute in two prior DATA STEPs using a CALL SYMPUT.  I then attempt to pass those values to my macro (which is were I think the breakdown is occuring) which it uses to calcute the FIRSTOBS and OBS values for each iteration of a %DO loop.   Inside the loop, I am also opening the ODS buffer to spool off statement to the dynamically named .SAS files mentioned above. &lt;BR /&gt;
&lt;BR /&gt;
Any ideas on what I am doing wrong?</description>
      <pubDate>Tue, 28 Apr 2009 20:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24693#M4132</guid>
      <dc:creator>Michael_W</dc:creator>
      <dc:date>2009-04-28T20:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Creation of SAS Program File</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24694#M4133</link>
      <description>Suggest you share some code and explain exactly what error (or undesirable result) you are getting.  When deriving SYMPUT, there  are resolution issues that can occur, so you always want to end each DATA (and PROC for my own opinion) with a RUN;  statement, so SAS performs the compilation up to the current point in the code execution, even within a macro.&lt;BR /&gt;
&lt;BR /&gt;
Also, consider writing a general purpose (as in one resuable) macro and re-execute it as needed passing any necessary parameters.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 28 Apr 2009 20:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24694#M4133</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-28T20:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Creation of SAS Program File</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24695#M4134</link>
      <description>Thanks Scott.  Great suggestion.  I will definitely keep that in mind down the road.  Shortly after posting my issue, I figured out what my problem was (I was using single quotes when I should have used double quotes).  That simple oversight ultimately did the trick!    Thanks for responding so quickly.</description>
      <pubDate>Tue, 28 Apr 2009 21:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-Creation-of-SAS-Program-File/m-p/24695#M4134</guid>
      <dc:creator>Michael_W</dc:creator>
      <dc:date>2009-04-28T21:15:38Z</dc:date>
    </item>
  </channel>
</rss>

