Here is one way to handle the issue. Just check to see if the column has all missing values, and if so, then do not include it into the list of good columns.
Names Default To Here( 1 );
dt = Current Data Table();
colNames = dt << get column names( string, continuous );
newcolNames = ":Name(\!"" || colNames[1] || "\!")";
For( i = 2, i <= N Items( colNames ), i++,
If( Col Number( Column( colNames[i] ) ) != 0,
newcolNames = newcolNames || ",:Name(\!"" || colNames[i] || "\!")"
)
);
Eval(
Parse(
"Control Chart Builder(
Size( 534, 456 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables(
Y("
|| newcolNames || ")));"
)
);
Jim