Hi all
I am working on a way to clean a user-generated table and I'm incurring in an issue: the code compile correctly, but it doesn't work
I have a table with unknown columns (read: multiple, variable, hand-written by user) both in numbers and names.
I would like to perform a simple standardization, let's say polish the values from unwanted spaces and uppercase errors.
so I generate a list with column names, put up a cycle and place a for each row inside.
It compile, but doesn't work. any suggestion? the code is here
user_page = open ("\user\page.csv", labels(1));
full_list = user_page <<Get Column Names(string);
for (i=1,i<Nitems(full_list)+1,i++,
sclmn = ":"||full_list;
for each row (sclmn = trim (sclmn));
for each row (sclmn = lowercase (sclmn));
);
I tried several variations, using a column reference instead of a string, or using Eval(), but all failed to compile. This layout is the only one compiling, but still doesn't work. Can someone help me to understand why?