@Astounding The datetime format from the other table is DATETIME22.3 (11APR2019:10:27:15.780). My apologizes, when I say "this month", I meant to say the current month's value. I intend to take from SAS, but I'm not sure how in this case given the format of the date value from the other table. The table that I take the date from gets updated once a month, but the DBA told me that it is not on a prefixed date so it can be in the beginning of the month or the end. Therefore, my idea is to make my program execute only if the month value is different than the current month's value and just skip to signoff if the month values match. I wouldn't need to check the year since the data is updated every month and all the values in the datetime column I take are from the same day.
... View more