I wanted to print my job spool automatically(using a job scheduler) using a JCL. I was able to do that by executing the SDSF program and passing my SDSF commands in ISFIN. I was able to pass the Jobname and print into a specific file, but how do I pull the jobname specific to a particular LPAR.. Our MVS systems, has 2 LPARs running, so its possible we will be having the same jobname running in LPR1 and LPR2. And everytime I submit this job, it always prints the LPAR1 job spool but not the LPR2 job spool.
STRTASK1 S0103545 DB2TSK 15 4 EXECUTION LPR1
STRTASK1 S0087680 DB2TSK 15 88 EXECUTION LPR2
//SDSF EXEC PGM=SDSF
//ISFOUT DD SYSOUT=*
//*FILEOUT DD SYSOUT=*
//ISFIN DD *
ST
S STRTASK2
FIND STRTASK2
++S
PRINT FILE FILEOUT
PRINT
PRINT CLOSE
I even tried adding SYSNAME LPR1/2 in the above ISFIN commands, but it did not help.. Anyone has any suggestions.. Thanks in advance.