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-572468%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Econtrolla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572468%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECIAO%2C%3C%2FP%3E%3CP%3EVoglio%20creare%20una%20nuova%20colonna%20e%20prima%20di%20farlo%3A%3C%2FP%3E%3CP%3Echiedi%20alla%20tabella%20dati%20se%20la%20colonna%20esiste%20gi%C3%A0.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEsiste%20un%20modo%20%22migliore%22%20affinch%C3%A9%20il%20codice%20possa%20essere%20condiviso%20con%20altri%20colleghi%20dell'azienda%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FCheck-column-name-if-existing%2Fm-p%2F311971%23U311971%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EControlla%20il%20nome%20della%20colonna%20se%20esistente%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-check-if-list-of-columns-exist-and-report-those-that-are%2Fm-p%2F515287%23U515287%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3ECome%20verificare%20se%20esiste%20un%20elenco%20di%20colonne%20e%20segnalare%20quelle%20mancanti%20utilizzando%20una%20finestra%20pop-up%3F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FDetermining-if-a-column-exists%2Fm-p%2F6268%23U6268%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EDeterminare%20se%20esiste%20una%20colonna%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FCreate-a-new-Row-column-only-if-it-does-not-exist%2Fm-p%2F309172%23U309172%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3ECrea%20una%20nuova%20colonna%20Row()%20solo%20se%20non%20esiste%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FValidate-column-name-exists-before-graphing%2Fm-p%2F5088%23U5088%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EConvalidare%20il%20nome%20della%20colonna%20esistente%20prima%20di%20rappresentare%20graficamente%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-572468%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EPersonalizzazione%20di%20massa%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-573152%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-573152%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Equalche%20ulteriore%20approfondimento%3A%3C%2FP%3E%3CUL%3E%3CLI%3EFreddo!%3CBR%20%2F%3E%20Non%20sapevo%2Fnotavo%20che%20il%20confronto%20funziona%3CEM%3E%20senza%3C%2FEM%3E%20IL%3CSTRONG%3E%20corda%3C%2FSTRONG%3E%20opzione%20di%3CSTRONG%3E%20ottenere%20i%20nomi%20delle%20colonne%3C%2FSTRONG%3E%3CBR%20%2F%3E%20robusto%20come%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%20%40txnelson%3C%2FA%3E%20'S%3CCODE%20class%3D%22%20language-jsl%22%3E%20prova(colonna(dt%2C%22Et%C3%A0%22))%3CBR%20%2F%3E%3C%2FCODE%3E%3CSTRONG%3E%3CSPAN%3E%20et%C3%A0%20~%20Et%C3%A0%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3Ebasta%20usare%3C%2FSPAN%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%20corda%3C%2FFONT%3E%3CSPAN%3E%20come%20argomento%20per%20Ottieni%20nomi%20colonne%20se%20vuoi%20distinguere%20tra%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%20et%C3%A0%3C%2FSTRONG%3E%20E%3CSTRONG%3E%20Et%C3%A0%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0A%0AShow(dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names(String))%3B%0AShow(%20Contains(%20dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names(String)%2C%20As%20Name(%20%22Age%22)%20)%20)%3B%20%2F%2F%20-%26gt%3B%20nope%0A%0AShow(dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names)%3B%0AShow(%20Contains(%20dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names%2C%20As%20Name(%20%22Age%22)%20)%20)%3B%20%2F%2F%20found%20!%0AShow(r%3Dtry(column(dt%2C%22Age%22)%26lt%3B%3CGET%20name%3D%22%22%3E%3C%2FGET%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-573023%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-573023%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EAh%2C%20carino%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EPer%20evitare%20che%20gli%20utenti%20in%20generale%20dimentichino%20il%20file%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EAs%20Name%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Enel%20loro%20codice%2C%20che%20ne%20dici%20di%20aggiungere%20una%20funzione%20all'oggetto%20tabella%20dati%20per%20chiedere%20se%20la%20colonna%20esiste%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2Fdata-table-message-column-exists-colname%2Fm-p%2F573018%23U573018%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3Etabella%20dati%3A%20la%20colonna%20del%20messaggio%20esiste%20(colname)%3F%3C%2FA%3E%20%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Econsegnato%20con%20JMP18%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1719673103395.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1719673103395.png%22%20style%3D%22width%3A%20196px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65728iEC25FFD7B4E5CCDA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1719673103395.png%22%20alt%3D%22hogi_0-1719673103395.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-573017%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-573017%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECredo%20che%20dovresti%20semplicemente%20usare%20il%3CCODE%20class%3D%22%20language-jsl%22%3E%20Come%20nome()%3C%2FCODE%3E%20funzione%20per%20questo.Semplifica%20questi%20controlli%20e%20non%20devi%20preoccuparti%20di%20spaziatura%2Fmaiuscole%3A%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(1)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0Adt%3Aage%20%26lt%3B%26lt%3B%20set%20name(%22a%20g%20e%22)%3B%0A%0AShow(%20Contains(%20dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names%2C%20As%20Name(%20%22a%20ge%22%20)%20)%20)%3B%0A%0AShow(%20Contains(%20dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names%2C%20As%20Name(%20%22S%20%20%20eX%22%20)%20)%20)%3B%0A%0Aname%20to%20check%20%3D%20%22N%20a%20ME%22%3B%0AShow(%20Contains(%20dt%20%26lt%3B%26lt%3B%20Get%20Column%20Names%2C%20As%20Name(%20name%20to%20check%20)%20)%20)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-573006%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-573006%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIn%20realt%C3%A0%20no%3CSTRONG%3E%3CEM%3E%20Bisogno%3C%2FEM%3E%3C%2FSTRONG%3E%20per%20chiedere%20il%20nome%2C%20giusto%3F%3CBR%20%2F%3E%20Il%20trucco%20sta%20nel%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ETry(column(dt%2C%22age%22)%2C%20%3CEM%3Echeck%20for%20failure%3C%2FEM%3E)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EProva%20a%20ottenere%20la%20colonna%20e%20controlla%20se%20fallisce.%3C%2FP%3E%3CP%3ENon%20solo%20ultracorto%2C%20ma%20anche%20un'ottima%20scelta%20in%20merito%3CSTRONG%3E%20robustezza%3C%2FSTRONG%3E%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EE%2C%20come%20ciliegina%20sulla%20torta%2C%20chiedi%20alla%20rubrica%20il%20nome%3A%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Er%3Dtry(column(dt%2Ctn)%26lt%3B%3CGET%20name%3D%22%22%3E%3C%2FGET%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EUn%20bel%20trucco%20per%20ottenere%20un%20tipo%20restituito%20ben%20definito%20per%20le%20colonne%20esistenti%20e%20non%20esistenti.%20Grazie%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%20%40txnelson%3C%2FA%3E%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572570%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572570%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIl%20metodo%20pi%C3%B9%20affidabile%20che%20ho%20trovato%20%C3%A8%20chiedere%20il%20nome%20della%20variabile%2C%20%26lt%3B%26lt%3B%20get%20name%3C%2FP%3E%0A%3CP%3EOnora%20gli%20spazi%20vuoti%2C%20ecc.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt%3Dcurrent%20data%20table()%3B%0Adt%3Aage%20%26lt%3B%26lt%3B%20set%20name(%22a%20g%20e%22)%3B%0Atn%3D%22age%22%3B%0Ar%3Dtry(column(dt%2Ctn)%26lt%3B%3CGET%20name%3D%22%22%3E%3C%2FGET%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572558%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572558%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Eil%20mio%20farorite%3A%20l'idea%20di%20Jim%20di%20semplicemente%3CSTRONG%3E%20chiedere%3C%2FSTRONG%3E%20la%20tabella%20dati%20per%20la%20colonna%20e%20controlla%20se%20la%20tabella%20dati%20si%20lamenta.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMa%20anche%20questo%20approccio%20si%20basa%20sul%20fatto%20che%20l'ortografia%20del%20nome%20della%20colonna%20durante%20la%20richiesta%20si%20adatta%20al%20nome%20effettivo.%3C%2FP%3E%3CP%3Ead%20esempio%2C%20non%20trova%20%22age%20e%22%20se%20chiedi%20%22age%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMa%20la%20nuova%20rubrica%3CSTRONG%3E%20%3Aet%C3%A0%3C%2FSTRONG%3E%20taglierebbe%20tutti%20i%20collegamenti%20tra%3CSTRONG%3E%20%3Aet%C3%A0%3C%2FSTRONG%3E%20e%20la%20colonna%20esistente%3CSTRONG%3E%20%3Aet%C3%A0%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ECi%C3%B2%20potrebbe%20portare%20a%20tali%20danni%20collaterali%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(1)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0Adt%3Aage%20%26lt%3B%26lt%3B%20set%20name(%22a%20g%20e%22)%3B%0A%0AShow(dt%3A%20age%20%5B5%5D)%3B%20%2F%2F%20points%20to%20the%20existing%20column%0A%20%0ATry(%3Ais%20there%20a%20%3D%20column(dt%2C%22age%22)%2C%20%22answer%3A%20no%22)%3B%0A%0Anew%20Column(%22age%22)%3B%0AShow(dt%3A%20age%5B5%5D)%26nbsp%3B%2F%2F%26nbsp%3Bpoints%26nbsp%3Bto%26nbsp%3Bthe%26nbsp%3Bnew%26nbsp%3Bcolumn%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572549%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20controlla%20se%20la%20colonna%20esiste%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572549%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESembra%20che%20ciascuna%20di%20queste%20soluzioni%20funzionerebbe.%20Il%20pi%C3%B9%20robusto%20sarebbe%20probabilmente%20il%202%C2%B0%20collegamento%2C%20ma%20ha%20anche%20il%20maggior%20numero%20di%20righe%20di%20codice.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
hogi
Level XII

check if column exists?

Hi,

I want to create a new column and before doing so:

ask the data table if the column already exists.

 

Is there a "best" way such that the code can be shared with other colleagues in the company?

 

Check column name if existing 

How to check if list of columns exist and report those that are missing using a pop-up window? 

Determining if a column exists 

 

Validate column name exists before graphing 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: check if column exists?

The most reliable method that I have found, is to ask for the name of the variable, << get name

It honors blanks, etc.

names default to here(1);
dt=current data table();
dt:age << set name("a g e");
tn="age";
r=try(column(dt,tn)<<get name,"");
Jim

View solution in original post

7 REPLIES 7

Re: check if column exists?

Seems like each of those solutions would work. The most robust would likely be the 2nd link, but it also has the most lines of code.

hogi
Level XII

Re: check if column exists?

my farorite: Jim's idea to just ask the data table for the column and check if the data table complains.

 

But even this approach relies on the fact that the spelling of the column name while asking fits to the actual name.

e.g. it doesn't find "a g e" if you ask for "age".

 

But the new column :age would cut all links between :age and the existing column :a g e

This could lead to such collateral damages:

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt:age << set name("a g e");

Show(dt: age [5]); // points to the existing column
	
Try(:is there a = column(dt,"age"), "answer: no");

new Column("age");
Show(dt: age[5]) // points to the new column
txnelson
Super User

Re: check if column exists?

The most reliable method that I have found, is to ask for the name of the variable, << get name

It honors blanks, etc.

names default to here(1);
dt=current data table();
dt:age << set name("a g e");
tn="age";
r=try(column(dt,tn)<<get name,"");
Jim
hogi
Level XII

Re: check if column exists?

Actually, no need to ask for the name, right?
The trick lies in the 

Try(column(dt,"age"), check for failure);

Try to get the column - and check if it fails.

Not only ultra-short - but also an excellent choice regarding robustness  

 

And - as the icing on the cake - ask the column for it's name:

r=try(column(dt,tn)<<get name,"");

A nice trick to get a well-defined return type for existing and non-existing columns. Thanks @txnelson 

ErraticAttack
Level VI

Re: check if column exists?

I believe that you're just supposed to use the As Name() function for this.  It makes these checks easy and you don't have to worry about spacing / capitalizations:

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt:age << set name("a g e");

Show( Contains( dt << Get Column Names, As Name( "a ge" ) ) );

Show( Contains( dt << Get Column Names, As Name( "S   eX" ) ) );

name to check = "N a ME";
Show( Contains( dt << Get Column Names, As Name( name to check ) ) )
Jordan
hogi
Level XII

Re: check if column exists?

Ah nice

 

To prevent users in general from forgetting the

As Name

in their code, how about adding a function to the data table object to ask if the column exists:

data table : message column exists(colname)? 


delivered with JMP18: 

hogi_0-1719673103395.png

 

 

hogi
Level XII

Re: check if column exists?

some more insights:

  • cool!
    Didn't know/notice that the comparison works without the string option of get column names 
    as robust as @txnelson's   try(column(dt,"Age"))
    age ~ Age

 

  • just use string as an argument for Get Column Names if you want to differentiate between age  and  Age

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");


Show(dt << Get Column Names(String));
Show( Contains( dt << Get Column Names(String), As Name( "Age") ) ); // -> nope

Show(dt << Get Column Names);
Show( Contains( dt << Get Column Names, As Name( "Age") ) ); // found !
Show(r=try(column(dt,"Age")<<get name,"")); // found :)

Show(dt:Age[1]);
dt << New Column("Age", Numeric, Ordinal);
dt:Age[1] = 0;
Show(dt:Age[1]);


wait(1);