Joe D'Alessandro
unread,Sep 17, 2013, 2:00:29 PM9/17/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello:
I have written an exit 40 to reroute SYSOUT to another spool. This was any SYSOUT with DEST=Unnnn or =Rnnn in the local spool, so that it went to those same destinations in another spool (in fact, for VPS purposes). The exit will get control during "output processing", such as when SYSOUT is created by file I/O thru JCL or dynamic allocation, or SYSOUT which arrives via NJE. From my observation and reading, exit 40 does not get control when SYSOUT is changed via JES2 commands.
What I found was this: PDBDRMT (a binary value) contains an RJE number or a Unnnn destination depending on PDBDNODE:
If PDBDNODE not = Zero and not = "OWNNODE", then it is already going to another node, so I was ignoring this since it was already going away.
If PDBDNODE = OWNNODE, then PDBDRMT contains an RJE number.
If PDBDNODE = Zero, then PDBDRMT contains the Unnnn destination (in this case, PDBDNODE = zero means "local").
To move SYSOUT with DEST=Unnnn to another node, the exit took the data from PDBDRMT and converted this to EBCDIC and created an EBCDIC "Unnnn" character string which was then placed into PDBUSER. Then it zeroed out PDBDRMT. Then it set PDBDNODE to the new node number and returned to JES2. $GETMAIN and $FREEMAIN can be used to obtain a work area so that the exit is JES re-entrant. There may be roon in the PCE for this but that was not my choice.
To move SYSOUT with DEST=Rnnn to another node, the PDBDRMT was left untouched, and the PDBDNODE was set to the new node, and then the exit returned to JES2.
And here is one caveat: if there is more than one ST on the sending side (and therefore more than one SR on the receiving side), the SYSOUT files may land in the target node in a different order due to the independent dispatching of the JES2 PCEs on the receiving side. This may matter to some applications.
regards, Joe D'Alessandro