Per chiudere i 30 file, puoi anche scrivere l'azione di chiusura;
Chiudi (dt01);
Chiudi (dt02);
Chiudi (dt03);
......
È piuttosto semplice gestire più file aperti che devono essere chiusi.Di seguito è riportata un'espansione del tuo esempio, che apre le tabelle di dati, senza averle visibili, e poi le chiude quando l'attività con esse è completa.
Names Default To Here( 1 );
dList = {};
dt01 = Open( "$SAMPLE_DATA/Big Class01.jmp", invisible );
Insert Into( dList, "dt01" );
dt02 = Open( "$SAMPLE_DATA/Big Class02.jmp", invisible );
Insert Into( dList, "dt02" );
dt03 = Open( "$SAMPLE_DATA/Big Class03.jmp", invisible );
Insert Into( dList, "dt03" );
dt04 = Open( "$SAMPLE_DATA/Big Class04.jmp", invisible );
Insert Into( dList, "dt04" );
dt05 = Open( "$SAMPLE_DATA/Big Class05.jmp", invisible );
Insert Into( dList, "dt05" );
dt06 = Open( "$SAMPLE_DATA/Big Class06.jmp", invisible );
Insert Into( dList, "dt06" );
// When ready to close them
For Each( {dt, i}, dList,
Close( Eval( Parse( dList[i] ) ), nosave )
);
Anziché utilizzare l'opzione "Invisibile", è possibile utilizzare l'opzione "Privato" e quindi la tabella dei dati non è visibile nella finestra Home.
Se si desidera fornire questa funzionalità in modalità interattiva, è possibile aprire tutte le tabelle di dati e quindi, utilizzando la finestra Home, è possibile evidenziare tutta la tabella di dati che si desidera chiudere, quindi fare clic con il pulsante destro del mouse e selezionare "Chiudi ".JMP chiederà se si desidera salvare le tabelle di dati, è possibile selezionare "Salva nessuno" e quindi chiuderà tutte le tabelle di dati evidenziate tutte in una volta.
Dai un'occhiata all'importazione di più file. MFI può caricare file esterni simili in una singola tabella di dati JMP.
Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Import all the xlsx files from a directory.Importa tutti i file xlsx da una directory.
È possibile salvare (e modificare) lo script per reimportarlo nuovamente.
È necessario importare i dati in una tabella di dati. Presumo che tu voglia evitare la noia di aprire e chiudere singoli file. Hai provato il Importazione di file multipli caratteristica?
Ciao gente,
Sto usando gli script JMP per importare i dati di 30 file Excel. Quando lo eseguo, ci saranno 30 tabelle di dati aperte durante l'azione "Apri". Quindi devo chiudere manualmente ciascuna di queste 30 tabelle di dati, il che è molto noioso. C'è un modo per leggere/importare i dati da Excel senza aprire la tabella dei dati in modo da non dover chiudere la tabella dei dati uno per uno? I tuoi commenti/suggerimenti sono molto apprezzati.
Per esempio:
Names Default To Here( 1 );
dt01 = Open( "$SAMPLE_DATA/Big Class01.jmp" );
dt02 = Open( "$SAMPLE_DATA/Big Class02.jmp" );
dt03 = Open( "$SAMPLE_DATA/Big Class03.jmp" );
dt04 = Open( "$SAMPLE_DATA/Big Class04.jmp" );
dt05 = Open( "$SAMPLE_DATA/Big Class05.jmp" );
dt06 = Open( "$SAMPLE_DATA/Big Class06.jmp" );
....