i.e. for each .csv file, do the following:
Check if the file contains the string “HEADER” in the first line. If its missing, do the following:
- Display, “ERROR: Missing HEADER record for ”
- Rename the file from .csv to .head
- Proceed to process the next file