Hi,
I need to delete multiple columns based the strings they contain but sometimes I want to keep some others even if they don't contain those strings.
So by following this post's solution Deleting multiple columns based on column name
dt = Open( "$sample_data/Hollywood Movies.jmp" );
col_names = dt << Get Column Names( String );
For( i = N Items( col_names ), i > 0, i--,
If(
Not(
Contains( col_names[i], "Gross") | contains(col_names[i], "Genre" ) | col_names[i] == "theme"),
Remove From( col_names, i)
)
);
So, what I want to have is remove anything not contains with "Gross" or "Genre" but if the column name is == "theme" don't remove it.
It seems it does not work for now ! Why?

The second bullet to this question
How can I see col_names as a data table so I can know what is the output without hovering on the col_names. Because sometimes I have a long list of col names and hovering is not efficient to see what is in that column list.
Thanks!