<?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: How do I macro variables with JMP, e.g. like SAS macro variables (scripting, JSL) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/219020#M43840</link>
    <description>&lt;P&gt;Below are a couple of examples where JMP variables are used with JMP data table columns to achieve similar functionality as in your SAS MACRO examples.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

my_gender = "M";

Bivariate( Y( :height ), X( :weight ), Where( :sex == my_gender ) );

dtAirline = Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );
my_date = Informat( "01/23/2001", Date MDY( 10 ) );

dtAirline &amp;lt;&amp;lt; select where( :Event Date &amp;lt;= my_date );

dtAirlineSubset = dtAirline &amp;lt;&amp;lt; subset( selected columns( 0 ), selected rows( 1 ) );
dtAirlineSubset &amp;lt;&amp;lt; run script( "Graph Builder Map" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The best documentation for learning about the JMP Scripting Language is found in the Scripting Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;I strongly suggest that you take the time to read through it&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 12:42:36 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-07-29T12:42:36Z</dc:date>
    <item>
      <title>How do I macro variables with JMP, e.g. like SAS macro variables (scripting, JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/218998#M43838</link>
      <description>&lt;P&gt;Let's imagine we work with the JMP file "abrasion.jmp", and we would want to like to apply something like the functionality of SAS' %let macro variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS I could execute WHERE clauses like ...&lt;/P&gt;&lt;P&gt;(1)&amp;nbsp; "where ABRASION is (&amp;amp;MY_ABRASION.);"&lt;/P&gt;&lt;P&gt;... after having specified the macro vars before like: %let MY_ABRASION=133 ; (e.g. 1st usage)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; %let MY_ABRASION=145 ; (e.g. 2nd usage)&lt;/P&gt;&lt;P&gt;(2)&amp;nbsp; "where DATE eq (&amp;amp;MY_DATE.);"&lt;/P&gt;&lt;P&gt;...after having specified the macro vars before like: %let MY_DATE="29Feb1995"d; (e.g. 1st usage)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; %let MY_DATE="2May1995"d ; (e.g. 2nd usage)&lt;/P&gt;&lt;P&gt;(3)&amp;nbsp; or even as combination like "where DATE eq (&amp;amp;MY_DATE.) and ABRASION is (&amp;amp;MY_ABRASION.)";&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could you do that in JMP?&lt;/P&gt;&lt;P&gt;Please provide practical examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Newbie (still)&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 09:27:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/218998#M43838</guid>
      <dc:creator>Newbie2Jumpie</dc:creator>
      <dc:date>2019-07-29T09:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I macro variables with JMP, e.g. like SAS macro variables (scripting, JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/219020#M43840</link>
      <description>&lt;P&gt;Below are a couple of examples where JMP variables are used with JMP data table columns to achieve similar functionality as in your SAS MACRO examples.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

my_gender = "M";

Bivariate( Y( :height ), X( :weight ), Where( :sex == my_gender ) );

dtAirline = Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );
my_date = Informat( "01/23/2001", Date MDY( 10 ) );

dtAirline &amp;lt;&amp;lt; select where( :Event Date &amp;lt;= my_date );

dtAirlineSubset = dtAirline &amp;lt;&amp;lt; subset( selected columns( 0 ), selected rows( 1 ) );
dtAirlineSubset &amp;lt;&amp;lt; run script( "Graph Builder Map" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The best documentation for learning about the JMP Scripting Language is found in the Scripting Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;I strongly suggest that you take the time to read through it&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 12:42:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/219020#M43840</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-07-29T12:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I macro variables with JMP, e.g. like SAS macro variables (scripting, JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/230803#M45772</link>
      <description>&lt;P&gt;To show the beauty of this feature, you can also use the actual value in a title such as we know from SAS, i.e., "&amp;amp;string."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate( Y( :height ), X( :weight ), Where( :sex == my_gender ), Title("Selection: " || my_gender ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this allows to develop an application quite generically :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 11:59:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-macro-variables-with-JMP-e-g-like-SAS-macro-variables/m-p/230803#M45772</guid>
      <dc:creator>numerics</dc:creator>
      <dc:date>2019-10-28T11:59:31Z</dc:date>
    </item>
  </channel>
</rss>

