Hi All, Great to have this community! Thanks for having me here! Could you please help me how I can code the following steps below: Note: Source data are csv files that have at least 300+ columns and being dumped daily in a file location. 1. As a first step, I will be creating a data definition table which has the information of the csv's (source file) variables. I will use this file as a reference for validation. This file will have the field name, field format, field length, description, etc. 2. Read the first line of the CSV file to check and validate the column names vs. the data definition I created on step 1. If the variables are validated and correct, procede to the input statement, else if not, have an error note stating the variable(s) are not wrongly defined. 3. After the data is validated, I want to have a report e.g this &variable is not in the source file, or the source file has the wrong variable definition like var1 should be a numeric but in the source file it was a character, etc. Is there a way we can have these steps into one code? I hope you could help me. Thanks in advance!
... View more