add new function to generate file for jobs