<?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: Open/Read fixed width text file in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748287#M92836</link>
    <description>&lt;P&gt;&lt;EM&gt;After you are done with your selections and are able to press Import, press it and you can get the script from &lt;STRONG&gt;Table Script "Source"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1713552716242.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63496iB209F2E78763CBEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1713552716242.png" alt="jthi_0-1713552716242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"$DOWNLOADS/test.csv",
	columns(
		New Column("date",
			Numeric,
			"Continuous",
			Format("m/d/y", 10),
			Input Format("m/d/y")
		),
		New Column("c000002", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000003", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000004", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000005", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000006", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000007", Numeric, "Continuous", Format("Best", 10))
	),
	Import Settings(
		Fixed Column Widths(13, 3, 7, 9, 11, 6, 90),
		Strip Quotes(0),
		Use Apostrophe as Quotation Mark(0),
		Use Regional Settings(0),
		Scan Whole File(1),
		Treat empty columns as numeric(0),
		CompressNumericColumns(0),
		CompressCharacterColumns(0),
		CompressAllowListCheck(0),
		Labels(1),
		Column Names Start(1),
		First Named Column(1),
		Data Starts(2),
		Lines To Read("All"),
		Year Rule("20xx")
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does have &lt;CODE class=" language-jsl"&gt;	"$DOWNLOADS/test.csv",&lt;/CODE&gt; and &lt;CODE class=" language-jsl"&gt;Fixed Column Widths(13, 3, 7, 9, 11, 6, 90)&lt;/CODE&gt;. Are these still missing something?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 18:52:02 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-04-19T18:52:02Z</dc:date>
    <item>
      <title>Open/Read fixed width text file in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748276#M92833</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a number of fixed width data files(all in same structure) as txt format those do not have column names. Can anyone suggest a template JSL Script that I can customize/use to open any of the files, assign column names, and save as as JMP table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:25:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748276#M92833</guid>
      <dc:creator>monir</dc:creator>
      <dc:date>2024-04-19T18:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Open/Read fixed width text file in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748284#M92834</link>
      <description>&lt;P&gt;Have you tried opening the files using JMP's Open with preview?&lt;/P&gt;
&lt;P&gt;Select&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1713549650763.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63490iF43F52112075289F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1713549650763.png" alt="jthi_0-1713549650763.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;find your file, make sure Using Preview is enabled and click Open&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1713549674790.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63491iD973C48383D5EAFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1713549674790.png" alt="jthi_1-1713549674790.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You will them get many different Import options you can change to (hopefully) fit your file format&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1713549727822.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63494i0731802FDD5B2394/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1713549727822.png" alt="jthi_4-1713549727822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After you are done with your selections and are able to press Import, press it and you can get the script from Table Script "Source"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1713549815851.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63495iA3F256904A7A6619/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_5-1713549815851.png" alt="jthi_5-1713549815851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:03:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748284#M92834</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-19T18:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open/Read fixed width text file in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748285#M92835</link>
      <description>&lt;P&gt;Hi jthi,&lt;/P&gt;&lt;P&gt;Thanks for your prompt response. Yes, I tried as you suggested here. This works for the file that I manually opened by choosing each column width. But if I want to use this script for other files, by changing the file name/location of course, it does not import the data though creates the table structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:30:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748285#M92835</guid>
      <dc:creator>monir</dc:creator>
      <dc:date>2024-04-19T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open/Read fixed width text file in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748287#M92836</link>
      <description>&lt;P&gt;&lt;EM&gt;After you are done with your selections and are able to press Import, press it and you can get the script from &lt;STRONG&gt;Table Script "Source"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1713552716242.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63496iB209F2E78763CBEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1713552716242.png" alt="jthi_0-1713552716242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"$DOWNLOADS/test.csv",
	columns(
		New Column("date",
			Numeric,
			"Continuous",
			Format("m/d/y", 10),
			Input Format("m/d/y")
		),
		New Column("c000002", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000003", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000004", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000005", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000006", Numeric, "Continuous", Format("Best", 10)),
		New Column("c000007", Numeric, "Continuous", Format("Best", 10))
	),
	Import Settings(
		Fixed Column Widths(13, 3, 7, 9, 11, 6, 90),
		Strip Quotes(0),
		Use Apostrophe as Quotation Mark(0),
		Use Regional Settings(0),
		Scan Whole File(1),
		Treat empty columns as numeric(0),
		CompressNumericColumns(0),
		CompressCharacterColumns(0),
		CompressAllowListCheck(0),
		Labels(1),
		Column Names Start(1),
		First Named Column(1),
		Data Starts(2),
		Lines To Read("All"),
		Year Rule("20xx")
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does have &lt;CODE class=" language-jsl"&gt;	"$DOWNLOADS/test.csv",&lt;/CODE&gt; and &lt;CODE class=" language-jsl"&gt;Fixed Column Widths(13, 3, 7, 9, 11, 6, 90)&lt;/CODE&gt;. Are these still missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:52:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Read-fixed-width-text-file-in-JMP/m-p/748287#M92836</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-19T18:52:02Z</dc:date>
    </item>
  </channel>
</rss>

