I'm writing a REXX to compare the output of two jobs, and I see now that I don't know which command to use to fetch a single dataset that was created by one of the jobs. I know the job name and job number, and I can use the OUTPUT command to get all the output, like this:
address SYSVIEWE 'C(OUTPUT BSBXBSMP JOB01713)'
...But I don't need all the output, just what's in one of the output DDs. I can hit 'S' next to that DD to display the results when I'm in the SYSVIEW app, but when I'm running the REXX I need a command name. Does anyone know what SYSVIEW command that is?
Incorporate/nest a SELECT command to your desired DD....assuming jobname/jobname vars AND DD = JESMSGLG....
address Sysviewe "C(LISTFILE "jobname","jobnum";select DDNAME = JESMSGLG;LINECMD S 1)"