<?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 with word and substring in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232618#M46133</link>
    <description>&lt;P&gt;I am working on a data table with more than 4000 rows.To get the data in required format I'm using word and substr functions within for each row loop. The functions work as expected for first 160 rows and no action is taken on rows beyond this point.Is this a network issue ? I tried adding Wait but doesnt help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each Row(dt:col1 = Word(1,dt:col1, "S"));

For Each Row(dt:col2 = Substr( Char(dt:col2 ), 3, 2 ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 07:04:35 GMT</pubDate>
    <dc:creator>ENTHU</dc:creator>
    <dc:date>2019-11-07T07:04:35Z</dc:date>
    <item>
      <title>Issue with word and substring</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232618#M46133</link>
      <description>&lt;P&gt;I am working on a data table with more than 4000 rows.To get the data in required format I'm using word and substr functions within for each row loop. The functions work as expected for first 160 rows and no action is taken on rows beyond this point.Is this a network issue ? I tried adding Wait but doesnt help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each Row(dt:col1 = Word(1,dt:col1, "S"));

For Each Row(dt:col2 = Substr( Char(dt:col2 ), 3, 2 ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:04:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232618#M46133</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-11-07T07:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with word and substring</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232668#M46142</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11834"&gt;@ENTHU&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A couple items, you are looping thru 4000 rows twice. You might want to loop once. You can use For Each Row( stmt1; stmt2 ) or a for loop. Also your code has dt:col2 = Substr( Char(dt:col2), 3, 2). Why do you have the Char() function? Does col2 have Character data type?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is an example using a For Loop, assuming col2 is defined as Character data type.&amp;nbsp; You should look at the values in row 161&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For(i=1, i&amp;lt;=nrow(dt), i++,
  dt:col1[i] = word(1, dt:col[1], "S");
  dt:col2[i] = Substr( dt:col2[i], 3,2 );	
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2019 11:37:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232668#M46142</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-11-07T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with word and substring</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232678#M46149</link>
      <description>&lt;P&gt;Can you show us a couple of rows before row 160 and a couple after row 160?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 13:10:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232678#M46149</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-11-07T13:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with word and substring</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232794#M46166</link>
      <description>&lt;P&gt;I got rid of for each row and used for loop to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 18:18:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-with-word-and-substring/m-p/232794#M46166</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-11-07T18:18:35Z</dc:date>
    </item>
  </channel>
</rss>

