JSL - what am I doing wrong?
Hi,
I am trying to write a simple script that will open a csv file and then remove selected columns/ rows. I can get the script to open up the table OK but it does nothing after that. Please can you advise where I have gone wrong? Script below:
dt=open(
Pick File(
"Select a *.csv file",
Get Current Directory(),
{"All JMP Files|jmp;jsl;jrn;csv", "All Files|*"}
),
columns(
Name( "Date" ) = Character,
Time = Character,
Counter = Character,
Printed number = Numeric,
System Result = Character,
PiercePosX 1 = Numeric,
PiercePosX 2 = Numeric,
PiercePos X = Numeric,
Column 9 = Numeric,
Column 10 = Numeric,
Column 11 = Numeric,
Column 12 = Numeric,
Column 13 = Numeric,
Column 14 = Numeric,
Column 15 = Numeric,
Column 16 = Numeric,
Column 17 = Numeric,
Column 18 = Numeric,
Column 19 = Numeric,
Column 20 = Numeric,
Column 21 = Numeric,
Column 22 = Numeric,
Column 23 = Numeric,
Column 24 = Numeric,
Column 25 = Numeric,
Column 26 = Numeric,
Column 27 = Numeric,
Column 28 = Numeric,
Column 29 = Numeric,
Column 30 = Numeric,
Column 31 = Numeric,
Column 32 = Numeric,
Column 33 = Numeric,
Column 34 = Numeric,
Column 35 = Numeric,
Column 36 = Numeric,
Column 37 = Numeric,
Column 38 = Numeric,
Column 39 = Numeric,
Column 40 = Numeric,
Column 41 = Numeric,
Column 42 = Numeric,
Column 43 = Numeric,
Column 44 = Numeric,
Column 45 = Numeric,
Column 46 = Numeric,
Column 47 = Numeric,
Column 48 = Numeric,
Column 49 = Numeric,
Column 50 = Numeric,
Column 51 = Numeric,
Column 52 = Numeric,
Column 53 = Numeric,
Column 54 = Numeric,
Column 55 = Numeric,
Column 56 = Numeric
),
Import Settings(
End Of Line( CRLF, CR, LF ),
End Of Field( Comma ),
Strip Quotes( 0 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Labels( 1 ),
Column Names Start( 6 ),
Data Starts(7 ),
Lines To Read( All ),
Year Rule( "10-90" )
),
dt << delete rows( 64 );
dt << delete rows( 63 );
dt << delete rows( 1 );
);
Thanks,
Adam