Hi,
I am looking for advice regarding getting columns that contains certain words that I am interested in.
For instance:
I would like to get any column names that contains "Number" in the given sample data provided below. Expected returned list of columns names should be {"Flight Number" , "Tail Number"}. However, I am not able to get anything returned. My codes are as follows:
dt = open("$SAMPLE_DATA/Air Traffic.jmp");
a= "Number";
col=dt<<get column names(string);
nc=nitems(col);
xxx={};
for(i=1,i<=nc,i++,
if(contains(col,a),
insert into(xxx,i);
);
);
Any help or advice will be greatly appreciated! Thanks in advance!