<?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 Issue in JMP16 with Get Rows Where in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377172#M62701</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following piece of code that works in earlier JMP versions but stops working in JMP 16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//*****Set Working Directory*****//
PCName = Get Environment Variable("COMPUTERNAME");
WorkingPath_Settings_File = Get Path Variable("DOCUMENTS") || "WorkingPath_Settings.xlsx";
dt_WorkingPath = Open(WorkingPath_Settings_File, invisible);
rowindex_list = dt_WorkingPath &amp;lt;&amp;lt; Get Rows Where(:PCName == PCName);
If(NItems(rowindex_list) == 0,
	rowindex = 1,
	rowindex = rowindex_list[1]
);
WorkingPath = dt_WorkingPath:WorkingPath[rowindex];
Close(dt_WorkingPath, NoSave);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The error occurs at line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rowindex_list = dt_WorkingPath &amp;lt;&amp;lt; Get Rows Where(:PCName == PCName);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Name Unresolved: PCName at row 1 in access or evaluation of 'PCName' , :PCName/*###*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:11:10 GMT</pubDate>
    <dc:creator>mosiph_ct</dc:creator>
    <dc:date>2023-06-09T22:11:10Z</dc:date>
    <item>
      <title>Issue in JMP16 with Get Rows Where</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377172#M62701</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following piece of code that works in earlier JMP versions but stops working in JMP 16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//*****Set Working Directory*****//
PCName = Get Environment Variable("COMPUTERNAME");
WorkingPath_Settings_File = Get Path Variable("DOCUMENTS") || "WorkingPath_Settings.xlsx";
dt_WorkingPath = Open(WorkingPath_Settings_File, invisible);
rowindex_list = dt_WorkingPath &amp;lt;&amp;lt; Get Rows Where(:PCName == PCName);
If(NItems(rowindex_list) == 0,
	rowindex = 1,
	rowindex = rowindex_list[1]
);
WorkingPath = dt_WorkingPath:WorkingPath[rowindex];
Close(dt_WorkingPath, NoSave);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The error occurs at line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rowindex_list = dt_WorkingPath &amp;lt;&amp;lt; Get Rows Where(:PCName == PCName);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Name Unresolved: PCName at row 1 in access or evaluation of 'PCName' , :PCName/*###*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:11:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377172#M62701</guid>
      <dc:creator>mosiph_ct</dc:creator>
      <dc:date>2023-06-09T22:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in JMP16 with Get Rows Where</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377179#M62702</link>
      <description>&lt;P&gt;I found that my xlsx file was not reading in the data with row 1 as the column headers.&amp;nbsp; I changed the open statement to the below, and then the code worked without error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_WorkingPath = Open( WorkingPath_Settings_File, invisible,
	Worksheets( "Sheet1" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Apr 2021 00:53:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377179#M62702</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-16T00:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in JMP16 with Get Rows Where</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377189#M62703</link>
      <description>&lt;P&gt;It works great now. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 02:19:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-in-JMP16-with-Get-Rows-Where/m-p/377189#M62703</guid>
      <dc:creator>mosiph_ct</dc:creator>
      <dc:date>2021-04-16T02:19:07Z</dc:date>
    </item>
  </channel>
</rss>

