JCL to Purge All Held output?

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
neomaxi
Member
Posts: 6
Joined: Tue Jul 07, 2015 6:32 pm

JCL to Purge All Held output?

Post by neomaxi » Tue Jul 07, 2015 6:35 pm

Sometimes I can get 100's of sysout jobs in my held que.
As of right now, I have to put a "P" on every one to purge.. which seems tedious. Is there a way in JCL i can just purge all my held output??

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Tue Jul 07, 2015 8:09 pm

You should be able to do a block purge if you are talking about SDSF. Talk to your technical support for anything they have which would allow something by running a job. Avoid taking stuff from the internet and then breaching your site security by trying to run it.

neomaxi
Member
Posts: 6
Joined: Tue Jul 07, 2015 6:32 pm

Post by neomaxi » Tue Jul 07, 2015 8:29 pm

William Collins wrote:You should be able to do a block purge if you are talking about SDSF. Talk to your technical support for anything they have which would allow something by running a job. Avoid taking stuff from the internet and then breaching your site security by trying to run it.

I asked them, they don't know of anyway to do that.

Do anyone do a block purge, if so , what is the commmand? othewise if you use JCL, can you post it?

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Jul 08, 2015 3:09 am

You start your block with //, end it with //p, press enter and confirm.

neomaxi
Member
Posts: 6
Joined: Tue Jul 07, 2015 6:32 pm

Post by neomaxi » Thu Jul 09, 2015 2:59 am

William Collins wrote:You start your block with //, end it with //p, press enter and confirm.
Awesome! Thanks!

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others