I have tables that are generated and the format is different from time to time and it breaks my script. The tables are massive and so the way i handle my loops is that i import the first 100 rows and 5 columns, for speed. Then i search a particular column for a keyword to help me know where which row the real data starts. I close the file then reopen with that variable identifying the column header and data start.
However, as mentioned above about 1% of the files are dorked up and have extra columns at the beginning and sometimes a few hundred random rows so it trips up my script. I was thinking that if I can search the whole abreviated table for my keyword then i can get around it but i'm unsure how to search multiple columns at once, especially when the column names change.
Here is the method that I currently use to identify my row, looking in a particular column. How do i open this up to search columns 1-10 or even the whole table?
//nr1 becomes the column headers and nr2 becomes the first row of data when i reopen the full table.
nr1 = dt << get rows where( :Col1 == "customparameter" );
nr2 = nr1 + 1;