<?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: Import x and y values from the text file to jmp table and create wafer map in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519683#M74568</link>
    <description>&lt;P&gt;You could try Contains with "MAP = {". This should give you the location of "MAP = {" in the string and then use that knowledge with Substr to get what you want&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 14:52:00 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-07-11T14:52:00Z</dc:date>
    <item>
      <title>Import x and y values from the text file to jmp table</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/518658#M74476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading each line in text file and import each string as a separate row in the jmp data table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:03:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/518658#M74476</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T17:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/518669#M74477</link>
      <description>&lt;P&gt;Search the jmp addin and the past discussions for wafermaps. Lots of answers there&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 12:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/518669#M74477</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-13T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/518905#M74494</link>
      <description>&lt;P&gt;I have formatted couple of different kinds of wafermaps with JMP into XY coordinates (and map file) based on text files. Doing it by "manually" scripting I think the process was something like this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Parse the text file and get important information (Regex, Words and other character functions are helpful here)
&lt;OL&gt;
&lt;LI&gt;Row count, Column count&lt;/LI&gt;
&lt;LI&gt;X size, Y size&lt;/LI&gt;
&lt;LI&gt;Bin types (especially null/empty type)&lt;/LI&gt;
&lt;LI&gt;Wafermap&lt;/LI&gt;
&lt;LI&gt;Any other information (WAFER ID, type...)&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Create new datatable in which you can collect the results into
&lt;OL&gt;
&lt;LI&gt;Row count is most likely row count * column count&lt;/LI&gt;
&lt;LI&gt;You need at least X and Y columns, and if you are interested in different bins add column for that also&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Loop over the wafermap string by using Words(wafermap_txt, "\!N") to get each line and build the values by multiplying xsize/ysize depending on which column you are filling.
&lt;OL&gt;
&lt;LI&gt;This step is much easier if you don't care about the widths and heights and can just use 1 / fixed value&lt;/LI&gt;
&lt;LI&gt;Also might be a good idea to just code them as coordinates that JMP map files would need, this allows you to build map shape files by using the sizes.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;If you are only interested in the wafermap you could leave out null bins but you have to take it into account when building the map and&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 08 Jul 2022 05:35:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/518905#M74494</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-08T05:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519061#M74513</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Would you mind sharing the code just so I can refer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 12:33:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519061#M74513</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-08T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519072#M74514</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I want to store the die location and the letters in the jmp data table columns X and Y from the attached text file. H&lt;SPAN&gt;ow to use JSL to process such txt file as tabular data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jacksmith12_0-1657285226094.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43813i0FF7AD4FB62C2FD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jacksmith12_0-1657285226094.png" alt="Jacksmith12_0-1657285226094.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JMP table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jacksmith12_1-1657285366605.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43814iE115E2A937401C66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jacksmith12_1-1657285366605.png" alt="Jacksmith12_1-1657285366605.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 13:04:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519072#M74514</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-08T13:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519076#M74515</link>
      <description>&lt;P&gt;I cannot share the code I use but here is a quick example with some ideas&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

// load text file
// parse interesting things
// get map to string

map_str =
".....GGG.....
....BGGGG....
...BGGGGGG...
..GGGGGGGGG..
.GGGGGGBBGGG.
GGGGGGGBBGGGB
GGGGGGGGGGGGB
GGGGGGGGGGGGB
.GGGGGGGGGGG.
..GGGGGGGGG..
...GGGGGGG...
....GGGGG....
.....GGG.....";

l = Words(map_str, "\!N");
rowc = N Items(l);
colc = N Items(Words(l[1], ""));

dt = New Table("Untitled",
	Add Rows(rowc * colc),
	New Column("X", Numeric, Continuous),
	New Column("Y", Numeric, Continuous),
	New Column("bin", Character, Nominal, Label(1))
);

For Each({line, idx}, l,
	cur_rows = ((idx - 1) * colc::(idx * colc - 1)) + 1;
	dt[cur_rows, "X"] = ((1::colc))`;
	dt[cur_rows, "Y"] = (J(1, colc) * (idx))`;
	dt[cur_rows, "bin"] = Words(line, "");
);

nw = New Window("test",
	H List Box(
		align("center"),
		Text Box(map_str, &amp;lt;&amp;lt;Set Font Name("Courier New")),
		dt &amp;lt;&amp;lt; Graph Builder(
			Size(529, 457),
			Show Control Panel(0),
			Variables(X(:X), Y(:Y), Color(:bin)),
			Elements(Points(X, Y, Legend(9))),
			SendToReport(
				Dispatch(
					{},
					"X",
					ScaleBox,
					{Min(0.461038514127673), Max(13.543406057392), Inc(1), Minor Ticks(0),
					Label Row(Show Major Grid(1))}
				),
				Dispatch(
					{},
					"Y",
					ScaleBox,
					{Min(14), Max(0), Inc(1), Minor Ticks(0), Label Row(Show Major Grid(1))}
				),
				Dispatch(
					{},
					"400",
					ScaleBox,
					{Legend Model(
						9,
						Properties(0, {Marker Size(20)}, Item ID(".", 1)),
						Properties(1, {Marker Size(20)}, Item ID("B", 1)),
						Properties(2, {Marker Size(20)}, Item ID("G", 1))
					)}
				)
			)
		),
		dt &amp;lt;&amp;lt; Graph Builder(
			Size(529, 457),
			Show Control Panel(0),
			Variables(X(:X), Y(:Y), Color(:bin)),
			Elements(Heatmap(X, Y, Legend(10), Label("Label by Value"))),
			SendToReport(
				Dispatch({}, "X", ScaleBox, {Min(0.461038514127673), Max(14.3842387539345), Inc(1), Minor Ticks(0), Label Row(Show Major Grid(1))}),
				Dispatch({}, "Y", ScaleBox, {Min(14.3060372430966), Max(0.789075991529451), Inc(1), Minor Ticks(0), Label Row(Show Major Grid(1))})
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1657286717469.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43817i801324D217EE7201/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1657286717469.png" alt="jthi_1-1657286717469.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 13:25:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519076#M74515</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-08T13:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519111#M74518</link>
      <description>&lt;P&gt;It works like charm. Thanks alot&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm trying to import the words from the text file to jmp data table, and then assign a different letters to those bins in the jmp table and then convert back to text file with the original formatting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;map_str =
".....GGG.....
....BGGGG....
...BGGGGGG...
..GGGGGGGGG..
.GGGGGGBBGGG.
GGGGGGGBBGGGB
GGGGGGGGGGGGB
GGGGGGGGGGGGB
.GGGGGGGGGGG.
..GGGGGGGGG..
...GGGGGGG...
....GGGGG....
.....GGG.....";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How do I convert the data table X , Y and bins back in the text file format with the formatting maintained. Any suggestion?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 13:56:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519111#M74518</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-08T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519112#M74519</link>
      <description>&lt;P&gt;Initialize empty string, loop over the tables Y values in order, get row numbers for current y, use those row numbers to get bins, add those bins to initialized string (Concat Items() should help with this), add row change and continue to next Y. After looping trim whitespaces if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 14:23:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519112#M74519</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-08T14:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519113#M74520</link>
      <description>&lt;P&gt;Appreciated&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&lt;BR /&gt;I am new to JSL coding. Can you share an example? Just as a reference&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 14:30:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519113#M74520</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-08T14:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519142#M74523</link>
      <description>&lt;P&gt;Using simpler table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

// Simple example table
dt = New Table(
	"Untitled",
	Add Rows(9),
	New Column("X", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 1, 2, 3, 1, 2, 3])),
	New Column("Y", Numeric, "Continuous", Format("Best", 12), Set Values([1, 1, 1, 2, 2, 2, 3, 3, 3])),
	New Column("bin", Character, "Nominal", Set Values({".", "X", ".", "X", "X", "X", ".", "X", "."}))
);

//empty string initialization
str = ""; 

// get unique values for Y
// I will use Associative array instead of Summarize to keep correct format of values
// Summarize would change them to strings
y_uniq = Associative Array(:Y) &amp;lt;&amp;lt; get keys; 
For Each({cur_y}, y_uniq,
	cur_line_rows = Loc(dt[0, "Y"], cur_y); // Loc() with datatable subscripting
	line_bins = dt[cur_line_rows, "bin"]; // more datatable subscripting
	bin_str = Concat Items(line_bins, "");
	str = str || bin_str || "\!N"; 
);

// remove extra whitespace
str = Trim Whitespace(str);
Write(str);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1657291336046.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43821iE57C72FB1FF14E77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1657291336046.png" alt="jthi_0-1657291336046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1657291353870.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43822iD5214197535CEF78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1657291353870.png" alt="jthi_1-1657291353870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 14:42:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519142#M74523</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-08T14:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519146#M74525</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It's a masterpiece. Thank you very much! :grinning_face:&lt;/img&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 14:54:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519146#M74525</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-08T14:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519268#M74530</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Just a quick question&lt;/P&gt;&lt;P&gt;The actual text file contains wafer information in the beginning. I want to store the data from row 21. I modified jsl as below. It does read as expected. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jacksmith12_1-1657306350593.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43825iA16155E3C671145A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jacksmith12_1-1657306350593.png" alt="Jacksmith12_1-1657306350593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;			map_str = Load Text File();


			l = Words( map_str, "\!N" );
			rowc = N Items( l );
			colc = N Items( Words( l[21], "" ) ); //// edits

			dt = New Table( "Untitled",
				Add Rows( rowc * colc ),
				New Column( "X", Numeric, Continuous ),
				New Column( "Y", Numeric, Continuous ),
				New Column( "bin", Character, Nominal, Label( 1 ) )
			);

			For Each( {line, idx}, l,
				cur_rows = ((idx - 1) * colc :: (idx * colc - 1)) + 1;
				dt[cur_rows, "X"] = ((1 :: colc))`;
				dt[cur_rows, "Y"] = (J( 1, colc ) * (idx))`;
				dt[cur_rows, "bin"] = Words( line, "" );
			);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 18:56:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519268#M74530</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-08T18:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519341#M74532</link>
      <description>&lt;P&gt;You should use some method to get only the wafermap (if you only care about it). Currently you are using the whole text file. Some options for that are&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Regex&lt;/LI&gt;
&lt;LI&gt;Substr with Contains&lt;/LI&gt;
&lt;LI&gt;Words and split on {}&lt;/LI&gt;
&lt;LI&gt;Words and split on row change and combine that with Contains to&lt;/LI&gt;
&lt;LI&gt;hard coding lines and getting wafermap based on those (usually very bad idea)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 09 Jul 2022 06:16:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519341#M74532</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-09T06:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519387#M74537</link>
      <description>&lt;P&gt;Sorry to bother you again. I tried substr&amp;nbsp; but there's something not correct in the code. If you could modify, it would be great&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;			map_str = Load Text File();


			l = Words( map_str, "\!N" );
			rowc = N Items( l );
			colc = N Items( Words( l[21], "" ) ); //// edits

			dt = New Table( "Untitled",
				Add Rows( rowc * colc ),
				New Column( "X", Numeric, Continuous ),
				New Column( "Y", Numeric, Continuous ),
				New Column( "bin", Character, Nominal, Label( 1 ) )
			);

			For Each( {line, idx}, l,
				cur_rows = ((idx - 1) * colc :: (idx * colc - 1)) + 1;
				dt[cur_rows, "X"] = ((1 :: colc))`;
				dt[cur_rows, "Y"] = (J( 1, colc ) * (idx))`;
				dt[cur_rows, "bin"] = substr( line, 1 );
			);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 21:17:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519387#M74537</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-09T21:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519394#M74538</link>
      <description>&lt;P&gt;You need to manipulate the string you get from Load Text File() in such a way that you end up with string which contains only the wafermap part of the text file. This won't give final string needed but gives one idea what you could do. See Scripting Index (and JMP Help) on how Substr and Contains work. It also has one option on using Words and Contains, which also needs some modifications to get correct list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

demo_str = "SOMETHING
TEXT
EXAMPLE
MAP = {
.X.
XXX
.X.
}";

map_str = Substr(demo_str, Contains(demo_str, "MAP = {"));
show(map_str);

stop();
demo_list = Words(demo_str, "\!N");
map_start = Contains(demo_list, "MAP = {");
map_list = demo_list[map_start::N Items(demo_list)];
show(map_list);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2022 06:48:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519394#M74538</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-10T06:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519455#M74548</link>
      <description>&lt;P&gt;That's good explanation&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below statement will start reading data from second row of the list. I don't want to read the last row which contains brace "}".&lt;/P&gt;&lt;P&gt;How can I define the end line in the script&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;map_str = Substr(demo_str, Contains(demo_str, ".X."));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2022 17:13:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519455#M74548</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-10T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519456#M74549</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;map_str = Substr(
	demo_str,
	Contains( demo_str, ".X." ),
	Length( demo_str ) - Contains( demo_str, ".X." ) -1
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: Look in the Scripting Index for definition and examples for the Stbstr() function&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2022 17:23:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519456#M74549</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-10T17:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519679#M74565</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your approach works if the pattern in the first row matches with the contain statement. I have several wafer maps which won't have same patterns. The only similarity is the wafer pattern starts at row number 21 in the text file. Is there a way to define the row number where the script will start reading?. I have attached a wafer map text file for reference (better view on note pad ++)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:20:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519679#M74565</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-11T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519683#M74568</link>
      <description>&lt;P&gt;You could try Contains with "MAP = {". This should give you the location of "MAP = {" in the string and then use that knowledge with Substr to get what you want&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:52:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519683#M74568</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-11T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Import x and y values from the text file to jmp table and create wafer map</title>
      <link>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519691#M74569</link>
      <description>&lt;P&gt;You could try Contains with "MAP = {". This should give you the location of "MAP = {" in the string and then use that knowledge with Substr to get what you want. Also check scripting index (and possibly JMP Help which you can open from Scripting Index) to understand how Substr (and other functions) work.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:55:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-x-and-y-values-from-the-text-file-to-jmp-table/m-p/519691#M74569</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-11T14:55:22Z</dc:date>
    </item>
  </channel>
</rss>

