Jarno,
Great input. In fact I was starting to look at the "Is Empty" route last night. So to finalize the discussion to eliminate formulas and concatenate, I took your suggestions and updated my skillset by coding your suggestions. In addition, per my original post and code, I made updates that worked as well.
- First block is using the "Is Empty" statement to single out NO formula columns, and just eliminate formulas of the rest.
- Second block is using "Try" which I didn't fully understand at first when you suggested it even after I looked at the scripting index. I thought execution would stop like previous attempts, but obviously not.
- Third block uses "Suppress formula eval" for the first table opened. All other tables are concatenated to this first table, which also gives a desired output where final concatenated table columns are not evaluated.
I can't thank you enough for al your input to help me improve my skills.
Neil
For( i=1, i <= N Items(b), i++,
If(i==1,
file_1 = Open(SD1 || b[1]);
CN = file_1 << get column names(numeric);
For(j=1, j <= N Items(CN), j++,
result = Column(file_1, CN[j]) << Get Formula;
y = Is Empty(result);
If(y==0, Column(file_1, CN[j]) << delete formula);
);
);
If(i > 1,
file_nxt = Open(SD1 || b[i], Private);
file_1 << Concatenate(file_nxt, append to first table);
Close(file_nxt, no save);
);
);
file_1 << Save(SD1 || "All Summary");
Close("All Summary");
For( i=1, i <= N Items(b), i++,
If(i==1,
file_1 = Open(SD1 || b[1]);
CN = file_1 << get column names(numeric);
For(j=1, j <= N Items(CN), j++,
Try(Column(file_1, CN[j]) << delete formula);
);
);
If(i > 1,
file_nxt = Open(SD1 || b[i], Private);
file_1 << Concatenate(file_nxt, append to first table);
Close(file_nxt, no save);
);
);
file_1 << Save(SD1 || "All Summary");
Close("All Summary");
For( i=1, i <= N Items(b), i++,
If(i==1,
file_1 = Open(SD1 || b[1]);
file_1 << Suppress Formula Eval(1);
);
If(i > 1,
file_nxt = Open(SD1 || b[i], Private);
file_1 << Concatenate(file_nxt, append to first table);
Close(file_nxt, no save);
);
);
file_1 << Save(SD1 || "All Summary");
Close("All Summary");
Neil