I have two input files. The first one, "failed_jobs", is a list of failed jobs. These will be anywhere from 1-64 characters and may have a period "." in the jobs name at different places. The second is "exceptions", these can also be from 1-64 characters with the possibility of a period in the name. I need to exclude any job that is on the exceptions list. The exceptions may be the entire jobs name, or it may anywhere from the first 2 charters to 64. Because of the variable length matching, I am having a had time figuring out how to make this happen. Any thought would be welcome.
In this example jobs PESPCD01, any PCAIM* jobs and PDUKCM01.WEB02 should be the ones excluded from the list.
data failed_jobs; input error_code $ 1 - 8 jobs $ 9 - 73; datalines; ESPPS06 PESPCD01 ESPPS06 PESPCDAD ESPPS06 POWBCMAA ESPPS06 PCAICA00 ESPPS06 PCAICM02 ESPPS06 PCAICM03 ESPPS06 PCAICM04 ESPPS06 PCAICM05 ESPPS06 PDUKCM01 ESPPS06 PDUKCM01.WEB02 ESPPS06 PESPCD02 ; run;
data exceptions; input error_code $ 1 - 8 job_exceptions $ 9 - 73; datalines; ESPPS06 PESPCD01 ESPPS06 PCAIM ESPPS06 POWBCAXX ESPPS06 PDUKCM01.W ; run;
* final output of failed jobs; ESPPS06 PESPCDAD ESPPS06 POWBCMAA ESPPS06 PCAICA00 ESPPS06 PESPCD02 ESPPS06 PDUKCM01
... View more