Using a Parameter table to tell SQL when to look for a file

Copper Contributor

Hello All,


I am trying to automate a process that will populate a table with all transactions that occurred the previous day.  I have 25 different groups that receive these transactions.  The problem is that not every group receives transactions every day.  Some will, others only receive them Monday through Friday and still others receive them only once a week or twice a month.


If a group should not have received a file yesterday, I need to program that so the system doesn't go and look for yesterday's file for that group.  My first impression is to provide a static parameter table that will list each group and the days of the week that each group will receive a file: for example, 1,2,3,4,5,6,7 for daily or 2,3,4,5,6 for Monday through Friday.  However I am open to suggestions if there is an easier way.  I just need to accurately know if we missed a file or not.


Any help is appreciated,




0 Replies