<?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: Using current date (TODAY() as macro variable entry for naming a dataset (scripting) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215264#M43014</link>
    <description>&lt;P&gt;The following will create a new table with the name specified as you requested.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table("CLASS_" || format(today(),"yyyymmdd"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Jun 2019 08:12:44 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-06-28T08:12:44Z</dc:date>
    <item>
      <title>Using current date (TODAY() as macro variable entry for naming a dataset (scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215252#M43011</link>
      <description>&lt;P&gt;I would like to use TODAY() to derive the current date and use it as a timestamp in naming a&amp;nbsp; JMP dataset, and as a TIME_STAMP column as well. In SAS, it may look like this (I admit I neglected the formatting a bit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let TODAYDATE=today();
data WORK.CLASS_&amp;amp;TODAYDATE. ;
set SASHELP.CLASS;
TIME_STAMP = &amp;amp;TODAYDATE.&amp;nbsp; ;
run ;

After resolving, the result should look like this :
"WORK.CLASS_20190628"
and
"TIME_STAMP
20190628
20190628
20190628
20190628
..."&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May JSL macro variables do the same job?&lt;/P&gt;
&lt;P&gt;Any input greatly appreciated.&lt;/P&gt;
&lt;P&gt;Have a nice weekend!&lt;/P&gt;
&lt;P&gt;Newbie&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:31:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215252#M43011</guid>
      <dc:creator>Newbie2Jumpie</dc:creator>
      <dc:date>2019-06-28T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using current date (TODAY() as macro variable entry for naming a dataset (scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215264#M43014</link>
      <description>&lt;P&gt;The following will create a new table with the name specified as you requested.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table("CLASS_" || format(today(),"yyyymmdd"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 08:12:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215264#M43014</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-28T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using current date (TODAY() as macro variable entry for naming a dataset (scripting)</title>
      <link>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215268#M43015</link>
      <description>&lt;P&gt;That's grand, that is!&lt;/P&gt;&lt;P&gt;Thanks a lot, mate!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 08:15:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-current-date-TODAY-as-macro-variable-entry-for-naming-a/m-p/215268#M43015</guid>
      <dc:creator>Newbie2Jumpie</dc:creator>
      <dc:date>2019-06-28T08:15:45Z</dc:date>
    </item>
  </channel>
</rss>

