Create a view that returns the data you are looking for. eg:
select FIELDLIST from TABLENAME where header4 = 1
Then use the view in a data transformation package (I know they are called something else these days, but it's the same thing) that exports the results to CSV. Use the Task Scheduler to schedule this to happen as needed.