<?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: Name of previous dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90845#M19220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sysdsn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 15:15:23 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2012-04-20T15:15:23Z</dc:date>
    <item>
      <title>Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90843#M19218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know if I put the following Proc Print in my code, it will print the data for the last dataset created (previous dataset):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I'd really like to do is put that in a macro with that grabs the name of the last dataset created and puts it into a TITLE statement. Is there a way to know the name of the dataset that was created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90843#M19218</guid>
      <dc:creator>JasonDiVirgilio</dc:creator>
      <dc:date>2012-04-20T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90844#M19219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the automatically created macro variable: &amp;amp;sysdsn. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a lot of automatically created macro variables that capture things you might want.&amp;nbsp; Take a look at: &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001071968.htm" title="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001071968.htm"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001071968.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90844#M19219</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-04-20T15:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90845#M19220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sysdsn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90845#M19220</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-04-20T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90846#M19221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; data class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&amp;amp;syslast;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; from dataset &amp;amp;syslast;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90846#M19221</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-20T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90847#M19222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data test;&lt;BR /&gt;x=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title "Created &amp;amp;SYSLAST";&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90847#M19222</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-20T15:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90848#M19223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone...sysdsn and syslast both work great...they even include the libname used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, &amp;amp;syslast uses the format "libname.datasetname"&lt;/P&gt;&lt;P&gt;...where &amp;amp;sysdsn uses the format "libname&amp;nbsp;&amp;nbsp;&amp;nbsp; datasetname"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90848#M19223</guid>
      <dc:creator>JasonDiVirgilio</dc:creator>
      <dc:date>2012-04-20T15:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90849#M19224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jason &lt;/P&gt;&lt;P&gt;One wish remains unfulfilled. To have a convenient subtitle reporting the data set used in the reporting procedure we still need to submit that subtitle statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would quite like have a feature that resolves when the procedure executes and not just when the title(n) or footnote statement is submitted. &lt;/P&gt;&lt;P&gt;footnote3 "reporting from #latest_ds" ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I chose the # prefix because something like this used #byVal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just thinking &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 12:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90849#M19224</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2012-04-21T12:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90850#M19225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you remember the super-duper PROC QPRINT.&amp;nbsp; It had options to include DSName and or DSLabel in the output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 13:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90850#M19225</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-21T13:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90851#M19226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vaguely I recall qprint not providing what I needed (at the time) and proc print, did so I restricted that bit of learning (sounds like the well prepared excuse it is). &lt;/P&gt;&lt;P&gt;However didn't qprint become fsprint? forerunner of fsview and fsreport (now proc report)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an excellent certification proposed by ChrisH in his SASDummy blog back at the beginning of this month for which I do not wish to qualify!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Apr 2012 11:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90851#M19226</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2012-04-22T11:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Name of previous dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90852#M19227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Peter.C wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;vaguely I recall qprint not providing what I needed (at the time) and proc print, did so I restricted that bit of learning (sounds like the well prepared excuse it is).&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;It is quite possible that QPRINT did not provided what you needed at the time.&amp;nbsp; I wouldn't know anything about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;However didn't qprint become fsprint? forerunner of fsview and fsreport (now proc report)?&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;No.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Apr 2012 12:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-of-previous-dataset/m-p/90852#M19227</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-22T12:28:58Z</dc:date>
    </item>
  </channel>
</rss>

