db2dat function

Get daily or monthly data from a database and build input files *.dat and *.est