If you already do not have the job object, then the findJob command could be used to accomplish this in the following manner: (else you can directly save the job object to a file)
>> out = findJob(sched)
The command above returns an array, out, of all job objects stored in the scheduler sched. Jobs in the array are ordered by the ID property of the jobs, indicating the sequence in which they were created.