I don't know how your table looks like(you should provide more information)
but you can use the following command in the script in the loop and archive table by financial years:
output to "filename.dat" select * from table where some_date_column >some_date and some_date_column< some_date;