<?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 How do I input different values for each JMP file using a script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/527036#M75091</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;open=("C:\source\new.jmp);

For (
i=1,
i&amp;lt;= nitems(files),
i++,
data table("new")&amp;lt;&amp;lt;new column("month",charcter,formula(eval("Jan")));
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I know that the above script is wrong, and I wrote it as a rough example.&lt;/P&gt;&lt;P&gt;There are 3 JMP files of the same type in the source folder.&lt;/P&gt;&lt;P&gt;After creating a new column using the For SCRIPT&lt;BR /&gt;I want to put January, February, and March in the file order.&lt;/P&gt;&lt;P&gt;I need help figuring out what to do.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 17:05:30 GMT</pubDate>
    <dc:creator>Ronaldo</dc:creator>
    <dc:date>2023-06-09T17:05:30Z</dc:date>
    <item>
      <title>How do I input different values for each JMP file using a script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/527036#M75091</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;open=("C:\source\new.jmp);

For (
i=1,
i&amp;lt;= nitems(files),
i++,
data table("new")&amp;lt;&amp;lt;new column("month",charcter,formula(eval("Jan")));
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I know that the above script is wrong, and I wrote it as a rough example.&lt;/P&gt;&lt;P&gt;There are 3 JMP files of the same type in the source folder.&lt;/P&gt;&lt;P&gt;After creating a new column using the For SCRIPT&lt;BR /&gt;I want to put January, February, and March in the file order.&lt;/P&gt;&lt;P&gt;I need help figuring out what to do.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:05:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/527036#M75091</guid>
      <dc:creator>Ronaldo</dc:creator>
      <dc:date>2023-06-09T17:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I input different values for each JMP file using a script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/527047#M75092</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/42421"&gt;@Ronaldo&lt;/a&gt;&amp;nbsp;, welcome to the community.&lt;/P&gt;
&lt;P&gt;You can do it like below, tested for JMP16, earlier versions should use old loop syntax, BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: sorry, misunderstood first, maybe now it's what you need.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt1 = new  table("Table 1", add rows(10), new column ("Column A", formula(row())));
dt2 = new  table("Table 2", add rows(10), new column ("Column B", formula(row())));
dt3 = new  table("Table 3", add rows(10), new column ("Column C", formula(row())));

dt_lst = List( dt1, dt2, dt3 );

month_lst = List( "Jan", "Feb", "Mar" );

For Each( {value, index}, dt_lst, value &amp;lt;&amp;lt; New Column( "Month", "Character", set each value( (month_lst[index]) ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 14:32:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/527047#M75092</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-07-27T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I input different values for each JMP file using a script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/529275#M75279</link>
      <description>thank you very much!!!&lt;BR /&gt;i got it!</description>
      <pubDate>Tue, 02 Aug 2022 10:48:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-input-different-values-for-each-JMP-file-using-a-script/m-p/529275#M75279</guid>
      <dc:creator>Ronaldo</dc:creator>
      <dc:date>2022-08-02T10:48:46Z</dc:date>
    </item>
  </channel>
</rss>

