In common with many sites, I have automatic JES2 commands to keep the spool utilisation down and workable.
These include 2 specific commands for this:
$po jobq,/held,days>5
$po jobq,all,protected,days>14
However, I have a job which is required to be kept on spool for longer, due to some specific testing against its output.
It's characteristics are:
$HASP686 OUTPUT(jobname) OUTGRP=1.1.1,BURST=NO,FCB=****,
$HASP686 FLASH=****,FORMS=STD,HOLD=(NONE),
$HASP686 OUTDISP=WRITE,PRIORITY=96,
$HASP686 PRMODE=LINE,QUEUE=A,
$HASP686 RECORDS=(15182 OF 15182),
$HASP686 ROUTECDE=LOCAL,SECLABEL=,TPJOBID=,
$HASP686 TPJOBN=,TSOAVAIL=NO,UCS=****,
$HASP686 USERID=usern,WRITER=
Any suggestions as to:
1. Change the automatic commands to exclude certain jobs, along with SDSF line command to stop it from being deleted2.
Any other method you may use
I've tried the H commnad in SDSF which changes its status to HOLD on the ST panel, and removes it from the O and/or H panel displays already.
Many thanks in advance.
purging JES2 output whilst retaining required jobs
-
- Posts: 6
- Joined: Fri Jan 08, 2016 3:18 pm
- Skillset: MVS and zOS systems programmer, programming in COBOL, Assembler, PL1
- Referer: Previous use after initial search via Google
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: purging JES2 output whilst retaining required jobs
This "requirement" is why output managers exist. I can think of at least 3 that CA Technologies (or whatever they call themselves this week) markets (though I think they have more or less forgotten the simplest (and cheapest)) and I know there are more from other vendors that will extract the job from JES2, hold the output in its data area and allow JES2 to purge the output in a more timely manner. JES2 was never intended to hold output for an extended period.
-
- Posts: 6
- Joined: Fri Jan 08, 2016 3:18 pm
- Skillset: MVS and zOS systems programmer, programming in COBOL, Assembler, PL1
- Referer: Previous use after initial search via Google
Re: purging JES2 output whilst retaining required jobs
Thanks Steve. Understood that spool output managers can do this, but we don't have one for our small shop. So, just wondered if anybody has found a timely way to achieve this?
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: purging JES2 output whilst retaining required jobs
Not my area of expertise but...can you not print to dataset? I forget the SDSF command that does it in one but simple to allocate a dataset of the right characteristics and then copy.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 6
- Joined: Fri Jan 08, 2016 3:18 pm
- Skillset: MVS and zOS systems programmer, programming in COBOL, Assembler, PL1
- Referer: Previous use after initial search via Google
Re: purging JES2 output whilst retaining required jobs
Nic, Yes, we do that regularly, but this particular application requires it to be on spool still?
I have considered using OFFLOAD processing to save it, then recall it into the system.
Not ideal, but it might keep buying us time?!
I have considered using OFFLOAD processing to save it, then recall it into the system.
Not ideal, but it might keep buying us time?!
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: purging JES2 output whilst retaining required jobs
Supply the people concerned with a job to offload which would run after their testing is done and a job to reload when their testing begins.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: purging JES2 output whilst retaining required jobs
One solution is to route that job and other like it to a seperate destination. Remember that in JES2 a destination is just a name, you do not need a RMT or NJE node associated with it. Then change your PURGE commands to only hit dest LOCAL.
And you can route those jobs by an automatic command too.
Of course you still ned some housekeeping to handle those nonLOCAL destinations.
And you can route those jobs by an automatic command too.
Of course you still ned some housekeeping to handle those nonLOCAL destinations.
-
- Posts: 6
- Joined: Fri Jan 08, 2016 3:18 pm
- Skillset: MVS and zOS systems programmer, programming in COBOL, Assembler, PL1
- Referer: Previous use after initial search via Google
Re: purging JES2 output whilst retaining required jobs
Willy, excellent idea. I'd already thought of it, but am currently unsure how to change my two purging commands to only purge LOCAL dest jobs?
Remember my 2 purge commands right now are:
$po jobq,/held,days>5
$po jobq,all,protected,days>14
Remember my 2 purge commands right now are:
$po jobq,/held,days>5
$po jobq,all,protected,days>14
-
- Posts: 6
- Joined: Fri Jan 08, 2016 3:18 pm
- Skillset: MVS and zOS systems programmer, programming in COBOL, Assembler, PL1
- Referer: Previous use after initial search via Google
Re: purging JES2 output whilst retaining required jobs
NicC wrote:Supply the people concerned with a job to offload which would run after their testing is done and a job to reload when their testing begins.
Nic,
I have already manually done this via the OFFLOAD commands.
But if there's a way to submit a batch job to do this, I'd love to hear how?
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: purging JES2 output whilst retaining required jobs
Small test, command '$POJ(*),JOBMASK=WJGENER,DEST=LOCAL' deletes the named job in LOCAL while leaving a job of the same name in dest T1. So the DEST=LOCAL should do the trick. Better test it though...
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 1220
-
by stel
View the latest post
Wed Sep 21, 2022 1:06 pm
-
- 0
- 1021
-
by biswajit
View the latest post
Mon Mar 03, 2025 8:54 pm
-
- 3
- 2792
-
by willy jensen
View the latest post
Tue Jun 29, 2021 1:36 pm
-
- 11
- 3716
-
by willy jensen
View the latest post
Thu Oct 15, 2020 1:25 am
-
- 2
- 2296
-
by Pedro
View the latest post
Tue Feb 27, 2024 4:44 am