cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

Example: Importing a Text File

Started ‎11-08-2022 by
Modified ‎11-08-2022 by
View Fullscreen Exit Fullscreen

Let's look at an example. Suppose you have a text file that specifies the column names on the first line and then follows with a row of data on each of the subsequent lines. The values are separated by a character- in this case, a comma. JMP is likely to recognize this common format without help from you but you can force the correct format with optional arguments. The End of Field argument specifies the name of the character that separates the values. The Labels argument is a Boolean value that indicates the presence or absence of the column names in the first row with a or respectively. Some non-standard text formats require additional scripting in order to correctly parse the text into data -- they may not be able to be imported directly into a JMP data table. You can use the Load Text File function to store the text in a variable as a string, and then process the string with the JSL character functions. You can also save text strings that your script creates using the Save Text File function.