Ciao a tutti!
Ci sono molti file di dati nel percorso C: \ 1. Hanno la stessa struttura dei nomi delle colonne con 50 colonne. Come utilizzare l'implementazione JSL per combinare i dati nelle colonne 3 e 5 di questi file in una nuova tabella di dati.
Impostazione: il formato del tipo di dati della colonna 3 è Carattere e il formato del tipo di dati della colonna 5 è numerico.
Come Big class.jmp, ma con 50 colonne.
Grazie!

Ecco un buon inizio per fare ciò che vuoi ....... sii attento, dati i parametri che hai dato riguardo alle tabelle che stai per leggere, il tavolo finale sarà di 600.000.000 di righe. Ci vorrà molto tempo per elaborare quella quantità di dati.
Names Default To Here( 1 );
// Set the path to the folder to get the files from
// Make sure a "/" is the last character in the path
// Change the value below to the actual path you need to point to
dirPath = "$SAMPLE_DATA/";
// Get all of the files from the folder
allFilesList = Files In Directory( dirPath );
// set the pointer to the final data table to a null value
dt = "";
// Loop across all of the files and concatenate them together
For( i = 1, i <= N Items( allFilesList ), i++,
// Open the file
dtIn = Open( dirPath || allFilesList[i], invisible );
dtIn << run formulas; // make sure all records are run before continuing the process
// In my test case, I make sure there are at least the 5 columns
If( N Cols( dtIn ) >= 5,
// Make sure the 3rd and 5th columns are of the correct type, and give them a standard name
Column( dtIn, 3 ) << data type( character ) << set name( "__3__" );
Try( Column( dtIn, 3 ) << delete property( "formula" ) );
Column( dtIn, 5 ) << data type( numeric ) << modeling type( continuous ) << set name( "__5__" );
Try( Column( dtIn, 3 ) << delete property( "formula" ) );
Wait( 0 );
// Delete all columns except the 3rd and 5th columns
dtIn << delete columns( Index( 6, N Cols( dtIn ) ) );
Wait( 0 );
dtIn << delete columns( 4 );
Wait( 0 );
dtIn << delete columns( {1, 2} );
Wait( 0 );
// If this is the first data table, set the variable dt to point to the data table
If( dt == "",
dt = dtIn,
// If not the first data table, then contatenate it to the first table
Try( dt = dt << concatenate( dtIn, Append to first table( 1 ) ) );
// Close the table just read into JMP since we are done with it
Close( dtIn, nosave );
// This is a check I found I needed to make to insure only the 3rd and 5th columns are left
If( Ncol(dt)>2,
dt<<DELETE columns=""></DELETE>Grazie a Jim!
Io uso il JMP Pro 14.
Voglio farlo in una sceneggiatura.
Ci sono oltre 3.000 file, ognuno dei quali ha oltre 200.000 righe e 50 colonne.
I dettagli dipenderanno dalle specifiche del tuo caso d'uso. Ma vorrei iniziare rivedendo cosa importazione di file multipli può fare (richiede JMP 14).