cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-778325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EJMP%2018%20%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E4%BB%A5%E9%99%8D%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%AE%E5%A4%89%E6%9B%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EJSL%20%E3%81%AE%E3%80%8C%E9%96%8B%E3%81%8F%E3%80%8D%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E5%89%8D%E3%81%AB%E4%BD%9C%E6%88%90%E3%81%97%E3%81%9F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AF%E3%80%81%E7%8F%BE%E5%9C%A8%E3%81%AF%E9%9D%9E%E5%B8%B8%E3%81%AB%E9%81%85%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%81%AB%2012%20%E5%88%86%E3%81%8B%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EExcel%E3%82%B7%E3%83%BC%E3%83%88%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%81%84%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%E3%80%81%E3%81%9D%E3%82%8C%E3%81%A8%E3%82%82JMP%E3%81%A7%E3%81%93%E3%82%8C%E3%82%92%E4%BF%AE%E6%AD%A3%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E4%BB%A5%E5%89%8D%E3%81%AF%E4%BB%A5%E4%B8%8B%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%20Excel%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E6%99%82%E9%96%93%E3%81%8C%E3%81%8B%E3%81%8B%E3%82%8A%E3%81%99%E3%81%8E%E3%81%BE%E3%81%99%E3%80%82%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EOpen(%0A%22%2FZ%3A%2FShared%2FR%26amp%3BD%2FRunsheet.xlsx%22%2C%0AWorksheets(%0A%7B%22Thickness%22%7D%0A)%2C%0AUse%20for%20all%20sheets(%201%20)%2C%0AConcatenate%20Worksheets(%201%20)%2C%0ACreate%20Concatenation%20Column(%200%20)%2C%0AWorksheet%20Settings(%0A1%2C%0AHas%20Column%20Headers(%201%20)%2C%0ANumber%20of%20Rows%20in%20Headers(%201%20)%2C%0AHeaders%20Start%20on%20Row(%202%20)%2C%0AData%20Starts%20on%20Row(%203%20)%2C%0AData%20Starts%20on%20Column(%201%20)%2C%0AData%20Ends%20on%20Row(%200%20)%2C%0AData%20Ends%20on%20Column(%2033%20)%2C%0AReplicated%20Spanned%20Rows(%201%20)%2C%0AReplicated%20Spanned%20Headers(%200%20)%2C%0ASuppress%20Hidden%20Rows(%201%20)%2C%0ASuppress%20Hidden%20Columns(%201%20)%2C%0ASuppress%20Empty%20Columns(%201%20)%2C%0ATreat%20as%20Hierarchy(%200%20)%2C%0AMultiple%20Series%20Stack(%200%20)%2C%0AImport%20Cell%20Colors(%200%20)%2C%0ALimit%20Column%20Detect(%200%20)%2C%0AColumn%20Separator%20String(%20%22-%22%20)%0A)%0A)%3B%0A%0Adt1%20%3D%20Current%20Data%20Table()%3B%0Adt1%20%26lt%3B%26lt%3B%20Set%20Name(%20%22Thickness%22)%3B%0A%0A%0A%0A%2F%2F%20I%20do%20this%20for%20a%20few%20different%20tables%20and%20then%20combine%20the%20tables%20together%20using%20the%20code%20below.%20What%20is%20taking%20so%20long%20to%20run%20this%20code%3F%0A%0A%0A%0AData%20Table(%20%22Thickness%22%20)%20%26lt%3B%26lt%3B%20Join(%0AWith(%20Data%20Table(%20%22dt2%22%20)%20)%2C%0AMerge%20Same%20Name%20Columns%2C%0AMatch%20Flag(%200%20)%2C%0ABy%20Matching%20Columns(%20%3ARun%20%23%20%3D%20%3ARun%20%23)%2C%0ADrop%20multiples(%200%2C%200%20)%2C%0AInclude%20Nonmatches(%201%2C%201%20)%2C%0APreserve%20main%20table%20order(%201%20)%2C%0AOutput%20Table(%20%22OutputTable%22%20)%0A)%3B%0A%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-778325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E3%81%A8%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E5%88%86%E6%9E%90%E3%81%A8%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%82%BA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-778419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20JMP%2018%20%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E4%BB%A5%E9%99%8D%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%AE%E5%A4%89%E6%9B%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EExcel%20%E3%81%A7%E3%82%82%E5%90%8C%E3%81%98%E3%82%AA%E3%83%BC%E3%83%97%E3%83%B3%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E5%A4%89%E5%8C%96%E3%81%AF%E8%A6%8B%E3%82%89%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%E7%B4%84%20100%20%E5%80%8B%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E9%96%8B%E3%81%84%E3%81%A6%E9%80%A3%E7%B5%90%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82Excel%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E3%82%B3%E3%83%B3%E3%83%94%E3%83%A5%E3%83%BC%E3%82%BF%E3%83%BC%20(%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%20%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96)%20%E3%81%AB%E7%A7%BB%E5%8B%95%2F%E3%82%B3%E3%83%94%E3%83%BC%E3%81%97%E3%81%A6%E3%81%8B%E3%82%89%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%97%E3%81%A6%E3%82%82%E3%80%81%E3%81%BE%E3%81%A0%E9%81%85%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-779424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20JMP%2018%20%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E4%BB%A5%E9%99%8D%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%AE%E5%A4%89%E6%9B%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-779424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%AF%E3%81%84%E3%80%81%E4%BB%8A%E8%A9%A6%E3%81%97%E3%81%A6%E3%81%BF%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81C%3A%5Cdrive%5C%20%E3%81%AB%E7%A7%BB%E5%8B%95%E3%81%97%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AB%E5%90%8C%E3%81%98%E9%95%B7%E3%81%84%E9%81%85%E5%BB%B6%20(%E4%BB%8A%E5%9B%9E%E3%81%AF%2012%20%E5%88%86%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F%2011%20%E5%88%86)%20%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%AC%A1%E3%81%AB%E3%80%81%E5%95%8F%E9%A1%8C%E3%81%8C%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%AA%E3%81%AE%E3%81%8B%E3%80%81%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%AE%E7%B5%90%E5%90%88%E3%81%AA%E3%81%AE%E3%81%8B%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E3%80%811%20%E3%81%A4%E3%81%AE%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20(%E3%82%88%E3%82%8A%E5%85%B7%E4%BD%93%E7%9A%84%E3%81%AB%E3%81%AF%E3%80%811%20%E3%81%A4%E3%81%AE%20Excel%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%201%20%E3%81%A4%E3%81%AE%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%B7%E3%83%BC%E3%83%88)%20%E3%81%A0%E3%81%91%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%97%E3%81%A6%E3%81%BF%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%81%9D%E3%82%8C%E3%81%A7%E3%82%82%203%20%E5%88%86%E3%81%8B%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%81%93%E3%82%8C%E3%81%AF%E6%94%B9%E5%96%84%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81JMP%2017%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%82%88%E3%82%8A%E3%81%AF%E3%82%8B%E3%81%8B%E3%81%AB%E9%95%B7%E3%81%84%E6%99%82%E9%96%93%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%AB%E3%81%AF%202%2C000%20%E8%A1%8C%E3%81%A8%2033%20%E5%88%97%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E5%A4%A7%E3%81%8D%E3%81%AA%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%99%E3%82%8B%E3%82%88%E3%82%8A%E9%AB%98%E9%80%9F%E3%81%AA%E6%96%B9%E6%B3%95%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E100%20%E5%80%8B%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AB%E3%81%AF%E5%A4%A7%E3%81%8D%E3%81%AA%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%8C%E5%90%AB%E3%81%BE%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8B%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-779427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20JMP%2018%20%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E4%BB%A5%E9%99%8D%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%AE%E5%A4%89%E6%9B%B4%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-779427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%8B%E3%81%A4%E3%81%A6%E3%80%81Excel%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E3%82%A4%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%88%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AB%E9%80%9F%E5%BA%A6%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E3%81%AE%E3%82%BB%E3%83%AB%E3%81%8C%E7%B5%90%E5%90%88%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%81%9D%E3%81%AE%E3%82%88%E3%81%86%E3%81%AA%E3%82%BB%E3%83%AB%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%E9%80%9F%E5%BA%A6%E3%81%8C%E6%95%B0%E6%A1%81%E5%90%91%E4%B8%8A%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E5%95%8F%E9%A1%8C%E3%81%8C%20JMP17%20%E3%81%AB%E3%81%82%E3%81%A3%E3%81%9F%E3%81%AE%E3%81%8B%20JMP18%20%E3%81%AB%E3%81%82%E3%81%A3%E3%81%9F%E3%81%AE%E3%81%8B%E3%81%AF%E6%80%9D%E3%81%84%E5%87%BA%E3%81%9B%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

JMP importing change since 18 upgrade

My scripts that I made before using the "Open" command is JSL is now way too slow. My script takes 12 minutes to execute now.

How should I import excel sheets now or please fix this but in JMP 

 

I used to import my excel files using this code below but it takes too long:

 

Open(
"/Z:/Shared/R&D/Runsheet.xlsx",
Worksheets(
{"Thickness"}
),
Use for all sheets( 1 ),
Concatenate Worksheets( 1 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 2 ),
Data Starts on Row( 3 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 33 ),
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "-" )
)
);

dt1 = Current Data Table();
dt1 << Set Name( "Thickness");



// I do this for a few different tables and then combine the tables together using the code below. What is taking so long to run this code?



Data Table( "Thickness" ) << Join(
With( Data Table( "dt2" ) ),
Merge Same Name Columns,
Match Flag( 0 ),
By Matching Columns( :Run # = :Run #),
Drop multiples( 0, 0 ),
Include Nonmatches( 1, 1 ),
Preserve main table order( 1 ),
Output Table( "OutputTable" )
);

3 REPLIES 3
Byron_JMP
Staff

Re: JMP importing change since 18 upgrade

I've been using the same open for Excel and haven't noticed any changes. I'm opening about 100 files and concatinating them.   If you move/copy your excel files to your computer (local drive)  and then run the script is it still slow?  

 

JMP Systems Engineer, Health and Life Sciences (Pharma)

Re: JMP importing change since 18 upgrade

Yup, I just tried that and I have the same long delay (11 min instead of 12 this time) when I moved it to the C:\drive\.

 

I then tried to see if the problem is the importing of the table or the joining of the tables by importing just one table (or more specifically one worksheet of one excel file), and it still took 3 min which is better, but still way longer than it used to using JMP 17.

 

The table does have 2k rows and 33 columns. Is there a faster way to import large tables?

 

Did your 100 files contain large tables?

hogi
Level XII

Re: JMP importing change since 18 upgrade

Once I had a speed issue when importing an excel file.
I found out that some cells were combined. removing such cells increased the speed by several orders of magnitude.

But I cannot remember if the issue was with JMP17 or JMP18.