Ther was no hurry and so I just drained the volume to be emptied. The daily $POJQ... for output elder than 21 days would empty the volume over time.
> You may have jobs still running on the spool. They only get removed when they are no longer active.
True, but I drained the volume two weeks ago, and the systems have been IPLed end of December. Therefore no executing jobs should have spool space allocations on the drained volume.
Anyway, I would expect JES2 to get rid of outut that is on the PURGE queue (oh, BTW, there are also jobs on the purge queue which have spool space allocations on volumes other than the drained one).
--
Peter Hunkeler
> I noticed that the jobs are in independent mode ... SYSAFF=(IND.ANY). Is your member set to independent mode (ie $D MEMBER shows IND=YES?). If not, this is likely your problem. Try a $TJ command to remove independent mode from the job (SYSAFF=(-IND)) and see if the job purges. Jobs that are marked independent can only be processing on member that are in independent mode.
I saw the independent mode indicator, and thought I should have a look if this might be the indication I'm looking for. Obviously my aging brain forgot to remember me ;-)
I'll check tomorrow and will post the result. Thanks for the hint.
--
Peter Hunkeler
> I noticed that the jobs are in independent mode ... SYSAFF=(IND.ANY). Is your member set to independent mode (ie $D MEMBER shows IND=YES?). If not, this is likely your problem.
No member currently is in independent mode. I did a $TJOBQ,Q=PURGE,SYSAFF=-IND and surprise, surprise, the output is being purged. Thanks Tom.
I'll have to find out why those jobs were assigned SYSAFF=(IND,ANY). Since the dates are wide spread, it must happen every now and then.... Something is wrong in our setup.
--
Peter Hunkeler
> I'll have to find out why those jobs were assigned SYSAFF=(IND,ANY). Since the dates are wide spread, it must happen every now and then.... Something is wrong in our setup.
It turned out, that nothing is wrong in our setup, we've just implented what TWS recommends as one out of three options to solve the problem that TWS will miss job events when the TWS tracker is stopped but jobs are still running. See below for details.
This is bad TWS design and a missuse of the JES2 independent mode option.
--
Peter Hunkeler
The text below is from "IBM Tivoli Workload Scheduler for z/OS Version 8.6 - Managing the Workload (SC32-1263-07)". We seem to have chosen option 1.
Chapter "Overview of job tracking on z/OS" - Topic "How to make sure that events are not lost"
Use one of these methods to ensure that events are not missed between the time
Tivoli Workload Scheduler for z/OS is taken down and JES (JES2 commands are
given in the example) is taken down:
Method 1
1. Remove the system being stopped from the JES2 MAS by placing it into
independent mode (issue $T MEM,IND=Y).
2. Allow the jobs currently running on this system to complete.
3. Stop the tracker (P OPCx).
4. Stop JES.
5. Re-IPL.
6. Restart JES.
7. Restart the tracker.
8. Resume normal work (issue $T MEM,IND=N).
Method 2
1. Abend JES2 ($PJES2,ABEND).
2. Stop the tracker (P OPCx).
3. Re-IPL.
4. Restart JES. This will be a hot start.
5. Restart the tracker.
Method 3
1. Take the tracker down (P OPCx).
2. Bring it up again under the master scheduler (S OPCx,SUB=MSTR).
Remember that a tracker cannot use JES services (SYSOUT data sets,
JCC) if it runs under the master scheduler.
3. Bring down JES.
4. Take the tracker down (P OPCx).
This is bad TWS design and a missuse of the JES2 independent mode option.
> If you have no reason why a job should be marked as SYSAFF=(IND) a
quick and dirty fix is to add a command to the start-up deck to issue
a periodic $TJ1-9999,SYSAFF=(-IND).
Yes, I thought about this solution for a moment. But, I decided against it.
I'm pretty sure that any job (STC, TSU) that got the IND flag set during the last IPL's independent mode phase will be purge during the next IPL phase. After all, we didn't find any such jobs on the production plex. The more than 1000 "IND" jobs I discussed initially were all on the HOLD queue on the maint plex before we purged them. They most probably would have been purged during the next IPL. I simply wasn't patient enough.
--