In the interactive world, you can use the Column Viewer and under the red triangle, you will find the ability to select columns based upon Modeling Type. Just select the modeling types you want, and then just click on Subset
Here is one way, and the easiest way I know of in JSL:
nomdata = Current Data Table() << get column names( nominal );
condata = Current Data Table() << get column names( continuous );
Jim