Hi everyone. I'm kind of new to SAS programming, I'm using EG 5.1 but have access to 7.1 and I'm having a little problem with a requirement. I'm importing a number of plain text files (txt, csv, etc.) into sas datasets, but I'm trying to validate those files before: - First, I'm checking the existence of those files. DONE - Second, I'm counting the number of lines in order to assure the observations number is the expected. DONE - Third, I want to verifiy that the columns the dataset will have makes sense with the predefined layout of each table. In process So far I think the best, and fastest way to do the third point, is importing the first line of each file and count either width (for fixed-width files) or number of delimiters, depending on each file. The thing is I'm not sure on how to do this, or if there's a better way of validating what i want. Think you can help me here? Thanks in advance!
... View more