You can open text files with the extensions .txt, .csv, and .tsv, and the text is converted to a data table. Files with the .dat extension that consist of text are also supported. Text files can be delimited using almost any character, or they can be fixed-width files.
Select File > Preferences > Text Data Files to change the import settings so that JMP determines the best way to structure and format the data table.
1.
Select File > Open.
1.
Select File > Open.
2.
From the list next to File name, select Text Files.
(Optional) Select the Select this filter the next time this dialog is invoked option to apply the filter that you chose by default.
5.
Click Open.
Tip: The JMP Home window provides a shortcut to the above steps if you recently opened the file. Right-click the file in the Recent Files list and select Import (Preferences) or Import (Best Guess). (Your import preference is bolded in the right-click menu.)
1.
Select File > Open.
2.
From the list next to File name, select Text Files.
3.
Select Data with Preview next to Open at the bottom of the window.
5.
Click Open.
7.
Click Import.
1.
Select File > Open.
3.
From the Open As field, select Data (Best Guess) or Data (Using Preferences).
4.
Click Open.
1.
Select File > Open.
2.
Select the file that you want to open. From the Open As field, select Data (Using Preview).
3.
Click Open.
5.
Click Import.
Note: On Windows, JMP can open text files in your computer’s default text editor. Select File > Open, and then select All Files (*.*) from the File name list. Select the text file, and then select Use default program to open. Uncheck to open as text.
JMP detects the file’s structure and shows options for importing text with either delimiters or fixed width fields. If JMP chooses the wrong file structure, click the Delimited fields or Fixed width fields radio button to import the data as the correct format. (For example, the fixed width window might appear when your file is actually delimited.)
Text Import Preview for Fixed Width Files
Text Import Preview for Delimited Files
(Available only in the Delimited Import window) Select the check boxes beside the character that marks the end of a line (row). Alternatively, select the check box beside Other and enter a character if the appropriate character is not listed. Note that when JMP finds double quotation marks, the delimiter rules change to look for an end double quotation mark. Other text delimiters, including spaces embedded within the quotes, are ignored and treated as part of the text string.
Specify how to display dates that have two-digit years. Select the 100-year range in which your dates fall. For example, if the earliest date is 2/2/79, and the year is 1979, select 1970-2069. If the earliest date is 2/2/12, and the year is 2012, select 2000-2099. If dates span centuries, you must recode the dates with four-digit years before importing the data.
When you are finished selecting the settings, click Next. The next window shows each column’s modeling type. To change the default modeling types, do one of the following:
Text Import Preview Window with Column Options
6.
When you are finished, click Import to complete the text import.
Another option is opening a JMP add-in definition (.def) file as text and then editing it in a Script window.
Files that you recently opened are listed in the JMP Home window. For most files, right-click the text file and select Open as Plain Text to open the file in a text editing window. JMP add-in definition files cannot be opened as plain text from the JMP Home window.
1.
Select File > Open.
To open a JMP add-in definition file as text, select All JMP Files or JMP Add-In Files from the list next to File name. Click the Open button arrow, and then select Open as Plain Text. The file opens in a Script window. Skip the remaining steps.
To open other text files, select Text Files from the list next to File name.
Select Text Files
3.
(Optional) To set the default option file type to Text Files, select the check box beside Select this filter the next time this dialog is invoked.
5.
Select Plain text into Script window next to Open as.
6.
Click Open.
1.
Select File > Open.
Opening a Text Document on the Macintosh
3.
Select Text from the Open As list.
4.
Click Open.
1.
Open a new Script window in JMP by selecting File > New > Script (Windows) or File > New > New Script (Macintosh).
To import all text from the Script window, select File > Import as Data (Windows) or Edit > Import as Data (Macintosh).
To import specific text, select the text, and then select File > Import as Data (Windows) or Edit > Import as Data (Macintosh).