Re: JES2 - keeping only selected outputs
Thank you all, I see some very interesting ideas. I will discuss them with my colleague. Best regards, Natasa -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
We have a product that allows management of hte spool data, and one of the features is to keep the job's condition codes. If your really interested, I'm pretty sure that I could add the support to do what you're asking for. I could set up "table" that would allow names and max cond codes, and for tasks found in that table, only keep the ones that match (or don't match) or beat the condition code(s) you specified. Let me know if you're interested and I can code it up for you. Brian -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
is there a way to keep job output only if the RC > 0 ? What I've done is have a unique purge sysout class and then review the job at end of execution (eg JES3 IATUX19/72 or JES2 exit51, maybe exit40) to check the max return code and change the class then. Jack Kelly 202-502-2390 (Office) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
The way I do it is to have a Jes output class defined with outputdisp of purge,hold. Have msgclass and all output in job assigned to this class. Then add a step to your job that checks for CC GT 0 and if so exec a non-existent program to generate a S806 abend. > -Original Message- > From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On > Behalf Of Natasa Savinc > Sent: Tuesday, October 27, 2009 6:02 AM > To: IBM-MAIN@BAMA.UA.EDU > Subject: JES2 - keeping only selected outputs > > Hello, > > is there a way to keep job output only if the RC > 0 ? We have a nuber > of jobs > that run very often (every few minutes) and we don't really need the > output if > the RC = 0. > Every suggestion will be very appreciated. > > Natasa > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
Natasa, Do you need to keep the JCL plus SYSOUT? Or do you just need the sysout? If just the sysout, then I would write it out to a temp file (or GDG if you need it longer) and then use a last step to either print or purge. If you need the whole job (JCL + SYSOUT) then the last step could be an SDSF REXX step or you could just the JES2 PURGE command here. If you have an automation product like OPS/MVS then you could have the last step be a WTO that OPS/MVS catches and purges if CC=0. Lizette > Hello, > > is there a way to keep job output only if the RC > 0 ? We have a nuber of jobs > that run very often (every few minutes) and we don't really need the output if > the RC = 0. > Every suggestion will be very appreciated. > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
RES: JES2 - keeping only selected outputs
There is a program from Mr Saint-flour that can help you. It's in CBT file 183. CMDJ Send a JES2 command with the current job's number (must be authorized) Example: //PURGEJOB EXEC PGM=CMDJES2,PARM=P If the current job's number is JOB01234, then the following command is issued: $PJ 01234 Atenciosamente / Regards / Saludos Ituriel do Nascimento Neto Banco Bradesco S/A 4254 - DPCD Engenharia de Software Sistemas Operacionais Mainframes Tel: +55 11 4197-2021 R: 22021 Fax: +55 11 4197-2814 |-Mensagem original- |De: IBM Mainframe Discussion List |[mailto:ibm-m...@bama.ua.edu] Em nome de Bob Shannon |Enviada em: terça-feira, 27 de outubro de 2009 09:56 |Para: IBM-MAIN@bama.ua.edu |Assunto: Re: JES2 - keeping only selected outputs | |> is there a way to keep job output only if the RC > 0 ? | |If you have some type of automation, you can periodically |start a batch job that uses the SDSF Rexx interface to check |the RC and delete what isn't wanted. | |Bob Shannon |Rocket Software | |-- |For IBM-MAIN subscribe / signoff / archive access |instructions, send email to lists...@bama.ua.edu with the |message: GET IBM-MAIN INFO Search the archives at |http://bama.ua.edu/archives/ibm-main.html | AVISO LEGAL Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é dirigida, podendo conter informação confidencial e/ou legalmente privilegiada. Se você não for destinatário desta mensagem, desde já fica notificado de abster-se a divulgar, copiar, distribuir, examinar ou, de qualquer forma, utilizar a informação contida nesta mensagem, por ser ilegal. Caso você tenha recebido esta mensagem por engano, pedimos que nos retorne este E-Mail, promovendo, desde logo, a eliminação do seu conteúdo em sua base de dados, registros ou sistema de controle. Fica desprovida de eficácia e validade a mensagem que contiver vínculos obrigacionais, expedida por quem não detenha poderes de representação. LEGAL ADVICE This message is exclusively destined for the people to whom it is directed, and it can bear private and/or legally exceptional information. If you are not addressee of this message, since now you are advised to not release, copy, distribute, check or, otherwise, use the information contained in this message, because it is illegal. If you received this message by mistake, we ask you to return this email, making possible, as soon as possible, the elimination of its contents of your database, registrations or controls system. The message that bears any mandatory links, issued by someone who has no representation powers, shall be null or void. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
> is there a way to keep job output only if the RC > 0 ? If you have some type of automation, you can periodically start a batch job that uses the SDSF Rexx interface to check the RC and delete what isn't wanted. Bob Shannon Rocket Software -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
On Tue, 27 Oct 2009 05:02:15 -0500, Natasa Savinc wrote: >Hello, > >is there a way to keep job output only if the RC > 0 ? We have a nuber of jobs >that run very often (every few minutes) and we don't really need the output if >the RC = 0. >Every suggestion will be very appreciated. > Look at the message checking code in CHEW in file 172 of the CBT tape. You should be able to adapt that fairly easily to your requirements. D -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JES2 - keeping only selected outputs
Natasa Savinc pisze: Hello, is there a way to keep job output only if the RC > 0 ? We have a nuber of jobs that run very often (every few minutes) and we don't really need the output if the RC = 0. Every suggestion will be very appreciated. HCD jobs are some example. Output is directed to temporary file and conditional step (IEBGENER) which prinst the sysout. It worsk only for program sysouts, it doesn't keep JES* files. -- Radoslaw Skorupka Lodz, Poland -- BRE Bank SA ul. Senatorska 18 00-950 Warszawa www.brebank.pl Sd Rejonowy dla m. st. Warszawy XII Wydzia Gospodarczy Krajowego Rejestru Sdowego, nr rejestru przedsibiorców KRS 025237 NIP: 526-021-50-88 Wedug stanu na dzie 01.01.2009 r. kapita zakadowy BRE Banku SA (w caoci wpacony) wynosi 118.763.528 zotych. W zwizku z realizacj warunkowego podwyszenia kapitau zakadowego, na podstawie uchway XXI WZ z dnia 16 marca 2008r., oraz uchway XVI NWZ z dnia 27 padziernika 2008r., moe ulec podwyszeniu do kwoty 123.763.528 z. Akcje w podwyszonym kapitale zakadowym BRE Banku SA bd w caoci opacone. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
JES2 - keeping only selected outputs
Hello, is there a way to keep job output only if the RC > 0 ? We have a nuber of jobs that run very often (every few minutes) and we don't really need the output if the RC = 0. Every suggestion will be very appreciated. Natasa -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html