How to get a Plan Analyzer for Db2 for z/OS (PPA) report to a dataset.
Change the following:.LIST SYSOUT(x,,) to.LIST DDNAME(ddname) The DDNAME should point to the PDS that the output is going to written.