Function that generates the sqjobs files