I have run a batch job on the IBM i machine and generated the Job log for the Job so that the job log can be analyzed by the support team but they have asked me to not send the PDF format of the job log which is very easy to extract for me and send it but they instead requested me to copy it to a flat file and send it then.
how to copy the Job log to the flat file.
Once, the flat file is ready I can save that flat file containing the job log in an SAVF file and download and share it.
You can follow these steps to copy the job log into a flat file:
crtpf file(qtemp/joblog) rcdlen (150) ccsid(65535)
dspjoblog job(job number/user profile/job name) output(*print)
cpysplf file(qpjoblog) tofile(qtemp/joblog) splnbr(*last)
Your flat file is ready with job log data of the provided job in
DSPJOBLOG
command and now you can save this flat file in a Save file and share it.