Re: AW: Re: job output into dataset
Hello All, Finally problem has been resolved and solution is, Basically , even though we specify 15 min or 1 hr etc in jeslog spin command, there is no mechanism in jes2 to trigger SPIN. So, Whenever any new message comes in JESMSGLG and JESMSGSG, then jes2 check spin parameter value and see if time interval we specified is over , if yes then it start spin process... Thanks for all help. On Mon, May 15, 2017 at 5:31 PM, Lizette Koehler <stars...@mindspring.com> wrote: > A $S with nothing else is to Start JES2 Processing. Please review the > JES2 Commands manual for what it does. > > If you are not the system programmer, you need to work with that team at > your shop. When you change the STC Class in the JES2 INIT DECK, it is > changed for ALL STCs. This could impact space in your SPOOL and CKPT > dataset for JES2. > > If you have a Sandbox to work in, you will need to work with the commands > and see how each works. > > The JES2 COMMANDS manual can be helpful when learning new functions in > JES2. > > The JES2 INIT and TUNING Reference can be helpful when learning new > functions. > > Working with your z/OS System programmer can be helpful when setting up > new functions. > > > Lizette > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > > Behalf Of venkat kulkarni > > Sent: Sunday, May 14, 2017 9:55 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: AW: Re: job output into dataset > > > > Hello Lizette, > > > > So, After modifying STC job class JES2 Log parameter with spin, i will > have > > to use $S command to start this process. > > > > Please suggest, as I have not used this before. > > > > Thanks > > > > On 14-May-2017 3:09 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > > wrote: > > > > > 1) Finally, we wanted all STC JES DD to be spin off at morning 9 AM > daily. > > > > > > 2) So, I set my STC Job class to > > > > > > > > > > > > RESPONSE=TST1 > > > > > > $HASP837 JOBCLASS(STC) > > > > > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > > > > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > > > > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > > > > > $HASP837 +0:15),LOG=YES,MSGLEVEL=(1,1), > > > > > > $HASP837 MSGCLASS=Z,OUTDISP=(HOLD,HOLD), > > > > > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > > > > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > > > > > $HASP837 TIME=(000120,00),TYPE26=YES, > > > > > > $HASP837 TYPE6=YES > > > > > > > > > > > > > > > > > > 3) My MSGCLASS Z is set to > > > > > > > > > > > > RESPONSE=TST1 > > > > > > $HASP842 OUTCLASS(Z) > > > > > > $HASP842 OUTCLASS(Z) OUTPUT=PRINT,BLNKTRNC=YES, > > > > > > $HASP842 OUTDISP=(PURGE,HOLD),TRKCELL=NO > > > > > > > > > > > > > > > > > > 3) After all this above changes, I restarted my one of the STC task , > > > IMS address space to test and result is > > > > > > > > > > > > a) I am able to spin JES DD manually by using "W" command or by using > > > /$T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG command and I can see output in > > > held queue. > > > > > > b) But if you look at changes, I made above in my JESLOG parameter in > > > STC class to start spin in every 15 min, it’s not starting. I am not > > > able to find root cause of this issue now. > > > > > > > > > > > > I want to know that what more I am missing to start this automated > > > SPIN working for my all STC task > > > > > > On 12-May-2017 5:05 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > > > wrote: > > > > > >> Thanks and I made all these suggested changes in stc class jes > > >> parmlib member. > > >> But to take this in effect, do I need to restart the address space or > > >> it will pick up these new value automatically after changing stc > > >> class using $T command. > > >> > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
A $S with nothing else is to Start JES2 Processing. Please review the JES2 Commands manual for what it does. If you are not the system programmer, you need to work with that team at your shop. When you change the STC Class in the JES2 INIT DECK, it is changed for ALL STCs. This could impact space in your SPOOL and CKPT dataset for JES2. If you have a Sandbox to work in, you will need to work with the commands and see how each works. The JES2 COMMANDS manual can be helpful when learning new functions in JES2. The JES2 INIT and TUNING Reference can be helpful when learning new functions. Working with your z/OS System programmer can be helpful when setting up new functions. Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Sunday, May 14, 2017 9:55 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Hello Lizette, > > So, After modifying STC job class JES2 Log parameter with spin, i will have > to use $S command to start this process. > > Please suggest, as I have not used this before. > > Thanks > > On 14-May-2017 3:09 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > wrote: > > > 1) Finally, we wanted all STC JES DD to be spin off at morning 9 AM daily. > > > > 2) So, I set my STC Job class to > > > > > > > > RESPONSE=TST1 > > > > $HASP837 JOBCLASS(STC) > > > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > > > $HASP837 +0:15),LOG=YES,MSGLEVEL=(1,1), > > > > $HASP837 MSGCLASS=Z,OUTDISP=(HOLD,HOLD), > > > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > > > $HASP837 TIME=(000120,00),TYPE26=YES, > > > > $HASP837 TYPE6=YES > > > > > > > > > > > > 3) My MSGCLASS Z is set to > > > > > > > > RESPONSE=TST1 > > > > $HASP842 OUTCLASS(Z) > > > > $HASP842 OUTCLASS(Z) OUTPUT=PRINT,BLNKTRNC=YES, > > > > $HASP842 OUTDISP=(PURGE,HOLD),TRKCELL=NO > > > > > > > > > > > > 3) After all this above changes, I restarted my one of the STC task , > > IMS address space to test and result is > > > > > > > > a) I am able to spin JES DD manually by using "W" command or by using > > /$T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG command and I can see output in > > held queue. > > > > b) But if you look at changes, I made above in my JESLOG parameter in > > STC class to start spin in every 15 min, it’s not starting. I am not > > able to find root cause of this issue now. > > > > > > > > I want to know that what more I am missing to start this automated > > SPIN working for my all STC task > > > > On 12-May-2017 5:05 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > > wrote: > > > >> Thanks and I made all these suggested changes in stc class jes > >> parmlib member. > >> But to take this in effect, do I need to restart the address space or > >> it will pick up these new value automatically after changing stc > >> class using $T command. > >> -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Hello Lizette, So, After modifying STC job class JES2 Log parameter with spin, i will have to use $S command to start this process. Please suggest, as I have not used this before. Thanks On 14-May-2017 3:09 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> wrote: > 1) Finally, we wanted all STC JES DD to be spin off at morning 9 AM daily. > > 2) So, I set my STC Job class to > > > > RESPONSE=TST1 > > $HASP837 JOBCLASS(STC) > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > $HASP837 +0:15),LOG=YES,MSGLEVEL=(1,1), > > $HASP837 MSGCLASS=Z,OUTDISP=(HOLD,HOLD), > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > $HASP837 TIME=(000120,00),TYPE26=YES, > > $HASP837 TYPE6=YES > > > > > > 3) My MSGCLASS Z is set to > > > > RESPONSE=TST1 > > $HASP842 OUTCLASS(Z) > > $HASP842 OUTCLASS(Z) OUTPUT=PRINT,BLNKTRNC=YES, > > $HASP842 OUTDISP=(PURGE,HOLD),TRKCELL=NO > > > > > > 3) After all this above changes, I restarted my one of the STC task , IMS > address space to test and result is > > > > a) I am able to spin JES DD manually by using "W" command or by using /$T > JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG command and I can see output in held > queue. > > b) But if you look at changes, I made above in my JESLOG parameter in STC > class to start spin in every 15 min, it’s not starting. I am not able to > find root cause of this issue now. > > > > I want to know that what more I am missing to start this automated SPIN > working for my all STC task > > On 12-May-2017 5:05 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > wrote: > >> Thanks and I made all these suggested changes in stc class jes parmlib >> member. >> But to take this in effect, do I need to restart the address space or it >> will pick up these new value automatically after changing stc class using >> $T command. >> >> On 12-May-2017 3:38 PM, "Lizette Koehler" <stars...@mindspring.com> >> wrote: >> >>> JESLOG can be coded in the JES2 INIT DECK. It is not part of JCL. >>> >>> Check your JES2 INITDECK to see how your JOBCLASS(STC) is coded. >>> >>> >>> >>> >>> >>> Starting the STC with SPIN= is also helpful to spin all JES2 jcl DDs. >>> >>> >>> >>> >>> >>> >>> >>> Either or both can be used. >>> >>> >>> >>> Review the JES2 INIT and TUNING manuals referenced early to see what you >>> want to do. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Lizette >>> >>> >>> >>> >>> >>> *From:* venkat kulkarni [mailto:venkatkulkarn...@gmail.com] >>> *Sent:* Friday, May 12, 2017 12:55 AM >>> *To:* IBM Mainframe Discussion List <IBM-MAIN@listserv.ua.edu>; Lizette >>> Koehler <stars...@mindspring.com> >>> *Subject:* Re: AW: Re: job output into dataset >>> >>> >>> >>> Hello Lizette, >>> >>> >>> >>> Thanks for reply. I will add JESLOG=SPIN in my proc. But one of my >>> query still answered that do we need to recycle address space after >>> changing STC class outdisp paramter to write,write to make this spin work >>> . Or can we do it dynamically without shutting down address space. >>> >>> >>> >>> On Fri, May 12, 2017 at 10:05 AM, Lizette Koehler < >>> stars...@mindspring.com> wrote: >>> >>> So the best option would be to do >>> >>> 1) Check the STC in the JES2 Class and see if JESLOG=SPIN is included. >>> >>> 2) Start the STC with the SPIN Option >>> >>> JESLOG= >>> Specifies for the indicated jobclass that each job's JESLOG data >>> (JESMSGLG and JESYSMSG data sets) is to be spun at a certain time interval, >>> suppressed from being recorded, or not spun at all. >>> Note: Specifying JESLOG=SPIN will cause a job in this class to use >>> at least 2 additional track groups of SPOOL space for the two JESLOG data >>> sets (JESMSGLG or JESYSMSG ). If this
Re: AW: Re: job output into dataset
Hello Steve, So, After modifying STC job class JES2 Log parameter with spin, i will have to use $S command to start this process. Please suggest, as I have not used this before. Thanks On Sun, May 14, 2017 at 7:17 PM, Steve Horeinwrote: > Regarding item #1, absent any "formal" automation solution (CA OPS/MVS, IBM > NetView, etc.), review the information found in these topics: > > https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/ > com.ibm.zos.v2r2.hasa200/sacp.htm > > https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/ > com.ibm.zos.v2r2.hasa200/dsmac.htm > > https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/ > com.ibm.zos.v2r2.hasa200/cac.htm > > https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/ > com.ibm.zos.v2r2.hasa200/hacp.htm > > > On Sun, May 14, 2017 at 7:09 AM, venkat kulkarni < > venkatkulkarn...@gmail.com > > wrote: > > > 1) Finally, we wanted all STC JES DD to be spin off at morning 9 AM > daily. > > > > 2) So, I set my STC Job class to > > > > > > > > RESPONSE=TST1 > > > > $HASP837 JOBCLASS(STC) > > > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > > > $HASP837 +0:15),LOG=YES,MSGLEVEL=(1,1), > > > > $HASP837 MSGCLASS=Z,OUTDISP=(HOLD,HOLD), > > > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > > > $HASP837 TIME=(000120,00),TYPE26=YES, > > > > $HASP837 TYPE6=YES > > > > > > > > > > > > 3) My MSGCLASS Z is set to > > > > > > > > RESPONSE=TST1 > > > > $HASP842 OUTCLASS(Z) > > > > $HASP842 OUTCLASS(Z) OUTPUT=PRINT,BLNKTRNC=YES, > > > > $HASP842 OUTDISP=(PURGE,HOLD),TRKCELL=NO > > > > > > > > > > > > 3) After all this above changes, I restarted my one of the STC task , IMS > > address space to test and result is > > > > > > > > a) I am able to spin JES DD manually by using "W" command or by using /$T > > JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG command and I can see output in held > > queue. > > > > b) But if you look at changes, I made above in my JESLOG parameter in STC > > class to start spin in every 15 min, it’s not starting. I am not able to > > find root cause of this issue now. > > > > > > > > I want to know that what more I am missing to start this automated SPIN > > working for my all STC task > > > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Regarding item #1, absent any "formal" automation solution (CA OPS/MVS, IBM NetView, etc.), review the information found in these topics: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasa200/sacp.htm https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasa200/dsmac.htm https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasa200/cac.htm https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasa200/hacp.htm On Sun, May 14, 2017 at 7:09 AM, venkat kulkarniwrote: > 1) Finally, we wanted all STC JES DD to be spin off at morning 9 AM daily. > > 2) So, I set my STC Job class to > > > > RESPONSE=TST1 > > $HASP837 JOBCLASS(STC) > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > $HASP837 +0:15),LOG=YES,MSGLEVEL=(1,1), > > $HASP837 MSGCLASS=Z,OUTDISP=(HOLD,HOLD), > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > $HASP837 TIME=(000120,00),TYPE26=YES, > > $HASP837 TYPE6=YES > > > > > > 3) My MSGCLASS Z is set to > > > > RESPONSE=TST1 > > $HASP842 OUTCLASS(Z) > > $HASP842 OUTCLASS(Z) OUTPUT=PRINT,BLNKTRNC=YES, > > $HASP842 OUTDISP=(PURGE,HOLD),TRKCELL=NO > > > > > > 3) After all this above changes, I restarted my one of the STC task , IMS > address space to test and result is > > > > a) I am able to spin JES DD manually by using "W" command or by using /$T > JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG command and I can see output in held > queue. > > b) But if you look at changes, I made above in my JESLOG parameter in STC > class to start spin in every 15 min, it’s not starting. I am not able to > find root cause of this issue now. > > > > I want to know that what more I am missing to start this automated SPIN > working for my all STC task > > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
1) Finally, we wanted all STC JES DD to be spin off at morning 9 AM daily. 2) So, I set my STC Job class to RESPONSE=TST1 $HASP837 JOBCLASS(STC) $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, $HASP837 +0:15),LOG=YES,MSGLEVEL=(1,1), $HASP837 MSGCLASS=Z,OUTDISP=(HOLD,HOLD), $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, $HASP837 TIME=(000120,00),TYPE26=YES, $HASP837 TYPE6=YES 3) My MSGCLASS Z is set to RESPONSE=TST1 $HASP842 OUTCLASS(Z) $HASP842 OUTCLASS(Z) OUTPUT=PRINT,BLNKTRNC=YES, $HASP842 OUTDISP=(PURGE,HOLD),TRKCELL=NO 3) After all this above changes, I restarted my one of the STC task , IMS address space to test and result is a) I am able to spin JES DD manually by using "W" command or by using /$T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG command and I can see output in held queue. b) But if you look at changes, I made above in my JESLOG parameter in STC class to start spin in every 15 min, it’s not starting. I am not able to find root cause of this issue now. I want to know that what more I am missing to start this automated SPIN working for my all STC task On 12-May-2017 5:05 PM, "venkat kulkarni" <venkatkulkarn...@gmail.com> wrote: > Thanks and I made all these suggested changes in stc class jes parmlib > member. > But to take this in effect, do I need to restart the address space or it > will pick up these new value automatically after changing stc class using > $T command. > > On 12-May-2017 3:38 PM, "Lizette Koehler" <stars...@mindspring.com> wrote: > >> JESLOG can be coded in the JES2 INIT DECK. It is not part of JCL. >> >> Check your JES2 INITDECK to see how your JOBCLASS(STC) is coded. >> >> >> >> >> >> Starting the STC with SPIN= is also helpful to spin all JES2 jcl DDs. >> >> >> >> >> >> >> >> Either or both can be used. >> >> >> >> Review the JES2 INIT and TUNING manuals referenced early to see what you >> want to do. >> >> >> >> >> >> >> >> >> >> Lizette >> >> >> >> >> >> *From:* venkat kulkarni [mailto:venkatkulkarn...@gmail.com] >> *Sent:* Friday, May 12, 2017 12:55 AM >> *To:* IBM Mainframe Discussion List <IBM-MAIN@listserv.ua.edu>; Lizette >> Koehler <stars...@mindspring.com> >> *Subject:* Re: AW: Re: job output into dataset >> >> >> >> Hello Lizette, >> >> >> >> Thanks for reply. I will add JESLOG=SPIN in my proc. But one of my query >> still answered that do we need to recycle address space after changing STC >> class outdisp paramter to write,write to make this spin work . Or can we >> do it dynamically without shutting down address space. >> >> >> >> On Fri, May 12, 2017 at 10:05 AM, Lizette Koehler < >> stars...@mindspring.com> wrote: >> >> So the best option would be to do >> >> 1) Check the STC in the JES2 Class and see if JESLOG=SPIN is included. >> >> 2) Start the STC with the SPIN Option >> >> JESLOG= >> Specifies for the indicated jobclass that each job's JESLOG data >> (JESMSGLG and JESYSMSG data sets) is to be spun at a certain time interval, >> suppressed from being recorded, or not spun at all. >> Note: Specifying JESLOG=SPIN will cause a job in this class to use at >> least 2 additional track groups of SPOOL space for the two JESLOG data sets >> (JESMSGLG or JESYSMSG ). If this job class normally has a large number of >> jobs that use a minimal amount of SPOOL space, then an increase of 2 track >> groups could significantly increase SPOOL utilization. Consider these >> additional SPOOL requirements when deciding whether to use JESLOG=SPIN. >> >> SPIN >> Jobs running in this job class are 'spinnable'. $TJ,SPIN can >> be used to immediately spin the JESMSGLG and JESYSMSG data sets. >> >> (SPIN,+hh:mm) >> Indicates to spin JESLOG every hh:mm time interval. >> >> where: >> >> hh is hours and has a range of 0 through 23 >> mm is minutes and has a range of 00 through 59 >> >> Note: You must specify a minimum of 10 minutes or JES2 issues >> an error message. Also, for time intervals of less th
Re: AW: Re: job output into dataset
Hello Lizette, Thanks for reply. I will add JESLOG=SPIN in my proc. But one of my query still answered that do we need to recycle address space after changing STC class outdisp paramter to write,write to make this spin work . Or can we do it dynamically without shutting down address space. On Fri, May 12, 2017 at 10:05 AM, Lizette Koehler <stars...@mindspring.com> wrote: > So the best option would be to do > > 1) Check the STC in the JES2 Class and see if JESLOG=SPIN is included. > > 2) Start the STC with the SPIN Option > > JESLOG= > Specifies for the indicated jobclass that each job's JESLOG data > (JESMSGLG and JESYSMSG data sets) is to be spun at a certain time interval, > suppressed from being recorded, or not spun at all. > Note: Specifying JESLOG=SPIN will cause a job in this class to use at > least 2 additional track groups of SPOOL space for the two JESLOG data sets > (JESMSGLG or JESYSMSG ). If this job class normally has a large number of > jobs that use a minimal amount of SPOOL space, then an increase of 2 track > groups could significantly increase SPOOL utilization. Consider these > additional SPOOL requirements when deciding whether to use JESLOG=SPIN. > > SPIN > Jobs running in this job class are 'spinnable'. $TJ,SPIN can > be used to immediately spin the JESMSGLG and JESYSMSG data sets. > > (SPIN,+hh:mm) > Indicates to spin JESLOG every hh:mm time interval. > > where: > > hh is hours and has a range of 0 through 23 > mm is minutes and has a range of 00 through 59 > > Note: You must specify a minimum of 10 minutes or JES2 issues > an error message. Also, for time intervals of less than one hour, you must > specify the following format: JESLOG=(SPIN,+00:mm). > (SPIN,hh:mm) > Indicates to spin JESLOG at hh:mm every 24 hours. > (SPIN,nnn) > Indicates to spin JESLOG whenever either JESMSGLG or JESYSMSG > has nnn lines.'nnn is the number (1–999) of lines in the data set. > Note: > You must specify a minimum of 500 lines or JES2 issues an > error message. > (SPIN,nnnK) > Indicates to spin JESLOG whenever either JESMSGLG or JESYSMSG > has "nnnK" lines, where "K" indicates thousands of lines. > (SPIN,nnnM) > Indicates to spin JESLOG whenever either JESMSGLG or JESYSMSG > has "nnnM" lines, where "M" indicates millions of lines. > > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > > Behalf Of venkat kulkarni > > Sent: Thursday, May 11, 2017 9:37 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: AW: Re: job output into dataset > > > > Hello All, > > > > Finally I have good news. Today we performed below steps. > > > > 1) I changed my message class z out disp parameter to write,write and > then > > run spin command but still no oputut saved in output queue. > > > > 2) I restarted IMS address space and before running spin command against > > jesmsglg dd, I verified that my stc class outdisp is set to write,write . > > Now, when I run spin command, I get record in output queue with > destination > > local and this is what we were looking for u . > > > > But this whole excersice make me to conclude that > > > > a) any running address space will not accept new value of outdisp > parameter > > on stc class( or any other class) using dynamic command $t . > > So, we will have to recycle address space to take this effect. This > dynamic > > command is only useful for new address space we start after we change > > parameter using $t. > > > > b) when we use spin command with jes dd like jesmsglg etc, we will not > get > > successful completion message on console . > > > > 3) do we have any way to make this process successful without recycle of > > address space . > > > > Thank you so much for all help . > > > > On 10-May-2017 11:48 PM, "Lizette Koehler" <stars...@mindspring.com> > wrote: > > > > > NOTE: JES2 has a counter in the JCT. Even if output is spun, it will > > > not reduce that counter by what is spun. The counter will continue to > > > increase. And it can increase until, the number of lines, exceeds > > > what > > > JES2 knows that should be produced which can cause a task to abend > > > with a > > > S722 abend. No way around that other than cycling the tasks. > > > > > > I current
Re: AW: Re: job output into dataset
So the best option would be to do 1) Check the STC in the JES2 Class and see if JESLOG=SPIN is included. 2) Start the STC with the SPIN Option JESLOG= Specifies for the indicated jobclass that each job's JESLOG data (JESMSGLG and JESYSMSG data sets) is to be spun at a certain time interval, suppressed from being recorded, or not spun at all. Note: Specifying JESLOG=SPIN will cause a job in this class to use at least 2 additional track groups of SPOOL space for the two JESLOG data sets (JESMSGLG or JESYSMSG ). If this job class normally has a large number of jobs that use a minimal amount of SPOOL space, then an increase of 2 track groups could significantly increase SPOOL utilization. Consider these additional SPOOL requirements when deciding whether to use JESLOG=SPIN. SPIN Jobs running in this job class are 'spinnable'. $TJ,SPIN can be used to immediately spin the JESMSGLG and JESYSMSG data sets. (SPIN,+hh:mm) Indicates to spin JESLOG every hh:mm time interval. where: hh is hours and has a range of 0 through 23 mm is minutes and has a range of 00 through 59 Note: You must specify a minimum of 10 minutes or JES2 issues an error message. Also, for time intervals of less than one hour, you must specify the following format: JESLOG=(SPIN,+00:mm). (SPIN,hh:mm) Indicates to spin JESLOG at hh:mm every 24 hours. (SPIN,nnn) Indicates to spin JESLOG whenever either JESMSGLG or JESYSMSG has nnn lines.'nnn is the number (1–999) of lines in the data set. Note: You must specify a minimum of 500 lines or JES2 issues an error message. (SPIN,nnnK) Indicates to spin JESLOG whenever either JESMSGLG or JESYSMSG has "nnnK" lines, where "K" indicates thousands of lines. (SPIN,nnnM) Indicates to spin JESLOG whenever either JESMSGLG or JESYSMSG has "nnnM" lines, where "M" indicates millions of lines. Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Thursday, May 11, 2017 9:37 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Hello All, > > Finally I have good news. Today we performed below steps. > > 1) I changed my message class z out disp parameter to write,write and then > run spin command but still no oputut saved in output queue. > > 2) I restarted IMS address space and before running spin command against > jesmsglg dd, I verified that my stc class outdisp is set to write,write . > Now, when I run spin command, I get record in output queue with destination > local and this is what we were looking for u . > > But this whole excersice make me to conclude that > > a) any running address space will not accept new value of outdisp parameter > on stc class( or any other class) using dynamic command $t . > So, we will have to recycle address space to take this effect. This dynamic > command is only useful for new address space we start after we change > parameter using $t. > > b) when we use spin command with jes dd like jesmsglg etc, we will not get > successful completion message on console . > > 3) do we have any way to make this process successful without recycle of > address space . > > Thank you so much for all help . > > On 10-May-2017 11:48 PM, "Lizette Koehler" <stars...@mindspring.com> wrote: > > > NOTE: JES2 has a counter in the JCT. Even if output is spun, it will > > not reduce that counter by what is spun. The counter will continue to > > increase. And it can increase until, the number of lines, exceeds > > what > > JES2 knows that should be produced which can cause a task to abend > > with a > > S722 abend. No way around that other than cycling the tasks. > > > > I currently have a task that is prone to S722 abends. It is an STC > > and it is now being cycled monthly to prevent an unexpected S722 abend. > > > > > > > > Spin - to copy/route the information in a SYSOUT DD statement to the > > OUTPUT class specified by the SYSOUT statement. > > > > If your JES2 INITDECK says > > > > OUTPUT(A) OUTDISP=(HOLD,HOLD) > > > > You have > > //DDlabel DD SYSOUT=A > > > > Then the DDlabel: $Txx,SPIN,DDNAME=DDlabel > > > > The output will show up in the HELD Class A queue. So the H Panel in SDSF > > > > If you have coded in the JES2 INITDECK > > OUTPUT(A) OUTDISP=(WRITE,WRITE) > > > > And you have > > //DDLabel DD SYSOUT=A > > > > The output will show up in the OUTPUT CLASS A.
Re: AW: Re: job output into dataset
> and operator messages about the job's processing: allocation of devices and > volumes, execution and termination of job steps and the job, and > disposition of data sets. > > > > You should talk to your friendly z/OS system programmer for assistance > specific to your shop. > > Lizette > > > -Original Message- > >From: venkat kulkarni <venkatkulkarn...@gmail.com> > >Sent: May 10, 2017 11:42 AM > >To: IBM-MAIN@LISTSERV.UA.EDU > >Subject: Re: AW: Re: job output into dataset > > > >Hello Lizette, > > > >Couple of important points, > > > >1) I am still not clear that, what happens when we run spin command $T > >job(ims12RC1),spin,ddname=JESMSGLG . Where messages goes from DD > JESMSGLG . > > > >In my case, when i run this command, it clear all record from DD JESMSGLG > >but its not storing in output queue. But my requirement is that it should > >keep those record in output queue after this spin command and from output > >queue, we use some way to suck this output and archive it for later use. > > > >2) I have set my outdisp parameter to (write, write) for this STC class > >but still my records from this DD JESMSGLG not coming to output queue. > >Please help to provide some reason on this issue. > > > >3) When i run $T job(ims12RC1),spin,ddname=JESMSGLG command, it start > >processing this DD but i never get message saying successfully completed. > I > >waited for long but it never finish but I see my record becomes zero in > >address space for this DD name. > > > > > >I tried reading all document possible for this and couldnt find any help. > > > > > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
NOTE: JES2 has a counter in the JCT. Even if output is spun, it will not reduce that counter by what is spun. The counter will continue to increase. And it can increase until, the number of lines, exceeds what JES2 knows that should be produced which can cause a task to abend with a S722 abend. No way around that other than cycling the tasks. I currently have a task that is prone to S722 abends. It is an STC and it is now being cycled monthly to prevent an unexpected S722 abend. Spin - to copy/route the information in a SYSOUT DD statement to the OUTPUT class specified by the SYSOUT statement. If your JES2 INITDECK says OUTPUT(A) OUTDISP=(HOLD,HOLD) You have //DDlabel DD SYSOUT=A Then the DDlabel: $Txx,SPIN,DDNAME=DDlabel The output will show up in the HELD Class A queue. So the H Panel in SDSF If you have coded in the JES2 INITDECK OUTPUT(A) OUTDISP=(WRITE,WRITE) And you have //DDLabel DD SYSOUT=A The output will show up in the OUTPUT CLASS A. So the O Panel in SDSF Note: If you do not CODE FREE=CLOSE,SPIN=UNALLOC You will NOT see the output The SPIN will not be available until TASK end. The ST panel in SDSF can see everything available on Spool. NOTE SYSOUT=* in a started task defaults the the STC definition in JES2. Spin data set processing z/OS JES2 Initialization and Tuning Guide SA32-0991-00 Coding FREE=CLOSE or SPIN=UNALLOC in the JCL of a SYSOUT DD statement or specifying the DALCLOSE text unit key on a dynamic allocation (SVC99) parameter list for a SYSOUT data set causes JES2 to spin the data set for output processing when it is closed. JES2 then has the capability of performing output processing on the data set while the job continues execution. JESLOG data sets can be spun through $T J/S/T,SPIN. In most cases, JES2 frees spool tracks allocated to the data set after printing, canceling, or transmitting the last copy of the data set. For applications that dynamically allocate a spin SYSOUT data set (unallocation at Close - Key X'001C') but fail to issue FREE=CLOSE or SPIN=UNALLOC, JES2 does not free spool tracks allocated to the spin data set until the job is purged. In this case, end-of-task processing deallocates the data set and job purge processing returns the allocated tracks. NOTE: There are some DD Statements that are created at job creation time DDNAME StepName ProcStep DSID JESMSGLG JES2 2 JESJCL JES2 3 JESYSMSG JES2 4 Note: Sometimes even though you "see" output, the Spin command may provide the message: $HASP138 SPIN rejected, no spinnable data set Hope this helps. Lizette The DD statements with DSID numbers less than 100 are special. z/OS z/OS 2.2.0 z/OS JES2 z/OS JES2 Initialization and Tuning Guide Controlling JES2 processes Printers and punches Table 1. JES2 system data setsData Set Name Purpose of data set JESJCLIN Indicates the actual JCL submitted. JESMSGLG Indicates any system messages for this job. JESJCL Indicates all job control statements in the input stream, that is, all JCL statements and JES2 control statements, plus all procedure statements from any in-stream or cataloged procedure a job step calls, plus all messages about job control statements. JESYSMSG Indicates the job's hardcopy log, which contains the JES2 and operator messages about the job's processing: allocation of devices and volumes, execution and termination of job steps and the job, and disposition of data sets. You should talk to your friendly z/OS system programmer for assistance specific to your shop. Lizette -Original Message- >From: venkat kulkarni <venkatkulkarn...@gmail.com> >Sent: May 10, 2017 11:42 AM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: AW: Re: job output into dataset > >Hello Lizette, > >Couple of important points, > >1) I am still not clear that, what happens when we run spin command $T >job(ims12RC1),spin,ddname=JESMSGLG . Where messages goes from DD JESMSGLG . > >In my case, when i run this command, it clear all record from DD JESMSGLG >but its not storing in output queue. But my requirement is that it should >keep those record in output queue after this spin command and from output >queue, we use some way to suck this output and archive it for later use. > >2) I have set my outdisp parameter to (write, write) for this STC class >but still my records from this DD JESMSGLG not coming to output queue. >Please help to provide some reason on this issue. > >3) When i run $T job(ims12RC1),spin,ddname=JESMSGLG command, it start >processing this DD but i never get message saying successfully completed. I >waited for long but it never finish but I see my record becomes zero in >address space for this DD name. > > >I tried reading all document possible for this and couldnt find
Re: JCL null statement (Was: job output into dataset)
On Tue, 9 May 2017 13:38:02 -0500, Tom Marchant wrote: >On Tue, 9 May 2017 13:25:43 -0500, Paul Gilmartin wrote: > >>On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: >>> i) the job stream arrives at a null statement; >>>... >>I'm skeptical about that point since I often submit jobs with noise >>such as comments after a null statement and SDSF shows me >>those lines in JESJCLIN, indicating that the job was not spun until >>the SYSOUT was closed. > >I don't believe it. > >The behavior that David describes is very old. Back in the 70's, >operators would routinely add a null JCL statement to the end of >a tray of JCL to be processed so that the last job would be >processed immediately. I just submitted such a job and the >contents of JESJCLIN ends with the last statement before the >null JCL statement. > I found it. Using the Rexx API to SDSF and issuing the SJA prefix command I see a spool data set that shows the null statement and any records following it. (I had no following JOB statement.) (It has to go somewhere: https://en.wikipedia.org/wiki/Black_hole_information_paradox ) -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
What are the attributes of MSGCLASS Z? Once you've spun, that would be the next part of control? > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of venkat kulkarni > Sent: Wednesday, May 10, 2017 11:42 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Hello Lizette, > > Couple of important points, > > 1) I am still not clear that, what happens when we run spin command $T > job(ims12RC1),spin,ddname=JESMSGLG . Where messages goes from DD > JESMSGLG . > > In my case, when i run this command, it clear all record from DD JESMSGLG > but its not storing in output queue. But my requirement is that it should keep > those record in output queue after this spin command and from output > queue, we use some way to suck this output and archive it for later use. > > 2) I have set my outdisp parameter to (write, write) for this STC class but > still > my records from this DD JESMSGLG not coming to output queue. > Please help to provide some reason on this issue. > > 3) When i run $T job(ims12RC1),spin,ddname=JESMSGLG command, it start > processing this DD but i never get message saying successfully completed. I > waited for long but it never finish but I see my record becomes zero in > address space for this DD name. > > > I tried reading all document possible for this and couldnt find any help. > > > > On Wed, May 10, 2017 at 8:43 PM, Paul Gilmartin < 000433f07816- > dmarc-requ...@listserv.ua.edu> wrote: > > > On 2017-05-10, at 01:25, Gibney, Dave wrote: > > > > > I don't believe attempting to override the three JES files with > > > a > > explicit DD definition will work. > > > I think, but haven't confirmed that you can define the eligibility > > > to > > spin those files in the definition of the STC or JOB Class to JES2. It > > probably take a JES2 command or COLD start to set these attributes. > > > > > Many characteristics of the JES data sets can be controlled > > jointly > > (JESDS=ALL) or severally by JCL OUTPUT statements. It's probably not > > useful to direct any of them to W=INTRDR. > > > > If a serious JCL error is detected, OUTPUT statements may be > > ineffective whereas MSGCLASS would have operated. > > > > -- gil > > > > -- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Hello Lizette, Couple of important points, 1) I am still not clear that, what happens when we run spin command $T job(ims12RC1),spin,ddname=JESMSGLG . Where messages goes from DD JESMSGLG . In my case, when i run this command, it clear all record from DD JESMSGLG but its not storing in output queue. But my requirement is that it should keep those record in output queue after this spin command and from output queue, we use some way to suck this output and archive it for later use. 2) I have set my outdisp parameter to (write, write) for this STC class but still my records from this DD JESMSGLG not coming to output queue. Please help to provide some reason on this issue. 3) When i run $T job(ims12RC1),spin,ddname=JESMSGLG command, it start processing this DD but i never get message saying successfully completed. I waited for long but it never finish but I see my record becomes zero in address space for this DD name. I tried reading all document possible for this and couldnt find any help. On Wed, May 10, 2017 at 8:43 PM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On 2017-05-10, at 01:25, Gibney, Dave wrote: > > > I don't believe attempting to override the three JES files with a > explicit DD definition will work. > > I think, but haven't confirmed that you can define the eligibility to > spin those files in the definition of the STC or JOB Class to JES2. It > probably take a JES2 command or COLD start to set these attributes. > > > Many characteristics of the JES data sets can be controlled jointly > (JESDS=ALL) or severally by JCL OUTPUT statements. It's probably not > useful to direct any of them to W=INTRDR. > > If a serious JCL error is detected, OUTPUT statements may be ineffective > whereas MSGCLASS would have operated. > > -- gil > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On 2017-05-10, at 01:25, Gibney, Dave wrote: > I don't believe attempting to override the three JES files with a > explicit DD definition will work. > I think, but haven't confirmed that you can define the eligibility to spin > those files in the definition of the STC or JOB Class to JES2. It probably > take a JES2 command or COLD start to set these attributes. > Many characteristics of the JES data sets can be controlled jointly (JESDS=ALL) or severally by JCL OUTPUT statements. It's probably not useful to direct any of them to W=INTRDR. If a serious JCL error is detected, OUTPUT statements may be ineffective whereas MSGCLASS would have operated. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, 9 May 2017 10:42:48 +0300, venkat kulkarni wrote: >Yes. It's not.so I should code jesmsglg dd stmt as >//JESMSGLG dd sysout=a,free=close,spin=unalloc No, you should not. Doing so would define a DD statement for your step. But the JESYSMSG for the job has already been allocated before your step starts. Look up JESLOG=SPIN. -- Tom Marchant -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
I think spin only works when we have dd name defined in our proc with free=close and spin=unalloc .. else even after running spin command from console , process wil never finish and we will not get print in output class. Please correct me, if I am wrong. On 10-May-2017 11:03 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > Is Z a held MSGCLASS? > I really haven't used SPIN, so I can't help much. But, I really doubt you > can successfully define the DD you desire. I don't think JES2 allows it. > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > On Behalf Of venkat kulkarni > > Sent: Wednesday, May 10, 2017 12:46 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: AW: Re: job output into dataset > > > > Below is my stc job class output > > > > RESPONSE=TST4 > > > > $HASP837 JOBCLASS(STC) > > > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > > > $HASP837 10K),LOG=YES,MSGLEVEL=(1,1), > > > > $HASP837 MSGCLASS=Z,OUTDISP=(WRITE,WRITE), > > > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > > > $HASP837 TIME=(000120,00),TYPE26=YES, > > > > $HASP837 TYPE6=YES > > > > I looked at every possible document and I think the issue is, when I > issue spin > > command , the process starts and spin records from dd but it never write > on > > output queue. > > > > So, what is stopping system to complete this spin process and should > return > > me $HASP138 of successful completion. > > > > I am still suspecting that do I need to have dd name entry in my proc > which I > > am using in my spin command with free=close and spin=unallocated > > > > Please help me to clear this doubt > > > > On 10-May-2017 10:26 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > > > > > I don't believe attempting to override the three JES files with a > > > explicit DD definition will work. > > > I think, but haven't confirmed that you can define the eligibility to > > > spin those files in the definition of the STC or JOB Class to JES2. It > > > probably take a JES2 command or COLD start to set these attributes. > > > > > > Looking at the appropriate manual(s) will help you as much or more as > > > these questions here. > > > > > > > -Original Message- > > > > From: IBM Mainframe Discussion List > > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni > > > > Sent: Tuesday, May 09, 2017 11:25 PM > > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > > Subject: Re: AW: Re: job output into dataset > > > > > > > > I feel, whatever DD name I want spin, I should code in proclib for > > > example > > > > : If I want to always spin JESMSGLG DD from address space then I > > > > should code below line in proclib and then > > > > > > > > only my spin command will be completed. > > > > > > > > > > > > > > > > //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC > > > > > > > > > > > > > > > > Please correct me, if I am wrong. > > > > > > > > > > > > > > > > 2) Currently, I don’t get $HASP138 message on my console after > > > > starting SPIN command. I just get below command > > > > > > > > > > > > > > > > $T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG > > > > > > > > $HASP890 JOB(IMS12IMS) 103 > > > > > > > > $HASP890 JOB(IMS12IMS) STATUS=(EXECUTING/TST4),CLASS=STC, > > > > > > > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > > > > > > > > > So, I have doubt that my spin command is not getting completed or > > > > some other reason. > > > > > > > > > > > > > > > > > > > > > > > > 3) After running this spin command, I don’t see any output in my > > > > output queue. Even though i set my STC job class > > > > > &g
Re: AW: Re: job output into dataset
Is Z a held MSGCLASS? I really haven't used SPIN, so I can't help much. But, I really doubt you can successfully define the DD you desire. I don't think JES2 allows it. > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of venkat kulkarni > Sent: Wednesday, May 10, 2017 12:46 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Below is my stc job class output > > RESPONSE=TST4 > > $HASP837 JOBCLASS(STC) > > $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, > > $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, > > $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, > > $HASP837 10K),LOG=YES,MSGLEVEL=(1,1), > > $HASP837 MSGCLASS=Z,OUTDISP=(WRITE,WRITE), > > $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, > > $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, > > $HASP837 TIME=(000120,00),TYPE26=YES, > > $HASP837 TYPE6=YES > > I looked at every possible document and I think the issue is, when I issue > spin > command , the process starts and spin records from dd but it never write on > output queue. > > So, what is stopping system to complete this spin process and should return > me $HASP138 of successful completion. > > I am still suspecting that do I need to have dd name entry in my proc which I > am using in my spin command with free=close and spin=unallocated > > Please help me to clear this doubt > > On 10-May-2017 10:26 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > > > I don't believe attempting to override the three JES files with a > > explicit DD definition will work. > > I think, but haven't confirmed that you can define the eligibility to > > spin those files in the definition of the STC or JOB Class to JES2. It > > probably take a JES2 command or COLD start to set these attributes. > > > > Looking at the appropriate manual(s) will help you as much or more as > > these questions here. > > > > > -Original Message- > > > From: IBM Mainframe Discussion List > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni > > > Sent: Tuesday, May 09, 2017 11:25 PM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: AW: Re: job output into dataset > > > > > > I feel, whatever DD name I want spin, I should code in proclib for > > example > > > : If I want to always spin JESMSGLG DD from address space then I > > > should code below line in proclib and then > > > > > > only my spin command will be completed. > > > > > > > > > > > > //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC > > > > > > > > > > > > Please correct me, if I am wrong. > > > > > > > > > > > > 2) Currently, I don’t get $HASP138 message on my console after > > > starting SPIN command. I just get below command > > > > > > > > > > > > $T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG > > > > > > $HASP890 JOB(IMS12IMS) 103 > > > > > > $HASP890 JOB(IMS12IMS) STATUS=(EXECUTING/TST4),CLASS=STC, > > > > > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > > > > > So, I have doubt that my spin command is not getting completed or > > > some other reason. > > > > > > > > > > > > > > > > > > 3) After running this spin command, I don’t see any output in my > > > output queue. Even though i set my STC job class > > > > > > > > > > > > /$T JOBCLASS(STC),OUTDISP=(KEEP,KEEP) > > > > > > > > > > > > still, no output on output queue. > > > > > > > > > > > > > > > > > > 4) I see duplicate DD name like below after running SPIN command. Ex > > > JESMSGLG and JESYSMSG are showing me 2 times in this same address > > > space. > > > > > > > > > > > > SDSF JOB DATA SET DISPLAY - JOB IMS12IMS (STC02551) > > > > > > COMMAND INPUT ===> > > > > > > PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= > > > > > > NP DDNAME StepName ProcStep DSID OwnerC Dest > > > > > > JESMSGLG JES2 2 STCCICQ Z > > > > > > J
Re: AW: Re: job output into dataset
Below is my stc job class output RESPONSE=TST4 $HASP837 JOBCLASS(STC) $HASP837 JOBCLASS(STC) AUTH=(ALL),BLP=YES,COMMAND=EXECUTE, $HASP837 CONDPURG=YES,DSENQSHR=ALLOW, $HASP837 IEFUJP=YES,IEFUSO=YES,JESLOG=(SPIN, $HASP837 10K),LOG=YES,MSGLEVEL=(1,1), $HASP837 MSGCLASS=Z,OUTDISP=(WRITE,WRITE), $HASP837 OUTPUT=YES,PERFORM=000,PROCLIB=00, $HASP837 QAFF=(ANY),REGION=0004M,SWA=BELOW, $HASP837 TIME=(000120,00),TYPE26=YES, $HASP837 TYPE6=YES I looked at every possible document and I think the issue is, when I issue spin command , the process starts and spin records from dd but it never write on output queue. So, what is stopping system to complete this spin process and should return me $HASP138 of successful completion. I am still suspecting that do I need to have dd name entry in my proc which I am using in my spin command with free=close and spin=unallocated Please help me to clear this doubt On 10-May-2017 10:26 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > I don't believe attempting to override the three JES files with a > explicit DD definition will work. > I think, but haven't confirmed that you can define the eligibility to spin > those files in the definition of the STC or JOB Class to JES2. It probably > take a JES2 command or COLD start to set these attributes. > > Looking at the appropriate manual(s) will help you as much or more as > these questions here. > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > On Behalf Of venkat kulkarni > > Sent: Tuesday, May 09, 2017 11:25 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: AW: Re: job output into dataset > > > > I feel, whatever DD name I want spin, I should code in proclib for > example > > : If I want to always spin JESMSGLG DD from address space then I should > > code below line in proclib and then > > > > only my spin command will be completed. > > > > > > > > //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC > > > > > > > > Please correct me, if I am wrong. > > > > > > > > 2) Currently, I don’t get $HASP138 message on my console after starting > > SPIN command. I just get below command > > > > > > > > $T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG > > > > $HASP890 JOB(IMS12IMS) 103 > > > > $HASP890 JOB(IMS12IMS) STATUS=(EXECUTING/TST4),CLASS=STC, > > > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > So, I have doubt that my spin command is not getting completed or some > > other reason. > > > > > > > > > > > > 3) After running this spin command, I don’t see any output in my output > > queue. Even though i set my STC job class > > > > > > > > /$T JOBCLASS(STC),OUTDISP=(KEEP,KEEP) > > > > > > > > still, no output on output queue. > > > > > > > > > > > > 4) I see duplicate DD name like below after running SPIN command. Ex > > JESMSGLG and JESYSMSG are showing me 2 times in this same address > > space. > > > > > > > > SDSF JOB DATA SET DISPLAY - JOB IMS12IMS (STC02551) > > > > COMMAND INPUT ===> > > > > PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= > > > > NP DDNAME StepName ProcStep DSID OwnerC Dest > > > > JESMSGLG JES2 2 STCCICQ Z > > > > JESJCL JES2 3 STCCICQ Z > > > > JESYSMSG JES2 4 STCCICQ Z > > > > JESYSMSG JES2 104 STCCICQ Z > > > > JESMSGLG JES2 108 STCCICQ Z > > > > > > > > > > > > Can you please help me to solve these queries. > > > > > > > > On 09-May-2017 8:16 PM, "Lizette Koehler" <stars...@mindspring.com> > > wrote: > > > > > Venkat - > > > > > > > > > You can SPIN SYSOUT (I do not think you can SPIN INTRDR ) > > > > > > Sometimes, the SYSOUT is not PURGED from the Job unless you have > > > SPIN=CLOSE,FREE=UNALLOC. Otherwise the purge of the output will occur > > > when the task is shut down. > > > > > > JES2 keeps a counter of output written. When it gets to a certain > > > amount you will see S722 abends > > > > > > When you SPIN output it will go to the out
Re: AW: Re: job output into dataset
I don't believe attempting to override the three JES files with a explicit DD definition will work. I think, but haven't confirmed that you can define the eligibility to spin those files in the definition of the STC or JOB Class to JES2. It probably take a JES2 command or COLD start to set these attributes. Looking at the appropriate manual(s) will help you as much or more as these questions here. > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of venkat kulkarni > Sent: Tuesday, May 09, 2017 11:25 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > I feel, whatever DD name I want spin, I should code in proclib for example > : If I want to always spin JESMSGLG DD from address space then I should > code below line in proclib and then > > only my spin command will be completed. > > > > //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC > > > > Please correct me, if I am wrong. > > > > 2) Currently, I don’t get $HASP138 message on my console after starting > SPIN command. I just get below command > > > > $T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG > > $HASP890 JOB(IMS12IMS) 103 > > $HASP890 JOB(IMS12IMS) STATUS=(EXECUTING/TST4),CLASS=STC, > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > So, I have doubt that my spin command is not getting completed or some > other reason. > > > > > > 3) After running this spin command, I don’t see any output in my output > queue. Even though i set my STC job class > > > > /$T JOBCLASS(STC),OUTDISP=(KEEP,KEEP) > > > > still, no output on output queue. > > > > > > 4) I see duplicate DD name like below after running SPIN command. Ex > JESMSGLG and JESYSMSG are showing me 2 times in this same address > space. > > > > SDSF JOB DATA SET DISPLAY - JOB IMS12IMS (STC02551) > > COMMAND INPUT ===> > > PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= > > NP DDNAME StepName ProcStep DSID OwnerC Dest > > JESMSGLG JES2 2 STCCICQ Z > > JESJCL JES2 3 STCCICQ Z > > JESYSMSG JES2 4 STCCICQ Z > > JESYSMSG JES2 104 STCCICQ Z > > JESMSGLG JES2 108 STCCICQ Z > > > > > > Can you please help me to solve these queries. > > > > On 09-May-2017 8:16 PM, "Lizette Koehler" <stars...@mindspring.com> > wrote: > > > Venkat - > > > > > > You can SPIN SYSOUT (I do not think you can SPIN INTRDR ) > > > > Sometimes, the SYSOUT is not PURGED from the Job unless you have > > SPIN=CLOSE,FREE=UNALLOC. Otherwise the purge of the output will occur > > when the task is shut down. > > > > JES2 keeps a counter of output written. When it gets to a certain > > amount you will see S722 abends > > > > When you SPIN output it will go to the output class specified. > > > > For example, SYSOUT=B - When you spin it will go to the class B. Now > > if B is setup in JES2 as a HELD class or OUTPUT class is dependent on > > your shop's JES2 parm > > > > You can see the output that you SPIN in the SDSF Panels. Either theO > > STH panels > > > > Once you spin the output you still need another process to write the > > data to a data set. > > > > Processes suggested so far > > Write an SDSF ISFEXEC REXX to read the Data from JES2 to dataset > > _ Example is JES2DISK > > Purchase a product to do this ($AVERS, VIEW DIRECT, XPTR, and so > > forth) > > Setup and External writer to read the data from Spool and write > > to a dataset > > Setup a JES2 Offloader to write the data to a dataset. > > Look for tools on cbttape.org > > > > > > > > Note: There are special DD statements that are generated by JES2 you > > cannot control with a JCL Statement to spin it. > > > > You could review the Manuals JES2 INIT and TUNING GUIDE, and JES2 > > INIT and TUNING Reference. They have good detail on how JES2 does > > output management. > > > > SA32-0991-00z/OS JES2 Initialization and Tuning Guide > > SA32-0992-00z/OS JES2 Initialization and Tuning Reference > > > > Next, find the REXX called JES2DISK. I use this all the time to read > > data from JES2 and write it to a dataset. It works very well. > > > > > > It is still not clear what problem you are trying to
Re: AW: Re: job output into dataset
I feel, whatever DD name I want spin, I should code in proclib for example : If I want to always spin JESMSGLG DD from address space then I should code below line in proclib and then only my spin command will be completed. //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC Please correct me, if I am wrong. 2) Currently, I don’t get $HASP138 message on my console after starting SPIN command. I just get below command $T JQ(IMS12IMS),SPIN,DDNAME=JESMSGLG $HASP890 JOB(IMS12IMS) 103 $HASP890 JOB(IMS12IMS) STATUS=(EXECUTING/TST4),CLASS=STC, $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) So, I have doubt that my spin command is not getting completed or some other reason. 3) After running this spin command, I don’t see any output in my output queue. Even though i set my STC job class /$T JOBCLASS(STC),OUTDISP=(KEEP,KEEP) still, no output on output queue. 4) I see duplicate DD name like below after running SPIN command. Ex JESMSGLG and JESYSMSG are showing me 2 times in this same address space. SDSF JOB DATA SET DISPLAY - JOB IMS12IMS (STC02551) COMMAND INPUT ===> PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= NP DDNAME StepName ProcStep DSID OwnerC Dest JESMSGLG JES2 2 STCCICQ Z JESJCL JES2 3 STCCICQ Z JESYSMSG JES2 4 STCCICQ Z JESYSMSG JES2 104 STCCICQ Z JESMSGLG JES2 108 STCCICQ Z Can you please help me to solve these queries. On 09-May-2017 8:16 PM, "Lizette Koehler" <stars...@mindspring.com> wrote: > Venkat - > > > You can SPIN SYSOUT (I do not think you can SPIN INTRDR ) > > Sometimes, the SYSOUT is not PURGED from the Job unless you have > SPIN=CLOSE,FREE=UNALLOC. Otherwise the purge of the output will occur when > the task is shut down. > > JES2 keeps a counter of output written. When it gets to a certain amount > you will see S722 abends > > When you SPIN output it will go to the output class specified. > > For example, SYSOUT=B - When you spin it will go to the class B. Now if > B is setup in JES2 as a HELD class or OUTPUT class is dependent on your > shop's JES2 parm > > You can see the output that you SPIN in the SDSF Panels. Either theO > STH panels > > Once you spin the output you still need another process to write the data > to a data set. > > Processes suggested so far > Write an SDSF ISFEXEC REXX to read the Data from JES2 to dataset _ > Example is JES2DISK > Purchase a product to do this ($AVERS, VIEW DIRECT, XPTR, and so > forth) > Setup and External writer to read the data from Spool and write to a > dataset > Setup a JES2 Offloader to write the data to a dataset. > Look for tools on cbttape.org > > > > Note: There are special DD statements that are generated by JES2 you > cannot control with a JCL Statement to spin it. > > You could review the Manuals JES2 INIT and TUNING GUIDE, and JES2 INIT > and TUNING Reference. They have good detail on how JES2 does output > management. > > SA32-0991-00z/OS JES2 Initialization and Tuning Guide > SA32-0992-00z/OS JES2 Initialization and Tuning Reference > > Next, find the REXX called JES2DISK. I use this all the time to read data > from JES2 and write it to a dataset. It works very well. > > > It is still not clear what problem you are trying to solve. > > > If you could summarize what it is you need to do, it might be helpful to > level set the issue at this time. There have been a lot of comments and > suggestions which do not seem to meet your needs. > > For example, my task needs to collect the data from STC x which runs > 24x7. I need the information written to the DD statement Y. This needs to > go into a GDG or SEQ files for later review. This output is a (REPORT, > JCL, LOGGING, etc) > > > > SPIN can happen at the TASK LEVEL - S stcname,SPIN=('spin parms') > Or the DD level //DD DD SYSOUT=x,SPIN= > OR by issuing a JES2 command $Tzz,SPINzzz is either Task > Number, TaskName > > Depending on the requirements you are provided, it will depend on which > function you will need to use. > > > The more specific the question, the better the answers. Generic questions > or comments can lead to confusion for everyone. > > This list can provide lots of suggestions and guidance. It will be your > job to work with the suggestions and see what works in your shop. Each > shop is different and what works for one does not always work for another. > > > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-M
Re: JCL null statement (Was: job output into dataset
On Tue, 9 May 2017 21:39:52 +0100, David W Noon wrote: >On Tue, 9 May 2017 14:56:33 -0500, Paul Gilmartin >(000433f07816-dmarc-requ...@listserv.ua.edu) wrote about "Re: job >output into dataset" (in ><5975685166305075.wa.paulgboulderaim@listserv.ua.edu>): > >> On Tue, 9 May 2017 20:20:10 +0100, David W Noon wrote: >[snip] >>> What kind of null statement did you use? >>> >>> The JCL null statement is coded as two slashes followed by blanks to the >>> end of the card image (or column 72 at least). >>> >> Two slashes and nothing else; no blanks. Do I need to have blanks? > >I think you will need at least 1 blank. I have never used varying length >records for JCL, since I date back to the days of Hollerith cards, which >were always 80 bytes long. > What happens to any additional records between the null statement and the next JOB statement? are they quietly ignored (with perhaps a message to operator?) At what point if any in the logic does the access method recognize INTRDR as special, different from ordinary SYSOUT? Does the // /*EOF ... that John M. mentioned cause flushing of any SYSOUT or only one with W=INTRDR? What happens if the operator issues "$TOJ W=INTRDR" on an ordinary SYSOUT data set after the fact? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
JCL null statement (Was: job output into dataset
On Tue, 9 May 2017 14:56:33 -0500, Paul Gilmartin (000433f07816-dmarc-requ...@listserv.ua.edu) wrote about "Re: job output into dataset" (in <5975685166305075.wa.paulgboulderaim@listserv.ua.edu>): On Tue, 9 May 2017 20:20:10 +0100, David W Noon wrote: [snip] What kind of null statement did you use? The JCL null statement is coded as two slashes followed by blanks to the end of the card image (or column 72 at least). Two slashes and nothing else; no blanks. Do I need to have blanks? I think you will need at least 1 blank. I have never used varying length records for JCL, since I date back to the days of Hollerith cards, which were always 80 bytes long. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* david.w.n...@googlemail.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 13:38:02 -0500, Tom Marchant wrote: > >The behavior that David describes is very old. Back in the 70's, >operators would routinely add a null JCL statement to the end of >a tray of JCL to be processed so that the last job would be >processed immediately. I just submitted such a job and the >contents of JESJCLIN ends with the last statement before the >null JCL statement. > What command(s) did you use to submit it? Does the SDSD SJ command show the same? I probably observed this in a job submitted by FTP. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 20:20:10 +0100, David W Noon wrote: >On Tue, 9 May 2017 13:25:43 -0500, Paul Gilmartin >(000433f07816-dmarc-requ...@listserv.ua.edu) wrote about "Re: job >output into dataset" (in ><679800532864.wa.paulgboulderaim@listserv.ua.edu>): > >> On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: >>> >>> The INTRDR writer will "spin" a job stream to the input spool >>> automatically when: >>> >>> i) the job stream arrives at a null statement; >>>... >> I'm skeptical about that point since I often submit jobs with noise >> such as comments after a null statement and SDSF shows me >> those lines in JESJCLIN, indicating that the job was not spun until >> the SYSOUT was closed. > >What kind of null statement did you use? > >The JCL null statement is coded as two slashes followed by blanks to the >end of the card image (or column 72 at least). > Two slashes and nothing else; no blanks. Do I need to have blanks? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 13:25:43 -0500, Paul Gilmartin (000433f07816-dmarc-requ...@listserv.ua.edu) wrote about "Re: job output into dataset" (in <679800532864.wa.paulgboulderaim@listserv.ua.edu>): On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: The INTRDR writer will "spin" a job stream to the input spool automatically when: i) the job stream arrives at a null statement; ... I'm skeptical about that point since I often submit jobs with noise such as comments after a null statement and SDSF shows me those lines in JESJCLIN, indicating that the job was not spun until the SYSOUT was closed. What kind of null statement did you use? The JCL null statement is coded as two slashes followed by blanks to the end of the card image (or column 72 at least). -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* david.w.n...@googlemail.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
It also returns the JES JobId of the submitted job which is extremely helpful if the same JobName is submitted multiple times. Sent from my iPhone > On May 9, 2017, at 14:58, John McKownwrote: > > Also, any more, I use the ACB interface instead of the DCB interface. This > allows the use of the "VSAM" ENDREQ macro, which also closes out a job. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, May 9, 2017 at 1:25 PM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: > > > >The INTRDR writer will "spin" a job stream to the input spool > >automatically when: > > > > i) the job stream arrives at a null statement; > >... > I'm skeptical about that point since I often submit jobs with noise > such as comments after a null statement and SDSF shows me > those lines in JESJCLIN, indicating that the job was not spun until > the SYSOUT was closed. > Being weird (as is well know here), I have the following two JCL statements last: // /*EOF ref: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieab500/iea3b5_Destination_control_to_internal_reader.htm *Sending internal reader buffer directly to JES* Instead of waiting for the buffer in your address space to fill up, send the contents of the internal reader buffer directly to JES by coding as the last record in the job:/*EOFThis control statement delimits the job in the data set and makes it eligible for immediate processing./*DELThis control statement cancels the job in the data set and schedules it for immediate output processing. The output consists of any JCL submitted, followed by a message indicating that the job was deleted before execution./*PURGE*For JES2 only*, this control statement cancels the job in the data set and schedules it for purge processing; no output is produced for the job./*SCAN*For JES2 only*, this control statement requests that JES2 only scan the job in the data set for JCL errors. The job is not to be executed. Also, any more, I use the ACB interface instead of the DCB interface. This allows the use of the "VSAM" ENDREQ macro, which also closes out a job. This latter is even better since the JCL "null" and the /*EOF could both be "swallowed up" by something like: //SYSIN DD DATA,DLM=$$ as the last JCL statement. ref: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasc300/has2z1_Submitting_to_the_internal_reader_from_jobs_or_tasks.htm > > -- gil > -- Advertising is a valuable economic factor because it is the cheapest way of selling goods, particularly if the goods are worthless. -- Sinclair Lewis Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 13:25:43 -0500, Paul Gilmartin wrote: >On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: >> i) the job stream arrives at a null statement; >>... >I'm skeptical about that point since I often submit jobs with noise >such as comments after a null statement and SDSF shows me >those lines in JESJCLIN, indicating that the job was not spun until >the SYSOUT was closed. I don't believe it. The behavior that David describes is very old. Back in the 70's, operators would routinely add a null JCL statement to the end of a tray of JCL to be processed so that the last job would be processed immediately. I just submitted such a job and the contents of JESJCLIN ends with the last statement before the null JCL statement. -- Tom Marchant -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: > >The INTRDR writer will "spin" a job stream to the input spool >automatically when: > > i) the job stream arrives at a null statement; >... I'm skeptical about that point since I often submit jobs with noise such as comments after a null statement and SDSF shows me those lines in JESJCLIN, indicating that the job was not spun until the SYSOUT was closed. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 18:59:23 +0100, David W Noon wrote: > >The INTRDR writer will "spin" a job stream to the input spool >automatically when: > > i) the job stream arrives at a null statement; > > ii) the job stream arrives at a new JOB statement; > >iii) the SYSOUT DD statement is closed. > >If an INTRDR stream does not release the job stream to the input spool >then the submitter program is incorrectly coded. > It's pretty hard to commit that error since at least for (iii) the CLOSE is automatic when the program terminates. (Well, yes, I've done it by FREEMAINing BSAM buffers prematurely. But I know better now.) -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
JCL or ...? (was: job output into dataset)
On 2017-05-09, at 10:20, Farley, Peter x23353 wrote: > Burroughs 5500 MCS (and possibly later, I didn't get to see those) had WFL, > Work Flow Language, which was nearly the full Burroughs Algol language, minus > the I/O facilities. > > Very powerful and flexible. Your "JCL" was an actual program, and IIRC it > was compiled for execution. Fun stuff. > > Shell scripts are all well and good for those who understand them I suppose, > but they have their quirks and deficiencies too. I can read and write them > myself, but many application programmers cannot yet do so, and are stuck with > JCL. > Don't consider a deficit of knowledge an insurmountable obstacle. For z/OS, Rexx might be a better fit than sh. What JCL facilities are absent from most other languages?: o Atomic and persistent ENQ SYSDSN to avoid deadlocks. o Passed data sets/referbacks. o DISP=RETAIN. o Other (specify)? -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 12:52:19 -0500, Paul Gilmartin (000433f07816-dmarc-requ...@listserv.ua.edu) wrote about "Re: job output into dataset" (in <3155439687677594.wa.paulgboulderaim@listserv.ua.edu>): On Tue, 9 May 2017 10:16:00 -0700, Lizette Koehler wrote: You can SPIN SYSOUT (I do not think you can SPIN INTRDR ) For INTRDR, the program can close it (and re-open or FREE and re-ALLOCATE.) I don't think I'd want to spin INTRDR by an external command unless I knew that data set was at a JOB statement boundary. The INTRDR writer will "spin" a job stream to the input spool automatically when: i) the job stream arrives at a null statement; ii) the job stream arrives at a new JOB statement; iii) the SYSOUT DD statement is closed. If an INTRDR stream does not release the job stream to the input spool then the submitter program is incorrectly coded. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* david.w.n...@googlemail.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 10:16:00 -0700, Lizette Koehler wrote: > >You can SPIN SYSOUT (I do not think you can SPIN INTRDR ) > For INTRDR, the program can close it (and re-open or FREE and re-ALLOCATE.) I don't think I'd want to spin INTRDR by an external command unless I knew that data set was at a JOB statement boundary. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Venkat - You can SPIN SYSOUT (I do not think you can SPIN INTRDR ) Sometimes, the SYSOUT is not PURGED from the Job unless you have SPIN=CLOSE,FREE=UNALLOC. Otherwise the purge of the output will occur when the task is shut down. JES2 keeps a counter of output written. When it gets to a certain amount you will see S722 abends When you SPIN output it will go to the output class specified. For example, SYSOUT=B - When you spin it will go to the class B. Now if B is setup in JES2 as a HELD class or OUTPUT class is dependent on your shop's JES2 parm You can see the output that you SPIN in the SDSF Panels. Either theOST H panels Once you spin the output you still need another process to write the data to a data set. Processes suggested so far Write an SDSF ISFEXEC REXX to read the Data from JES2 to dataset _ Example is JES2DISK Purchase a product to do this ($AVERS, VIEW DIRECT, XPTR, and so forth) Setup and External writer to read the data from Spool and write to a dataset Setup a JES2 Offloader to write the data to a dataset. Look for tools on cbttape.org Note: There are special DD statements that are generated by JES2 you cannot control with a JCL Statement to spin it. You could review the Manuals JES2 INIT and TUNING GUIDE, and JES2 INIT and TUNING Reference. They have good detail on how JES2 does output management. SA32-0991-00z/OS JES2 Initialization and Tuning Guide SA32-0992-00z/OS JES2 Initialization and Tuning Reference Next, find the REXX called JES2DISK. I use this all the time to read data from JES2 and write it to a dataset. It works very well. It is still not clear what problem you are trying to solve. If you could summarize what it is you need to do, it might be helpful to level set the issue at this time. There have been a lot of comments and suggestions which do not seem to meet your needs. For example, my task needs to collect the data from STC x which runs 24x7. I need the information written to the DD statement Y. This needs to go into a GDG or SEQ files for later review. This output is a (REPORT, JCL, LOGGING, etc) SPIN can happen at the TASK LEVEL - S stcname,SPIN=('spin parms') Or the DD level //DD DD SYSOUT=x,SPIN= OR by issuing a JES2 command $Tzz,SPINzzz is either Task Number, TaskName Depending on the requirements you are provided, it will depend on which function you will need to use. The more specific the question, the better the answers. Generic questions or comments can lead to confusion for everyone. This list can provide lots of suggestions and guidance. It will be your job to work with the suggestions and see what works in your shop. Each shop is different and what works for one does not always work for another. Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Tuesday, May 09, 2017 12:43 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Yes. It's not.so I should code jesmsglg dd stmt as //JESMSGLG dd > sysout=a,free=close,spin=unalloc > > in my ims proc and then recycle ims and then issue $t > job,imsproc,spin,ddname=JESMSGLG Command to spin JESMSGLG. > > Please correct me, if my understanding is wrong. > Also, suggest after this spin , how to remove those many record from JESMSGLG > dd which we just spin . > > On 09-May-2017 9:40 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > > > There is no DD named JCLOUT. > > There is nothing (aside from the JESx) to SPIN. > > Why do you want to spin job? > > > > > -Original Message- > > > From: IBM Mainframe Discussion List > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni > > > Sent: Monday, May 08, 2017 10:44 PM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: AW: Re: job output into dataset > > > > > > Hello All, > > > > > > > > > > > > Thanks for reply. I looked at my IMS proc and looks like below. > > > > > > > > > > > > BROWSESYS1.DEVL.PROCLIB(IMS12IMS) - 01.05Line Col > > 001 > > > 080 > > > > > > Command ===> Scroll > > ===> > > > CSR > > > > > > * Top of Data > > > ** > > > > > > > > > // PROC RGN=0M,SOUT=A, > > > > > > //SYS=,SYS2=, > > > > > > //RGSUF=DBC,PARM1='AUTO=N', > > > > > > //PARM2= > > > &
Re: AW: Re: job output into dataset
Burroughs 5500 MCS (and possibly later, I didn't get to see those) had WFL, Work Flow Language, which was nearly the full Burroughs Algol language, minus the I/O facilities. Very powerful and flexible. Your "JCL" was an actual program, and IIRC it was compiled for execution. Fun stuff. Shell scripts are all well and good for those who understand them I suppose, but they have their quirks and deficiencies too. I can read and write them myself, but many application programmers cannot yet do so, and are stuck with JCL. Peter -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of John McKown Sent: Tuesday, May 09, 2017 11:31 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: AW: Re: job output into dataset IMO, IBM needs to _replace_ JCL with "something else". But, honestly, I'm not knowledgeable enough to design the "something else". And, even then, you'd need to allow both the old JCL and the new WCL (Workload Control Language, just to give it a name) to be "submitted". But, also quite honestly, I'd really prefer that IBM use its time and money for better things. If you don't like JCL (and I don't really), then just run UNIX scripts via JCL using Dovetailed Technologies' Co:Z Launcher. It has the nice property of being able to allow the reading and writing of physical sequential data sets defined in DDs using their "fromdsn" and "todsn" UNIX commands. -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 9 May 2017 10:21:38 -0500, Tom Marchant wrote: > >How many languages had a PRAGMA directive when ASP was written in the 1960's? > I see that as having been an excellent opportunity to innovate. IBM often misses such opportunities. The term "pragma[t]" appears to have originated with ALGOL-68. But processing directives are much older. How long has assembler had a PRINT directive, very similar in purpose to //* FORMAT? On JES2-only or JES3-only constructs: IIRC, there was an interval during which the JCL OUTPUT statement was supported by JES2 but not by JES3. What happened at that time if a programmer attempted to run a JES2 job containing "OUTPUT" on JES3? o OUTPUT was quietly ignored? o OUTPUT was ignored except for a warning? o Syntax error? I consider the "quietly ignored" behavior the worst -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, May 9, 2017 at 10:03 AM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Tue, 9 May 2017 09:54:22 -0500, Tom Marchant wrote: > > >On Tue, 9 May 2017 08:16:48 -0600, Paul Gilmartin wrote: > > > >>The JCL Ref. indicates that they are available to the > >>//*FORMAT PR statement. > >> > >>("//*FORMAT PR" looks uncomfortably like a comment. Is > >>this a reserved comment? Ugh!) > > > >It's a JES3 JECL statement. > >There is a good reason it looks like a comment. > >It allows JCL to be coded that contains Job Entry Control Language > statements > >for both JES2 and JES3, so that it can be run in either environment. > > > I don't consider it a good reason. It would have been better to provide a > PRAGMA directive as many other languages do, rather than to usurp > part of the comment grammar with attendant risk of astonishment. > In a perfect world, you are correct. But JES2 was originally HASP, whereas JES3 was ASP. And those "products" were non-IBM developed (as not in PID) "add ons" back in the days of OS/MFT & OS/MVT. Many of the strange things in JES2 (such as the DUPL_JOB=DELAY) were inherited from HASP. Since they were "add ons", they could not introduce any changes to the JCL converter/interpreter. After 40+ years, changing all your old JES{2,3} JECL to the "new and improved!" stuff would cause people to tear IBM a new one. One big problem with z/OS is all the "cruft" left over from restriction in the past which were _required_ (due to the "smallness" of the computers) at the time but are now just a PITA. IMO, IBM needs to _replace_ JCL with "something else". But, honestly, I'm not knowledgeable enough to design the "something else". And, even then, you'd need to allow both the old JCL and the new WCL (Workload Control Language, just to give it a name) to be "submitted". But, also quite honestly, I'd really prefer that IBM use its time and money for better things. If you don't like JCL (and I don't really), then just run UNIX scripts via JCL using Dovetailed Technologies' Co:Z Launcher. It has the nice property of being able to allow the reading and writing of physical sequential data sets defined in DDs using their "fromdsn" and "todsn" UNIX commands. > > -- gil > > -- Advertising is a valuable economic factor because it is the cheapest way of selling goods, particularly if the goods are worthless. -- Sinclair Lewis Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, 9 May 2017 10:03:04 -0500, Paul Gilmartin wrote: >On Tue, 9 May 2017 09:54:22 -0500, Tom Marchant wrote: > >>There is a good reason it looks like a comment. >>It allows JCL to be coded that contains Job Entry Control Language statements >>for both JES2 and JES3, so that it can be run in either environment. >> >I don't consider it a good reason. It would have been better to provide a >PRAGMA directive as many other languages do, rather than to usurp >part of the comment grammar with attendant risk of astonishment. Hindsight. How many languages had a PRAGMA directive when ASP was written in the 1960's? -- Tom Marchant -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, 9 May 2017 09:54:22 -0500, Tom Marchant wrote: >On Tue, 9 May 2017 08:16:48 -0600, Paul Gilmartin wrote: > >>The JCL Ref. indicates that they are available to the >>//*FORMAT PR statement. >> >>("//*FORMAT PR" looks uncomfortably like a comment. Is >>this a reserved comment? Ugh!) > >It's a JES3 JECL statement. >There is a good reason it looks like a comment. >It allows JCL to be coded that contains Job Entry Control Language statements >for both JES2 and JES3, so that it can be run in either environment. > I don't consider it a good reason. It would have been better to provide a PRAGMA directive as many other languages do, rather than to usurp part of the comment grammar with attendant risk of astonishment. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, May 9, 2017 at 9:16 AM, Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On 2017-05-09, at 01:42, venkat kulkarni wrote: > > > Yes. It's not.so I should code jesmsglg dd stmt as > > //JESMSGLG dd sysout=a,free=close,spin=unalloc > > > > in my ims proc and then recycle ims and then issue > > $t job,imsproc,spin,ddname=JESMSGLG > > Command to spin JESMSGLG. > > > The JCL Ref. lists several DDNAMES not available for general use: > Special ddnames > The special data sets are identified by the following ddnames: > JOBLIB > STEPLIB > SYSABEND > SYSCHK > SYSCKEOV > SYSIN > SYSMDUMP > SYSUDUMP > > SDSF also shows me several (pseudo?) DDNAMEs such as > JESJCL, JESYSMSG, and JESMSGLG. What happens if the > programmer attempts to override one of these, e.g. by > directing it to a catalogued data set or a UNIX file? > NCD - No Can Do. Those pseudo DDNAMEs cannot be directed to a non-SPOOL data set or UNIX file. The only thing that I know could possibly be done is to SPIN them off periodically (or aperiodically "as requested" via that $T command) and then process the spun data, perhaps into a DSN or UNIX file or, as we do, to a "remote" location via an LPR destination (which is a Windows box driven from z/OS via MacKinney's JQP). > > The JCL Ref. indicates that they are available to the > //*FORMAT PR statement. > > ("//*FORMAT PR" looks uncomfortably like a comment. Is > this a reserved comment? Ugh!) > this is a JES3 JECL (JEs Command Language) statement. And, yes, it _is_ also a regular JCL comment statement in a non-JES3 (i.e. JES2) environment. > > -- gil > > -- Advertising is a valuable economic factor because it is the cheapest way of selling goods, particularly if the goods are worthless. -- Sinclair Lewis Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, 9 May 2017 08:16:48 -0600, Paul Gilmartin wrote: >The JCL Ref. indicates that they are available to the >//*FORMAT PR statement. > >("//*FORMAT PR" looks uncomfortably like a comment. Is >this a reserved comment? Ugh!) It's a JES3 JECL statement. There is a good reason it looks like a comment. It allows JCL to be coded that contains Job Entry Control Language statements for both JES2 and JES3, so that it can be run in either environment. -- Tom Marchant -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On Tue, 9 May 2017 16:01:33 +0300, venkat kulkarni wrote: >and also after spin, all these messages should be no longer exist in this >imsproc. SPIN does not delete messages. It makes them available for print or cancel. -- Tom Marchant -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
On 2017-05-09, at 01:42, venkat kulkarni wrote: > Yes. It's not.so I should code jesmsglg dd stmt as > //JESMSGLG dd sysout=a,free=close,spin=unalloc > > in my ims proc and then recycle ims and then issue > $t job,imsproc,spin,ddname=JESMSGLG > Command to spin JESMSGLG. > The JCL Ref. lists several DDNAMES not available for general use: Special ddnames The special data sets are identified by the following ddnames: JOBLIB STEPLIB SYSABEND SYSCHK SYSCKEOV SYSIN SYSMDUMP SYSUDUMP SDSF also shows me several (pseudo?) DDNAMEs such as JESJCL, JESYSMSG, and JESMSGLG. What happens if the programmer attempts to override one of these, e.g. by directing it to a catalogued data set or a UNIX file? The JCL Ref. indicates that they are available to the //*FORMAT PR statement. ("//*FORMAT PR" looks uncomfortably like a comment. Is this a reserved comment? Ugh!) -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Hello Lizette, Sorry for consuming lots of time on this issue. But, I wanted to get clarity on very basic like, 1) If I see more records in one of the JES* DD statement Ex : JESMSGLG in my IMS address space and I want to spin this messages from this address space and put it in one dataset and also after spin, all these messages should be no longer exist in this imsproc. SDSF JOB DATA SET DISPLAY - JOB IMS12IMS (STC01559)LINE 1-5 (5) COMMAND INPUT ===>SCROLL ===> CSR PREFIX=DBC* DEST=(ALL) OWNER=* SYSNAME= NP DDNAME StepName ProcStep DSID OwnerC Dest Rec-Cnt Page JESMSGLG JES2 2 STCCICT Z 5 JESJCL JES2 3 STCCICT Z 229 JESYSMSG JES2 4 STCCICT Z 3 JESMSGLG JES2 103 STCCICT Z 869 JESYSMSG JES2 104 STCCICT Z 0 To make this process work, do I need to code DD statement in IMS proc like below //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC before running spin command ex : $T IMS12IMS,SPIN,DD=JESMSGLG or there is no need to code this //JESMSGLG DD SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC DD statement inside IMS proc. I am asking this query because, currently in my IMS proc, I have only below DD statement //STEPLIB DD DSN=IMS1.V120.,DISP=SHR //PROCLIB DD DSN=IMS1.V120.,DISP=SHR //DFSOLP00 DD DSN=IMS1.V120.,DISP=SHR //DFSOLP01 DD DSN=IMS1.V120.,DISP=SHR //DFSOLP99 DD DSN=IMS1.V120.,DISP=SHR //DFSWADS0 DD DSN=IMS1.V120.,DISP=SHR //DFSWADS1 DD DSN=IMS1.V120.,DISP=SHR //IMSACBA DD DSN=IMS1.V120.ACBLIBA,DISP=SHR //IMSACBB DD DSN=IMS1.V120.ACBLIBB,DISP=SHR //MODBLKSA DD DSN=IMS1.V120.,DISP=SHR //MODBLKSB DD DSN=IMS1.V120.,DISP=SHR //MODSTAT DD DSN=IMS1.V120.,DISP=SHR //SYSUDUMP DD SYSOUT=, //IMSRDS DD DSN=IMS1.V120.,DISP=SHR //MATRIXA DD DSN=IMS1.V120.,DISP=SHR //MATRIXB DD DSN=IMS1.V120.,DISP=SHR //PRINTDD DD SYSOUT= //IMSMON DD DSN=IMS1.V120.IMSMON,DISP=SHR //DFSESL DD DSN=IMS1.V120.,DISP=SHR and when I run $T IMS12IMS,SPIN,DD=JESMSGLG command, I see all record line comes to zero in address space or JESMSGLG DD but system create one more DD with same name JESMSGLG, but I am not sure how this happens ?? And SPIN command output never complete and i just get below message but never received message saying " SPIN successfully completed." $T IMS12IMS,SPIN,DD=JESMSGLG $HASP890 JOB(DBCY2RC3) 878 $HASP890 JOB(DBCY2RC3) STATUS=(EXECUTING/TST4),CLASS=STC, $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) Now, my another query is , when I run this SPIN command and my DD JESMSGLG record comes to zero then where all these message gone. Are they purged or I can view them. I tried looking at output but I don’t find any print named IMS12IMS . Can you please guide me with this whole process On 09-May-2017 10:42 AM, "venkat kulkarni" <venkatkulkarn...@gmail.com> wrote: > Yes. It's not.so I should code jesmsglg dd stmt as > //JESMSGLG dd sysout=a,free=close,spin=unalloc > > in my ims proc and then recycle ims and then issue > $t job,imsproc,spin,ddname=JESMSGLG > Command to spin JESMSGLG. > > Please correct me, if my understanding is wrong. > Also, suggest after this spin , how to remove those many record from JESMSGLG > dd which we just spin . > > On 09-May-2017 9:40 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > >> There is no DD named JCLOUT. >> There is nothing (aside from the JESx) to SPIN. >> Why do you want to spin job? >> >> > -Original Message- >> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] >> > On Behalf Of venkat kulkarni >> > Sent: Monday, May 08, 2017 10:44 PM >> > To: IBM-MAIN@LISTSERV.UA.EDU >> > Subject: Re: AW: Re: job output into dataset >> > >> > Hello All, >> > >> > >> > >> > Thanks for reply. I looked at my IMS proc and looks like below. >> > >> > >> > >> > BROWSESYS1.DEVL.PROCLIB(IMS12IMS) - 01.05Line Col >> 001 >> > 080 >> > >> > Command ===> Scroll >> ===> >> > CSR >> > >> > * Top of Data >> > ** >> > >> > >> > // PROC RGN=0M,SOUT=A, >> > >> > //SYS=,SYS2=, >> > >> > //RGSUF=DBC,PARM1='AUTO=N', >> > >> > //PARM2= >> > >> > //IEFPROC EXEC PGM=DFSMVRC0,REGION=, >> > >> > //PARM='DBC,,,' >> > >> > //* >> > >> > //S
Re: AW: Re: job output into dataset
Yes. It's not.so I should code jesmsglg dd stmt as //JESMSGLG dd sysout=a,free=close,spin=unalloc in my ims proc and then recycle ims and then issue $t job,imsproc,spin,ddname=JESMSGLG Command to spin JESMSGLG. Please correct me, if my understanding is wrong. Also, suggest after this spin , how to remove those many record from JESMSGLG dd which we just spin . On 09-May-2017 9:40 AM, "Gibney, Dave" <gib...@wsu.edu> wrote: > There is no DD named JCLOUT. > There is nothing (aside from the JESx) to SPIN. > Why do you want to spin job? > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > On Behalf Of venkat kulkarni > > Sent: Monday, May 08, 2017 10:44 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: AW: Re: job output into dataset > > > > Hello All, > > > > > > > > Thanks for reply. I looked at my IMS proc and looks like below. > > > > > > > > BROWSESYS1.DEVL.PROCLIB(IMS12IMS) - 01.05Line Col > 001 > > 080 > > > > Command ===> Scroll > ===> > > CSR > > > > * Top of Data > > ** > > > > > > // PROC RGN=0M,SOUT=A, > > > > //SYS=,SYS2=, > > > > //RGSUF=DBC,PARM1='AUTO=N', > > > > //PARM2= > > > > //IEFPROC EXEC PGM=DFSMVRC0,REGION=, > > > > //PARM='DBC,,,' > > > > //* > > > > //STEPLIB DD DSN=IMS1.V120.,DISP=SHR > > > > //PROCLIB DD DSN=IMS1.V120.,DISP=SHR > > > > //* > > > > //IMSIRD DD SYSOUT=(A,INTRDR) > > > > //* > > > > //* > > > > //DFSOLP00 DD DSN=IMS1.V120.,DISP=SHR > > > > //DFSOLP01 DD DSN=IMS1.V120.,DISP=SHR > > > > //DFSOLP99 DD DSN=IMS1.V120.,DISP=SHR > > > > //* > > > > //DFSWADS0 DD DSN=IMS1.V120.,DISP=SHR > > > > //DFSWADS1 DD DSN=IMS1.V120.,DISP=SHR > > > > //* > > > > //IMSACBA DD DSN=IMS1.V120.ACBLIBA,DISP=SHR > > > > //*DD DSN=DBCR.V120.ACBLIB.FAID,DISP=SHR > > > > //IMSACBB DD DSN=IMS1.V120.ACBLIBB,DISP=SHR > > > > //*DD DSN=DBCR.V120.ACBLIB.FAID,DISP=SHR > > > > //MODBLKSA DD DSN=IMS1.V120.,DISP=SHR > > > > //MODBLKSB DD DSN=IMS1.V120.,DISP=SHR > > > > //MODSTAT DD DSN=IMS1.V120.,DISP=SHR > > > > // SYSTEM REQUIRED DD CARDS ** > > > > //* > > > > //SYSUDUMP DD SYSOUT=, > > > > // DCB=(LRECL=125,RECFM=FBA,BLKSIZE=3129), > > > > // SPACE=(6050,300,,,ROUND) > > > > //IMSRDS DD DSN=IMS1.V120.,DISP=SHR > > > > //MATRIXA DD DSN=IMS1.V120.,DISP=SHR > > > > //MATRIXB DD DSN=IMS1.V120.,DISP=SHR > > > > //PRINTDD DD SYSOUT= > > > > //* > > > > //IMSMON DD DSN=IMS1.V120.IMSMON,DISP=SHR > > > > > > //** EXTERNAL SUBSYSTEM DD CARDS *** > > > > //* > > > > //* USER MAY OPTIONALLY ADD THE DFSESL DD CARD > > > > //* FOR EXTERNAL SUBSYSTEM CONNECTION. > > > > //* > > > > //DFSESL DD DSN=IMS1.V120.,DISP=SHR > > > > // DATA BASE DD CARDS *** > > > > Bottom of Data > > > > > > > > > > And in DA, I see this > > > > > > > > COMMAND INPUT ===> > > > > PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= > > > > NP DDNAME StepName ProcStep DSID OwnerC Dest > > > > JESMSGLG JES2 2STCBRCR Z > > > > JESJCL JES2 3 STCBRCR Z > > > > JESYSMSG JES2 4STCBRCR Z > > > > JESMSGLG JES2 104STCBRCR Z > > > > JESYSMSG JES2 105STCBRCR Z > > > > > > > > So, I don’t have any other SYSOUT withSYSOUT=* or SYSOUT=A as you can > > see > > in the above mentioned proc. > > > > > > > > So, can you please suggest, what are all change I need to make for spin > to > > work . > > > > I think, I will also have to addFREE=CLOSE,SPIN=UNALLOC in this IMS proc > DD, > > So that spin function can work. Because, currently when I run spin > command > > like below, > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > >
Re: AW: Re: job output into dataset
There is no DD named JCLOUT. There is nothing (aside from the JESx) to SPIN. Why do you want to spin job? > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of venkat kulkarni > Sent: Monday, May 08, 2017 10:44 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Hello All, > > > > Thanks for reply. I looked at my IMS proc and looks like below. > > > > BROWSESYS1.DEVL.PROCLIB(IMS12IMS) - 01.05Line Col 001 > 080 > > Command ===> Scroll ===> > CSR > > * Top of Data > ** > > > // PROC RGN=0M,SOUT=A, > > //SYS=,SYS2=, > > //RGSUF=DBC,PARM1='AUTO=N', > > //PARM2= > > //IEFPROC EXEC PGM=DFSMVRC0,REGION=, > > //PARM='DBC,,,' > > //* > > //STEPLIB DD DSN=IMS1.V120.,DISP=SHR > > //PROCLIB DD DSN=IMS1.V120.,DISP=SHR > > //* > > //IMSIRD DD SYSOUT=(A,INTRDR) > > //* > > //* > > //DFSOLP00 DD DSN=IMS1.V120.,DISP=SHR > > //DFSOLP01 DD DSN=IMS1.V120.,DISP=SHR > > //DFSOLP99 DD DSN=IMS1.V120.,DISP=SHR > > //* > > //DFSWADS0 DD DSN=IMS1.V120.,DISP=SHR > > //DFSWADS1 DD DSN=IMS1.V120.,DISP=SHR > > //* > > //IMSACBA DD DSN=IMS1.V120.ACBLIBA,DISP=SHR > > //*DD DSN=DBCR.V120.ACBLIB.FAID,DISP=SHR > > //IMSACBB DD DSN=IMS1.V120.ACBLIBB,DISP=SHR > > //*DD DSN=DBCR.V120.ACBLIB.FAID,DISP=SHR > > //MODBLKSA DD DSN=IMS1.V120.,DISP=SHR > > //MODBLKSB DD DSN=IMS1.V120.,DISP=SHR > > //MODSTAT DD DSN=IMS1.V120.,DISP=SHR > > // SYSTEM REQUIRED DD CARDS ** > > //* > > //SYSUDUMP DD SYSOUT=, > > // DCB=(LRECL=125,RECFM=FBA,BLKSIZE=3129), > > // SPACE=(6050,300,,,ROUND) > > //IMSRDS DD DSN=IMS1.V120.,DISP=SHR > > //MATRIXA DD DSN=IMS1.V120.,DISP=SHR > > //MATRIXB DD DSN=IMS1.V120.,DISP=SHR > > //PRINTDD DD SYSOUT= > > //* > > //IMSMON DD DSN=IMS1.V120.IMSMON,DISP=SHR > > > //** EXTERNAL SUBSYSTEM DD CARDS *** > > //* > > //* USER MAY OPTIONALLY ADD THE DFSESL DD CARD > > //* FOR EXTERNAL SUBSYSTEM CONNECTION. > > //* > > //DFSESL DD DSN=IMS1.V120.,DISP=SHR > > // DATA BASE DD CARDS *** > > Bottom of Data > > > > > And in DA, I see this > > > > COMMAND INPUT ===> > > PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= > > NP DDNAME StepName ProcStep DSID OwnerC Dest > > JESMSGLG JES2 2STCBRCR Z > > JESJCL JES2 3 STCBRCR Z > > JESYSMSG JES2 4STCBRCR Z > > JESMSGLG JES2 104STCBRCR Z > > JESYSMSG JES2 105STCBRCR Z > > > > So, I don’t have any other SYSOUT withSYSOUT=* or SYSOUT=A as you can > see > in the above mentioned proc. > > > > So, can you please suggest, what are all change I need to make for spin to > work . > > I think, I will also have to addFREE=CLOSE,SPIN=UNALLOC in this IMS proc DD, > So that spin function can work. Because, currently when I run spin command > like below, > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > I just get output as below. > > > > and output from this command is > > RESPONSE=TST4 > > $HASP890 JOB(IMS12RC3) > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > But this doesn’t show that spin successfully completed or not. > > > > I tried to provide you as much as detail this time. Can you please suggest, > how spin will work looking at my current proc > > > > On 08-May-2017 6:14 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > > > As I explained to Vekat, he can use the SDSF/REXX clist I gave him > > to extract and archive the SYSOUT queue to a dataset as allocated in the > clist. > > Then the clist can issue a command like: > > > > $TSTC04306,SPIN,DDNAME=DDNTOSPIN > > To drain the queue. > > > > The clist has the started task number to use for the $Tstcno,SPIN > command. > > Code can also be added to extract the number of existing lines in the > > DDNAME to determine whether or not to
Re: AW: Re: job output into dataset
Hello All, Thanks for reply. I looked at my IMS proc and looks like below. BROWSESYS1.DEVL.PROCLIB(IMS12IMS) - 01.05Line Col 001 080 Command ===> Scroll ===> CSR * Top of Data ** // PROC RGN=0M,SOUT=A, //SYS=,SYS2=, //RGSUF=DBC,PARM1='AUTO=N', //PARM2= //IEFPROC EXEC PGM=DFSMVRC0,REGION=, //PARM='DBC,,,' //* //STEPLIB DD DSN=IMS1.V120.,DISP=SHR //PROCLIB DD DSN=IMS1.V120.,DISP=SHR //* //IMSIRD DD SYSOUT=(A,INTRDR) //* //* //DFSOLP00 DD DSN=IMS1.V120.,DISP=SHR //DFSOLP01 DD DSN=IMS1.V120.,DISP=SHR //DFSOLP99 DD DSN=IMS1.V120.,DISP=SHR //* //DFSWADS0 DD DSN=IMS1.V120.,DISP=SHR //DFSWADS1 DD DSN=IMS1.V120.,DISP=SHR //* //IMSACBA DD DSN=IMS1.V120.ACBLIBA,DISP=SHR //*DD DSN=DBCR.V120.ACBLIB.FAID,DISP=SHR //IMSACBB DD DSN=IMS1.V120.ACBLIBB,DISP=SHR //*DD DSN=DBCR.V120.ACBLIB.FAID,DISP=SHR //MODBLKSA DD DSN=IMS1.V120.,DISP=SHR //MODBLKSB DD DSN=IMS1.V120.,DISP=SHR //MODSTAT DD DSN=IMS1.V120.,DISP=SHR // SYSTEM REQUIRED DD CARDS ** //* //SYSUDUMP DD SYSOUT=, // DCB=(LRECL=125,RECFM=FBA,BLKSIZE=3129), // SPACE=(6050,300,,,ROUND) //IMSRDS DD DSN=IMS1.V120.,DISP=SHR //MATRIXA DD DSN=IMS1.V120.,DISP=SHR //MATRIXB DD DSN=IMS1.V120.,DISP=SHR //PRINTDD DD SYSOUT= //* //IMSMON DD DSN=IMS1.V120.IMSMON,DISP=SHR //** EXTERNAL SUBSYSTEM DD CARDS *** //* //* USER MAY OPTIONALLY ADD THE DFSESL DD CARD //* FOR EXTERNAL SUBSYSTEM CONNECTION. //* //DFSESL DD DSN=IMS1.V120.,DISP=SHR // DATA BASE DD CARDS *** Bottom of Data And in DA, I see this COMMAND INPUT ===> PREFIX=IMS12IMS DEST=(ALL) OWNER=* SYSNAME= NP DDNAME StepName ProcStep DSID OwnerC Dest JESMSGLG JES2 2STCBRCR Z JESJCL JES2 3 STCBRCR Z JESYSMSG JES2 4STCBRCR Z JESMSGLG JES2 104STCBRCR Z JESYSMSG JES2 105STCBRCR Z So, I don’t have any other SYSOUT withSYSOUT=* or SYSOUT=A as you can see in the above mentioned proc. So, can you please suggest, what are all change I need to make for spin to work . I think, I will also have to addFREE=CLOSE,SPIN=UNALLOC in this IMS proc DD, So that spin function can work. Because, currently when I run spin command like below, $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT I just get output as below. and output from this command is RESPONSE=TST4 $HASP890 JOB(IMS12RC3) $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) But this doesn’t show that spin successfully completed or not. I tried to provide you as much as detail this time. Can you please suggest, how spin will work looking at my current proc On 08-May-2017 6:14 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > As I explained to Vekat, he can use the SDSF/REXX clist I gave him to > extract and archive the SYSOUT queue to a dataset as allocated in the clist. > Then the clist can issue a command like: > > $TSTC04306,SPIN,DDNAME=DDNTOSPIN > To drain the queue. > > The clist has the started task number to use for the $Tstcno,SPIN command. > Code can also be added to extract the number of existing lines in the > DDNAME to determine whether or not to spin it. > Any DDNAME can be specified. > > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Monday, May 08, 2017 3:34 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Just to add one more thing . Under ims12rc3 address space , below are dd > name available. > > COMMAND INPUT ===> > > PREFIX=* DEST=(ALL) OWNER=* > > NP DDNAME StepName ProcSte > > JESMSGLG JES2 > > JESJCL JES2 > > JESYSMSG JES2 > > JESMSGLG JES2 > > JESYSMSG JES2 > > On 08-May-2017 10:25 AM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > wrote: > > > > > Thanks for all suggestion and sorry for not being more precise. Our > > requirement is > > > > > > > > 1) Any address space (STC) running continously and producing more number > > of linee, we would like to cut lines on regulalr basis and put it in > > seperate dataset and keep appending data > > > > on regulalr basis. > > > > > > > > 2) But I am not aware of this process of doing this task. But after all > > our discussion, I did as below. > >
Re: AW: Re: job output into dataset
As I explained to Vekat, he can use the SDSF/REXX clist I gave him to extract and archive the SYSOUT queue to a dataset as allocated in the clist. Then the clist can issue a command like: $TSTC04306,SPIN,DDNAME=DDNTOSPIN To drain the queue. The clist has the started task number to use for the $Tstcno,SPIN command. Code can also be added to extract the number of existing lines in the DDNAME to determine whether or not to spin it. Any DDNAME can be specified. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni Sent: Monday, May 08, 2017 3:34 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: AW: Re: job output into dataset Just to add one more thing . Under ims12rc3 address space , below are dd name available. COMMAND INPUT ===> PREFIX=* DEST=(ALL) OWNER=* NP DDNAME StepName ProcSte JESMSGLG JES2 JESJCL JES2 JESYSMSG JES2 JESMSGLG JES2 JESYSMSG JES2 On 08-May-2017 10:25 AM, "venkat kulkarni" <venkatkulkarn...@gmail.com> wrote: > > Thanks for all suggestion and sorry for not being more precise. Our > requirement is > > > > 1) Any address space (STC) running continously and producing more number > of linee, we would like to cut lines on regulalr basis and put it in > seperate dataset and keep appending data > > on regulalr basis. > > > > 2) But I am not aware of this process of doing this task. But after all > our discussion, I did as below. > > > > I looked at IMS12RC3 proc in proclib library and noticed one of SYSOUT DD > statement as below > > > > //JCLOUT DD SYSOUT=(A,INTRDR) > > > > Job IMS12RC3 is, > > > > BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 > > > > * Top of Data > Show quoted text > > and then I used below command to spin IMS12RC3 address space lines and > put it in dataset. > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > and output from this command is > > > > RESPONSE=TST4 > > $HASP890 JOB(IMS12RC3) > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > But I think my understanding is wrong somehow but not able to point out > the issue. > > > > I think, the flow of this process will be use SPIN command to cut lines > from running address space to spool and then from spool, we should copy to > dataset. > > > > As I am new in this process, please help me with the required steps to be > performed to achieve this. > > On 08-May-2017 8:51 AM, "Peter Hunkeler" <p...@gmx.ch> wrote: > >> >> > Started tasks? TSO sessions? UNIX forked (BPXAS) address spaces? >> >> >> What do you want to say by this?? >> >> >> -- >> Peter Hunkeler >> >> >> >> -- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >> > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
So there is nothing to SPIN. Instead of using JCLOUT which is an INTRDR (Very different than a normal SYSOUT statement) Find a task that uses SYSOUT=* or SYSOUT=A (Or some similar OUTPUT CLASS) Then try your $T command again 1) Verify there is output in the DD statement by following the steps provided a) DA OSTC Screen b) ? next to the Running task c) Verify the DD statement has output by entering S next to the DD statement (Other than a JES prefixed DD) 2) Next, issue the SPIN command that you want against that output 3) See if there is a JES2 message indicating output has been actioned a) When spinning remember it will still be in the Spool. Instead check the OUTPUT Panel O to see if it is there Remember we cannot access your shop. You need to experiment based on the feedback you get. Read up on the $T command in the JES2 manuals to understand what it does, and what you should expect for the results. Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Monday, May 08, 2017 12:34 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: AW: Re: job output into dataset > > Just to add one more thing . Under ims12rc3 address space , below are dd name > available. > > COMMAND INPUT ===> > > PREFIX=* DEST=(ALL) OWNER=* > > NP DDNAME StepName ProcSte > > JESMSGLG JES2 > > JESJCL JES2 > > JESYSMSG JES2 > > JESMSGLG JES2 > > JESYSMSG JES2 > > On 08-May-2017 10:25 AM, "venkat kulkarni" <venkatkulkarn...@gmail.com> > wrote: > > > > > Thanks for all suggestion and sorry for not being more precise. Our > > requirement is > > > > > > > > 1) Any address space (STC) running continously and producing more > > number of linee, we would like to cut lines on regulalr basis and put > > it in seperate dataset and keep appending data > > > > on regulalr basis. > > > > > > > > 2) But I am not aware of this process of doing this task. But after > > all our discussion, I did as below. > > > > > > > > I looked at IMS12RC3 proc in proclib library and noticed one of SYSOUT > > DD statement as below > > > > > > > > //JCLOUT DD SYSOUT=(A,INTRDR) > > > > > > > > Job IMS12RC3 is, > > > > > > > > BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 > > > > > > > > * Top of Data > > Show quoted text > > > > and then I used below command to spin IMS12RC3 address space lines > > and put it in dataset. > > > > > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > > > > > and output from this command is > > > > > > > > RESPONSE=TST4 > > > > $HASP890 JOB(IMS12RC3) > > > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > > > > > > > > > But I think my understanding is wrong somehow but not able to point > > out the issue. > > > > > > > > I think, the flow of this process will be use SPIN command to cut > > lines from running address space to spool and then from spool, we > > should copy to dataset. > > > > > > > > As I am new in this process, please help me with the required steps > > to be performed to achieve this. > > > > On 08-May-2017 8:51 AM, "Peter Hunkeler" <p...@gmx.ch> wrote: > > > >> > >> > Started tasks? TSO sessions? UNIX forked (BPXAS) address spaces? > >> > >> > >> What do you want to say by this?? > >> > >> > >> -- > >> Peter Hunkeler > >> -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Just to add one more thing . Under ims12rc3 address space , below are dd name available. COMMAND INPUT ===> PREFIX=* DEST=(ALL) OWNER=* NP DDNAME StepName ProcSte JESMSGLG JES2 JESJCL JES2 JESYSMSG JES2 JESMSGLG JES2 JESYSMSG JES2 On 08-May-2017 10:25 AM, "venkat kulkarni"wrote: > > Thanks for all suggestion and sorry for not being more precise. Our > requirement is > > > > 1) Any address space (STC) running continously and producing more number > of linee, we would like to cut lines on regulalr basis and put it in > seperate dataset and keep appending data > > on regulalr basis. > > > > 2) But I am not aware of this process of doing this task. But after all > our discussion, I did as below. > > > > I looked at IMS12RC3 proc in proclib library and noticed one of SYSOUT DD > statement as below > > > > //JCLOUT DD SYSOUT=(A,INTRDR) > > > > Job IMS12RC3 is, > > > > BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 > > > > * Top of Data > Show quoted text > > and then I used below command to spin IMS12RC3 address space lines and > put it in dataset. > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > and output from this command is > > > > RESPONSE=TST4 > > $HASP890 JOB(IMS12RC3) > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > But I think my understanding is wrong somehow but not able to point out > the issue. > > > > I think, the flow of this process will be use SPIN command to cut lines > from running address space to spool and then from spool, we should copy to > dataset. > > > > As I am new in this process, please help me with the required steps to be > performed to achieve this. > > On 08-May-2017 8:51 AM, "Peter Hunkeler" wrote: > >> >> > Started tasks? TSO sessions? UNIX forked (BPXAS) address spaces? >> >> >> What do you want to say by this?? >> >> >> -- >> Peter Hunkeler >> >> >> >> -- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >> > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: AW: Re: job output into dataset
Thanks for all suggestion and sorry for not being more precise. Our requirement is 1) Any address space (STC) running continously and producing more number of linee, we would like to cut lines on regulalr basis and put it in seperate dataset and keep appending data on regulalr basis. 2) But I am not aware of this process of doing this task. But after all our discussion, I did as below. I looked at IMS12RC3 proc in proclib library and noticed one of SYSOUT DD statement as below //JCLOUT DD SYSOUT=(A,INTRDR) Job IMS12RC3 is, BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 * Top of Data Show quoted text and then I used below command to spin IMS12RC3 address space lines and put it in dataset. $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT and output from this command is RESPONSE=TST4 $HASP890 JOB(IMS12RC3) $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) But I think my understanding is wrong somehow but not able to point out the issue. I think, the flow of this process will be use SPIN command to cut lines from running address space to spool and then from spool, we should copy to dataset. As I am new in this process, please help me with the required steps to be performed to achieve this. On 08-May-2017 8:51 AM, "Peter Hunkeler"wrote: > > > Started tasks? TSO sessions? UNIX forked (BPXAS) address spaces? > > > What do you want to say by this?? > > > -- > Peter Hunkeler > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
AW: Re: job output into dataset
> Started tasks? TSO sessions? UNIX forked (BPXAS) address spaces? What do you want to say by this?? -- Peter Hunkeler -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Sun, 7 May 2017 17:27:51 +, J R wrote: >Huh? REPORTS? Someone's confused. > Perhaps, "jobs generating reports." But that's redundant. Started tasks? TSO sessions? UNIX forked (BPXAS) address spaces? >> On May 7, 2017, at 12:34, Lizette Koehler wrote: >> >> INTRDR is used to submit REPORTS or JCL into SPOOL. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Huh? REPORTS? Someone's confused. Sent from my iPhone > On May 7, 2017, at 12:34, Lizette Koehlerwrote: > > INTRDR is used to submit REPORTS or JCL into SPOOL. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Is the JCLOUT for a GENJCL process in IMS? If so, here is what the definition for this DD in IMS means JCLOUT DD Defines a data set where output produced by a GENJCL command is to be written. JCLPDS DD Defines a partitioned data set that contains the skeletal JCL execution and default members used by the GENJCL commands. So are you writing GENJCL to the INTRDR rather than a PDS? Do you now want the output from a GENJCL going to a dataset? Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Lizette Koehler > Sent: Sunday, May 07, 2017 9:42 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > So I guess now I am curious as to what you are trying to capture from your DD > Statement that uses the INTRDR? > > Are you capturing anything today manually? > > If yes, how are you doing that? What steps do you use to capture the > information? > > Be specific, it will help to find a good solution > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > On Behalf Of Lizette Koehler > > Sent: Sunday, May 07, 2017 9:34 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: job output into dataset > > > > A DD Statement that uses INTRDR is a special DD. > > > > INTRDR is used to submit REPORTS or JCL into SPOOL. So I am not sure > > exactly what you are trying to do. > > > > If you go to DA OSTC and PREFIX your STC name > > > > Issue a ? next to the running task. > > > > Next look in the list for JCLOUT > > > > Is it there? And does it have any data in it? > > > > Next go to O Panel in SDSF > > > > Prefix your STC NAME. > > > > See if there is anything on the spool for it. If there is, issue a ? > > next to the Entry and see what DD statement it comes from > > > > Here is what you should see when you do the ? next to the task name in > > the DA OSTC panel > > > > > > PREFIX=PRO* DEST=(ALL) OWNER= > > NP DDNAME StepName ProcStep > > JESMSGLG JES2 > > JESJCL JES2 > > JESYSMSG JES2 > > SYSPRINT PROJCLT > > JESMSGLG JES2 > > JESYSMSG JES2 > > > > Here is what you could see if you do a ? next to an entry in the O > > panel display > > > > PREFIX=* DEST=(ALL) > > NP DDNAME StepName Output > > REPORT IFOBAT I > > > > Lizette > > > > > > > -Original Message- > > > From: IBM Mainframe Discussion List > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni > > > Sent: Sunday, May 07, 2017 4:16 AM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: job output into dataset > > > > > > Hello, > > > > > > > > > > > > Thanks for helping so far. I used below command > > > > > > > > > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > > > > > > > > > and output from this command is > > > > > > > > > > > > RESPONSE=TST4 > > > > > > $HASP890 JOB(IMS12RC3) > > > > > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > > > > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > > > > > > > > > > > > > > > > > Job IMS12RC3 is, > > > > > > > > > > > > BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 > > > > > > Command ===> Scr > > > > > > * Top of Data > > > > > > // PROC RGN=0M,SOUT=A, > > > > > > //IMSID=IMS4,SYS2= > > > > > > //IEFPROC EXEC PGM=DFSMVRC0,REGION=, > > > > > > //PARM='DRC,' > > > > > > // > > > > > > //* > > > > > > //STEPLIB DD DSN=IMS4.V120.,DISP=SHR > > > > > > //PROCLIB DD DSN=IMS4.V120.,DISP=SHR > > > > > > //JCLOUT DD SYSOUT=(A,INTRDR) > > > > > > //JCLPDS DD DSN=IMS4.V120.,DISP=SHR > > > > > > //SYSUDUMP DD SYSOUT= > > > > > > //SYSABEND DD SYSOUT= > > > > > > //* > > &g
Re: job output into dataset
So I guess now I am curious as to what you are trying to capture from your DD Statement that uses the INTRDR? Are you capturing anything today manually? If yes, how are you doing that? What steps do you use to capture the information? Be specific, it will help to find a good solution Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Lizette Koehler > Sent: Sunday, May 07, 2017 9:34 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > A DD Statement that uses INTRDR is a special DD. > > INTRDR is used to submit REPORTS or JCL into SPOOL. So I am not sure exactly > what you are trying to do. > > If you go to DA OSTC and PREFIX your STC name > > Issue a ? next to the running task. > > Next look in the list for JCLOUT > > Is it there? And does it have any data in it? > > Next go to O Panel in SDSF > > Prefix your STC NAME. > > See if there is anything on the spool for it. If there is, issue a ? next to > the Entry and see what DD statement it comes from > > Here is what you should see when you do the ? next to the task name in the DA > OSTC panel > > > PREFIX=PRO* DEST=(ALL) OWNER= > NP DDNAME StepName ProcStep > JESMSGLG JES2 > JESJCL JES2 > JESYSMSG JES2 > SYSPRINT PROJCLT > JESMSGLG JES2 > JESYSMSG JES2 > > Here is what you could see if you do a ? next to an entry in the O panel > display > > PREFIX=* DEST=(ALL) > NP DDNAME StepName Output > REPORT IFOBAT I > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > On Behalf Of venkat kulkarni > > Sent: Sunday, May 07, 2017 4:16 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: job output into dataset > > > > Hello, > > > > > > > > Thanks for helping so far. I used below command > > > > > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > > > > > and output from this command is > > > > > > > > RESPONSE=TST4 > > > > $HASP890 JOB(IMS12RC3) > > > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > > > > > > > > > Job IMS12RC3 is, > > > > > > > > BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 > > > > Command ===> Scr > > > > * Top of Data > > > > // PROC RGN=0M,SOUT=A, > > > > //IMSID=IMS4,SYS2= > > > > //IEFPROC EXEC PGM=DFSMVRC0,REGION=, > > > > //PARM='DRC,' > > > > // > > > > //* > > > > //STEPLIB DD DSN=IMS4.V120.,DISP=SHR > > > > //PROCLIB DD DSN=IMS4.V120.,DISP=SHR > > > > //JCLOUT DD SYSOUT=(A,INTRDR) > > > > //JCLPDS DD DSN=IMS4.V120.,DISP=SHR > > > > //SYSUDUMP DD SYSOUT= > > > > //SYSABEND DD SYSOUT= > > > > //* > > > > // DBRC RECON DD CARDS *** > > > > //* > > > > //* USER SUPPLY THE DD CARDS > > > > //* REQUIRED FOR THE DBRC RECON DATA SET. > > > > //* IF NO DD STATEMENTS ARE SUPPLIED FOR RECON > > > > //* DATASETS, IMS ASSUMES THAT THE DATASETS > > > > //* HAVE BEEN DESCRIBED THROUGH THE DFSMDA MACRO. > > > > //* > > > > //RECON1 DD DSN=IMS4.V120.RECON1,DISP=SHR > > > > //RECON2 DD DSN=IMS4.V120.RECON2,DISP=SHR > > > > //RECON3 DD DSN=IMS4.V120.RECON3,DISP=SHR > > > > //* > > > > > > > > Can you please explain, what this command actually performed. As I > > mentioned, my plan was to cut messages from this job and put in one > > dataset using the command you suggested. Please correct , if I am missing > anything. > > > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
A DD Statement that uses INTRDR is a special DD. INTRDR is used to submit REPORTS or JCL into SPOOL. So I am not sure exactly what you are trying to do. If you go to DA OSTC and PREFIX your STC name Issue a ? next to the running task. Next look in the list for JCLOUT Is it there? And does it have any data in it? Next go to O Panel in SDSF Prefix your STC NAME. See if there is anything on the spool for it. If there is, issue a ? next to the Entry and see what DD statement it comes from Here is what you should see when you do the ? next to the task name in the DA OSTC panel PREFIX=PRO* DEST=(ALL) OWNER= NP DDNAME StepName ProcStep JESMSGLG JES2 JESJCL JES2 JESYSMSG JES2 SYSPRINT PROJCLT JESMSGLG JES2 JESYSMSG JES2 Here is what you could see if you do a ? next to an entry in the O panel display PREFIX=* DEST=(ALL) NP DDNAME StepName Output REPORT IFOBAT I Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Sunday, May 07, 2017 4:16 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Hello, > > > > Thanks for helping so far. I used below command > > > > $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT > > > > and output from this command is > > > > RESPONSE=TST4 > > $HASP890 JOB(IMS12RC3) > > $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, > > $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) > > > > > > > > Job IMS12RC3 is, > > > > BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 > > Command ===> Scr > > * Top of Data > > // PROC RGN=0M,SOUT=A, > > //IMSID=IMS4,SYS2= > > //IEFPROC EXEC PGM=DFSMVRC0,REGION=, > > //PARM='DRC,' > > // > > //* > > //STEPLIB DD DSN=IMS4.V120.,DISP=SHR > > //PROCLIB DD DSN=IMS4.V120.,DISP=SHR > > //JCLOUT DD SYSOUT=(A,INTRDR) > > //JCLPDS DD DSN=IMS4.V120.,DISP=SHR > > //SYSUDUMP DD SYSOUT= > > //SYSABEND DD SYSOUT= > > //* > > // DBRC RECON DD CARDS *** > > //* > > //* USER SUPPLY THE DD CARDS > > //* REQUIRED FOR THE DBRC RECON DATA SET. > > //* IF NO DD STATEMENTS ARE SUPPLIED FOR RECON > > //* DATASETS, IMS ASSUMES THAT THE DATASETS > > //* HAVE BEEN DESCRIBED THROUGH THE DFSMDA MACRO. > > //* > > //RECON1 DD DSN=IMS4.V120.RECON1,DISP=SHR > > //RECON2 DD DSN=IMS4.V120.RECON2,DISP=SHR > > //RECON3 DD DSN=IMS4.V120.RECON3,DISP=SHR > > //* > > > > Can you please explain, what this command actually performed. As I mentioned, > my plan was to cut messages from this job and put in one dataset using the > command you suggested. Please correct , if I am missing anything. > > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Hello, Thanks for helping so far. I used below command $T JQ(IMS12RC3),SPIN,DDNAME=JCLOUT and output from this command is RESPONSE=TST4 $HASP890 JOB(IMS12RC3) $HASP890 JOB(IMS12RC3) STATUS=(EXECUTING/TST4),CLASS=STC, $HASP890PRIORITY=15,SYSAFF=(TST4),HOLD=(NONE) Job IMS12RC3 is, BROWSESYS1.DEVL.PROCLIB(IMS12RC3) - 01.03Line 000 Command ===> Scr * Top of Data // PROC RGN=0M,SOUT=A, //IMSID=IMS4,SYS2= //IEFPROC EXEC PGM=DFSMVRC0,REGION=, //PARM='DRC,' // //* //STEPLIB DD DSN=IMS4.V120.,DISP=SHR //PROCLIB DD DSN=IMS4.V120.,DISP=SHR //JCLOUT DD SYSOUT=(A,INTRDR) //JCLPDS DD DSN=IMS4.V120.,DISP=SHR //SYSUDUMP DD SYSOUT= //SYSABEND DD SYSOUT= //* // DBRC RECON DD CARDS *** //* //* USER SUPPLY THE DD CARDS //* REQUIRED FOR THE DBRC RECON DATA SET. //* IF NO DD STATEMENTS ARE SUPPLIED FOR RECON //* DATASETS, IMS ASSUMES THAT THE DATASETS //* HAVE BEEN DESCRIBED THROUGH THE DFSMDA MACRO. //* //RECON1 DD DSN=IMS4.V120.RECON1,DISP=SHR //RECON2 DD DSN=IMS4.V120.RECON2,DISP=SHR //RECON3 DD DSN=IMS4.V120.RECON3,DISP=SHR //* Can you please explain, what this command actually performed. As I mentioned, my plan was to cut messages from this job and put in one dataset using the command you suggested. Please correct , if I am missing anything. On 04-May-2017 8:22 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > 1. as others have mentioned, the SPIN function can be used to unalloc and > re-alloc the sysout datasets. >Clists can issue command: $TS ,SPIN,DDNAME=ddname after writing out > to datasets. > > 2. my clist runs from a job which passes parameters as to which jobnames > are to be processed. Job can be automated to run at specified intervals. > > 3. the clist controls the allocation of the datasets - DISP=MOD can be > used to add on to existing datasets. >I usually like to allocate new datasets for each run with the region > name and a date and timestamp in the dataset name. > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Thursday, May 04, 2017 8:58 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Hello, > > Thanks for reply. As you mentioned that you have program which can be used > to extract data from various jobs. There are couple points, I would like to > make > > > > 1) Our requirement is to avoid space issue by cutting the records from > continuously running address spaces and put in dataset. > > 2) This process should run once in day and whatever address space we > specify in this process, should cut records from address space and keep > appending into datasets we specify. > > 3) For every address space, we will have separate Dataset for later to > be used or reviewed. > > > On 03-May-2017 6:07 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > > > SDSF has a REXX interface which is documented in the SDSF OPERATION and > > CUSTOMIZATION manual. > > > > I have a clist that extracts certain SYSOUT datasets from various jobs > on > > the output queue and writes them out to datasets. > > I can send you the routine if that would help. > > > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > > Behalf Of venkat kulkarni > > Sent: Wednesday, May 03, 2017 7:14 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: job output into dataset > > > > Thanks for all suggestion. Currently, we don’t have any third party > product > > for doing this task. So, my idea is to create rexx program, which keep > > checking ( once in day) particular address spaces like IMS, CICS, or any > > other which are continuously running in system and find that if the lines > > are exceed in the job with the limit we set in rexx program then this > > program should cut those messages from that address space and save it in > > one separate dataset > > > > we specified in rexx program and next time when this program find more > > message in the address space, it should again cut messages from address > > space and append in the dataset we used earlier. > > > > > > > > So, for difference address space( CICS, IMS, DB2 etc) , I would like to > use > > different dataset and keep appending messages on regular interval . > > > > > > > > As I am not expert in rexx,
Re: job output into dataset
1. as others have mentioned, the SPIN function can be used to unalloc and re-alloc the sysout datasets. Clists can issue command: $TS ,SPIN,DDNAME=ddname after writing out to datasets. 2. my clist runs from a job which passes parameters as to which jobnames are to be processed. Job can be automated to run at specified intervals. 3. the clist controls the allocation of the datasets - DISP=MOD can be used to add on to existing datasets. I usually like to allocate new datasets for each run with the region name and a date and timestamp in the dataset name. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni Sent: Thursday, May 04, 2017 8:58 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: job output into dataset Hello, Thanks for reply. As you mentioned that you have program which can be used to extract data from various jobs. There are couple points, I would like to make 1) Our requirement is to avoid space issue by cutting the records from continuously running address spaces and put in dataset. 2) This process should run once in day and whatever address space we specify in this process, should cut records from address space and keep appending into datasets we specify. 3) For every address space, we will have separate Dataset for later to be used or reviewed. On 03-May-2017 6:07 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > SDSF has a REXX interface which is documented in the SDSF OPERATION and > CUSTOMIZATION manual. > > I have a clist that extracts certain SYSOUT datasets from various jobs on > the output queue and writes them out to datasets. > I can send you the routine if that would help. > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Wednesday, May 03, 2017 7:14 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Thanks for all suggestion. Currently, we don’t have any third party product > for doing this task. So, my idea is to create rexx program, which keep > checking ( once in day) particular address spaces like IMS, CICS, or any > other which are continuously running in system and find that if the lines > are exceed in the job with the limit we set in rexx program then this > program should cut those messages from that address space and save it in > one separate dataset > > we specified in rexx program and next time when this program find more > message in the address space, it should again cut messages from address > space and append in the dataset we used earlier. > > > > So, for difference address space( CICS, IMS, DB2 etc) , I would like to use > different dataset and keep appending messages on regular interval . > > > > As I am not expert in rexx, can anybody help me doing this task. > > > > Regards > > On 03-May-2017 12:40 AM, "Lizette Koehler" <stars...@mindspring.com< > mailto:stars...@mindspring.com>> wrote: > > > So it might be possible that you are seeing data that JES2 has buffered. > > That is why you can see all of the data on a job in the ST panel even if > > all that is left in O or H panels is the output from an IEBGENER. > > > > Lizette > > > > -Original Message- > > >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com vandergr...@dow.com>> > > >Sent: May 2, 2017 2:26 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > >Subject: Re: job output into dataset > > > > > >It works pretty well except for one (minor) issue. When you do SE > against > > a DDNAME in SDSF it doesn't work as expected. It seem to display the > first > > of the outputs with the same DDNAME, independent of which one you select. > > At least, that's what it does here (z/OS 2.1). > > >Bart > > > > > >-Original Message- > > >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On > > Behalf Of Phil Sidler > > >Sent: Tuesday, May 02, 2017 4:16 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > >Subject: Re: job output into dataset > > > > > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler < > > stars...@mindspring.com<mailto:stars...@mindspring.com>> wrote: > > > > > >>I have this in place on several Products I support. The JES Messages > all > > go to our output repository. No issues. > > > > > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. > > Cool. > > > > > > > ---
Re: job output into dataset
On Thu, May 4, 2017 at 11:27 AM, Jesse 1 Robinsonwrote: > In some cases, sysout--or job messages--can become a space problem. I > mentioned recently a system that we failed to IPL for over a year. At some > point we hit a spool track group shortage because of the PFA started task. > It had accumulated so many lines that the entire system was at risk. > Resolution was simple: stop and restart the PFA task. We didn't need the > actual output, so we just purged it, but we could have written it to a > dataset as others have suggested. BTW we have since IPLed that poor > neglected system. Local page usage is 0%. > > In a distant galaxy long ago, we took to running VTAM SUB=MSTR on a small > system to circumvent the same sort of problem. VTAM messages then went to > syslog, which got archived every day. Otherwise we would have had to IPL > the system for no other reason than spool space. > I like that idea (SUB=MSTR) for long running ("never ending") started tasks. For those who complain that "but we need SYSOUT= on a DD because we want to archive it and you can use SYSOUT= with SUB=MSTR, I have a "solution". Instead of: //SOMEDD SYSOUT=* (OR OTHER "ARCHIVE" CLASS) use: //SOMEDD DD PATH='/dev/console', // PATHOPTS=(OWRONLY,OAPPEND), // RECFM=?,LRECL=? # CHANGE ? TO PROPER VALUES This will put the output in SYSLOG/OPERLOG. On a test on my system, that results in a couple of lines (example from SYS1.MACLIB(READ)) like: M 400 LIH1 17124 11:37:51.26 JOB44466 0094 BPXF024I (123456) * %END READ; 166 E 166 0094 5115 I suppress all BPXF024I messages from all consoles via CA-OPSMVS. > . > . > J.O.Skip Robinson > Southern California Edison Company > Electric Dragon Team Paddler > SHARE MVS Program Co-Manager > 323-715-0595 Mobile > 626-543-6132 Office ⇐=== NEW > robin...@sce.com > > -- Advertising is a valuable economic factor because it is the cheapest way of selling goods, particularly if the goods are worthless. -- Sinclair Lewis Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
In some cases, sysout--or job messages--can become a space problem. I mentioned recently a system that we failed to IPL for over a year. At some point we hit a spool track group shortage because of the PFA started task. It had accumulated so many lines that the entire system was at risk. Resolution was simple: stop and restart the PFA task. We didn't need the actual output, so we just purged it, but we could have written it to a dataset as others have suggested. BTW we have since IPLed that poor neglected system. Local page usage is 0%. In a distant galaxy long ago, we took to running VTAM SUB=MSTR on a small system to circumvent the same sort of problem. VTAM messages then went to syslog, which got archived every day. Otherwise we would have had to IPL the system for no other reason than spool space. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Lizette Koehler Sent: Thursday, May 04, 2017 6:25 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: job output into dataset Just to clarify. You will not run out of space on an active job. You can run into a S722 abend which is lines exceeded in JES which means the configuration in JES2 has a maximum limit for lines written to SPOOL. And the task exceeded that limit. And this can happen with a job running for weeks at a time even with SPIN being used. Space is related to dasd datasets. Spool is handled very differently from data going to a dataset. You indicated you wanted to have the output spin after so many lines are written. This can be done with the following command Note:If this is only for a //xxx DD SYSOUT= the following type of DD statement then this will work //DD5 DD SYSOUT=A,SPIN=(UNALLOC,5K) In this example, the system splits the data set into 5000 record segments and makes the SYSOUT data set available for printing every 5000 records. Whatever remains in the data set at the end of the STEP is available for printing at the end of step. If you want the entire JOB to spin - Start the STC up with the SPIN Parameter (Depending on your level of z/OS and JES2) SPIN= {NO } {UNALLOC } {(UNALLOC,'hh:mm') } {(UNALLOC,'+hh:mm') } {(UNALLOC,nnn [K|M])} {(UNALLOC,NOCMND) } {(UNALLOC,CMNDONLY) } (UNALLOC,nnn[K|M]) JES2 only. Indicates that the data set is to be spun when it has the specified number of lines, where nnn is lines. A minimum of 500 lines must be specified. Specify the optional characters K for thousands of lines and M for millions of lines. You still will need another process (JES2DISK for example) to have the data on JES2 moved to a dataset for later viewing. Hope this helps Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of venkat kulkarni > Sent: Thursday, May 04, 2017 5:58 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Hello, > > Thanks for reply. As you mentioned that you have program which can be > used to extract data from various jobs. There are couple points, I > would like to make > > > > 1) Our requirement is to avoid space issue by cutting the records from > continuously running address spaces and put in dataset. > > 2) This process should run once in day and whatever address space we > specify in this process, should cut records from address space and > keep appending into datasets we specify. > > 3) For every address space, we will have separate Dataset for later to > be used or reviewed. > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Just to clarify. You will not run out of space on an active job. You can run into a S722 abend which is lines exceeded in JES which means the configuration in JES2 has a maximum limit for lines written to SPOOL. And the task exceeded that limit. And this can happen with a job running for weeks at a time even with SPIN being used. Space is related to dasd datasets. Spool is handled very differently from data going to a dataset. You indicated you wanted to have the output spin after so many lines are written. This can be done with the following command Note:If this is only for a //xxx DD SYSOUT= the following type of DD statement then this will work //DD5 DD SYSOUT=A,SPIN=(UNALLOC,5K) In this example, the system splits the data set into 5000 record segments and makes the SYSOUT data set available for printing every 5000 records. Whatever remains in the data set at the end of the STEP is available for printing at the end of step. If you want the entire JOB to spin - Start the STC up with the SPIN Parameter (Depending on your level of z/OS and JES2) SPIN= {NO } {UNALLOC } {(UNALLOC,'hh:mm') } {(UNALLOC,'+hh:mm') } {(UNALLOC,nnn [K|M])} {(UNALLOC,NOCMND) } {(UNALLOC,CMNDONLY) } (UNALLOC,nnn[K|M]) JES2 only. Indicates that the data set is to be spun when it has the specified number of lines, where nnn is lines. A minimum of 500 lines must be specified. Specify the optional characters K for thousands of lines and M for millions of lines. You still will need another process (JES2DISK for example) to have the data on JES2 moved to a dataset for later viewing. Hope this helps Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Thursday, May 04, 2017 5:58 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Hello, > > Thanks for reply. As you mentioned that you have program which can be used to > extract data from various jobs. There are couple points, I would like to make > > > > 1) Our requirement is to avoid space issue by cutting the records from > continuously running address spaces and put in dataset. > > 2) This process should run once in day and whatever address space we > specify in this process, should cut records from address space and keep > appending into datasets we specify. > > 3) For every address space, we will have separate Dataset for later to > be used or reviewed. > > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: job output into dataset
I believe this should work (disclaimer - I haven't tried it) Assuming you are JES2 then setup the DD with SPIN=(UNALLOC,CMNDONLY) Then with automation set the time you want to spin and issue the command: $TS ,SPIN,DDNAME=ddname Then have automation initiate the process to extract the spool data Note this does not work with JES3 -- Lionel B. Dyck Mainframe Systems Programmer - TRA Enterprise Operations (Station 200) (005OP6.3.10) Information and Technology, IT Operations and Services -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni Sent: Thursday, May 04, 2017 7:58 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: job output into dataset Hello, Thanks for reply. As you mentioned that you have program which can be used to extract data from various jobs. There are couple points, I would like to make 1) Our requirement is to avoid space issue by cutting the records from continuously running address spaces and put in dataset. 2) This process should run once in day and whatever address space we specify in this process, should cut records from address space and keep appending into datasets we specify. 3) For every address space, we will have separate Dataset for later to be used or reviewed. On 03-May-2017 6:07 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > SDSF has a REXX interface which is documented in the SDSF OPERATION > and CUSTOMIZATION manual. > > I have a clist that extracts certain SYSOUT datasets from various > jobs on the output queue and writes them out to datasets. > I can send you the routine if that would help. > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of venkat kulkarni > Sent: Wednesday, May 03, 2017 7:14 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Thanks for all suggestion. Currently, we don’t have any third party > product for doing this task. So, my idea is to create rexx program, > which keep checking ( once in day) particular address spaces like IMS, > CICS, or any other which are continuously running in system and find > that if the lines are exceed in the job with the limit we set in rexx > program then this program should cut those messages from that address > space and save it in one separate dataset > > we specified in rexx program and next time when this program find more > message in the address space, it should again cut messages from > address space and append in the dataset we used earlier. > > > > So, for difference address space( CICS, IMS, DB2 etc) , I would like > to use different dataset and keep appending messages on regular interval . > > > > As I am not expert in rexx, can anybody help me doing this task. > > > > Regards > > On 03-May-2017 12:40 AM, "Lizette Koehler" <stars...@mindspring.com< > mailto:stars...@mindspring.com>> wrote: > > > So it might be possible that you are seeing data that JES2 has buffered. > > That is why you can see all of the data on a job in the ST panel > > even if all that is left in O or H panels is the output from an IEBGENER. > > > > Lizette > > > > -Original Message- > > >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com vandergr...@dow.com>> > > >Sent: May 2, 2017 2:26 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > >Subject: Re: job output into dataset > > > > > >It works pretty well except for one (minor) issue. When you do SE > against > > a DDNAME in SDSF it doesn't work as expected. It seem to display the > first > > of the outputs with the same DDNAME, independent of which one you select. > > At least, that's what it does here (z/OS 2.1). > > >Bart > > > > > >-Original Message- > > >From: IBM Mainframe Discussion List > > >[mailto:IBM-MAIN@LISTSERV.UA.EDU] > On > > Behalf Of Phil Sidler > > >Sent: Tuesday, May 02, 2017 4:16 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > >Subject: Re: job output into dataset > > > > > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler < > > stars...@mindspring.com<mailto:stars...@mindspring.com>> wrote: > > > > > >>I have this in place on several Products I support. The JES > > >>Messages > all > > go to our output repository. No issues. > > > > > >Oh, I see it now, $HASP138 and a new DD with the same na
Re: job output into dataset
Hello, Thanks for reply. As you mentioned that you have program which can be used to extract data from various jobs. There are couple points, I would like to make 1) Our requirement is to avoid space issue by cutting the records from continuously running address spaces and put in dataset. 2) This process should run once in day and whatever address space we specify in this process, should cut records from address space and keep appending into datasets we specify. 3) For every address space, we will have separate Dataset for later to be used or reviewed. On 03-May-2017 6:07 PM, "Barkow, Eileen" <ebar...@doitt.nyc.gov> wrote: > SDSF has a REXX interface which is documented in the SDSF OPERATION and > CUSTOMIZATION manual. > > I have a clist that extracts certain SYSOUT datasets from various jobs on > the output queue and writes them out to datasets. > I can send you the routine if that would help. > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Wednesday, May 03, 2017 7:14 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Thanks for all suggestion. Currently, we don’t have any third party product > for doing this task. So, my idea is to create rexx program, which keep > checking ( once in day) particular address spaces like IMS, CICS, or any > other which are continuously running in system and find that if the lines > are exceed in the job with the limit we set in rexx program then this > program should cut those messages from that address space and save it in > one separate dataset > > we specified in rexx program and next time when this program find more > message in the address space, it should again cut messages from address > space and append in the dataset we used earlier. > > > > So, for difference address space( CICS, IMS, DB2 etc) , I would like to use > different dataset and keep appending messages on regular interval . > > > > As I am not expert in rexx, can anybody help me doing this task. > > > > Regards > > On 03-May-2017 12:40 AM, "Lizette Koehler" <stars...@mindspring.com< > mailto:stars...@mindspring.com>> wrote: > > > So it might be possible that you are seeing data that JES2 has buffered. > > That is why you can see all of the data on a job in the ST panel even if > > all that is left in O or H panels is the output from an IEBGENER. > > > > Lizette > > > > -Original Message- > > >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com vandergr...@dow.com>> > > >Sent: May 2, 2017 2:26 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > >Subject: Re: job output into dataset > > > > > >It works pretty well except for one (minor) issue. When you do SE > against > > a DDNAME in SDSF it doesn't work as expected. It seem to display the > first > > of the outputs with the same DDNAME, independent of which one you select. > > At least, that's what it does here (z/OS 2.1). > > >Bart > > > > > >-Original Message- > > >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On > > Behalf Of Phil Sidler > > >Sent: Tuesday, May 02, 2017 4:16 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > > >Subject: Re: job output into dataset > > > > > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler < > > stars...@mindspring.com<mailto:stars...@mindspring.com>> wrote: > > > > > >>I have this in place on several Products I support. The JES Messages > all > > go to our output repository. No issues. > > > > > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. > > Cool. > > > > > > > -- > > For IBM-MAIN subscribe / signoff / archive access instructions, > > send email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> > with the message: INFO IBM-MAIN > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> > with the message: INFO IBM-MAIN > > > > > > This e-mail, including any attachments, may be confidential, privileged or > otherwise legally protected. It is intended only for the addressee. If you > received this e-mail in error or from someone who
Re: job output into dataset
SDSF has a REXX interface which is documented in the SDSF OPERATION and CUSTOMIZATION manual. I have a clist that extracts certain SYSOUT datasets from various jobs on the output queue and writes them out to datasets. I can send you the routine if that would help. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni Sent: Wednesday, May 03, 2017 7:14 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: job output into dataset Thanks for all suggestion. Currently, we don’t have any third party product for doing this task. So, my idea is to create rexx program, which keep checking ( once in day) particular address spaces like IMS, CICS, or any other which are continuously running in system and find that if the lines are exceed in the job with the limit we set in rexx program then this program should cut those messages from that address space and save it in one separate dataset we specified in rexx program and next time when this program find more message in the address space, it should again cut messages from address space and append in the dataset we used earlier. So, for difference address space( CICS, IMS, DB2 etc) , I would like to use different dataset and keep appending messages on regular interval . As I am not expert in rexx, can anybody help me doing this task. Regards On 03-May-2017 12:40 AM, "Lizette Koehler" <stars...@mindspring.com<mailto:stars...@mindspring.com>> wrote: > So it might be possible that you are seeing data that JES2 has buffered. > That is why you can see all of the data on a job in the ST panel even if > all that is left in O or H panels is the output from an IEBGENER. > > Lizette > > -Original Message- > >From: "van der Grijn, Bart (B)" > ><bvandergr...@dow.com<mailto:bvandergr...@dow.com>> > >Sent: May 2, 2017 2:26 PM > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > >Subject: Re: job output into dataset > > > >It works pretty well except for one (minor) issue. When you do SE against > a DDNAME in SDSF it doesn't work as expected. It seem to display the first > of the outputs with the same DDNAME, independent of which one you select. > At least, that's what it does here (z/OS 2.1). > >Bart > > > >-Original Message- > >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Phil Sidler > >Sent: Tuesday, May 02, 2017 4:16 PM > >To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> > >Subject: Re: job output into dataset > > > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler < > stars...@mindspring.com<mailto:stars...@mindspring.com>> wrote: > > > >>I have this in place on several Products I support. The JES Messages all > go to our output repository. No issues. > > > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. > Cool. > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> with > the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu<mailto:lists...@listserv.ua.edu> with the message: INFO IBM-MAIN This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
First, You cannot "cut" messages from the task. You can only spin it. I am sure there are consultants you can hire to help you write this code. This is a friendly list, but you are asking for some effort to be done. You can have JES spin the job at the number of lines you want, it does not have to be on TIME based parameter. Then setup an EXTERNAL Writer to extract the data. Spin each task at a different time and then run the writer. That way you should be able to keep things separated. After the External writer runs, then mod on to a dataset of your choice. If you are just spinning specific DD statements in the TASK, you may have an easier process. Or you could create a GDG and at the end of the day, use IEBGENER to copy all the GDGs to one dataset. The best way to get better in coding REXX is to just code rexx. The more you do the better you get. There are already some REXX code on cbttape.org that could assist you . Or there might be other tools already created you can use for your process. Do an internet search for JES2DISK. This is a good piece of code that will write from JES2 to a file or a Unix File using SDSF REXX. This is the process I use to pull data from JES Spool and write to a dataset. It can be adapted to use filters like DD names or other JES2 Elements of a job. Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Wednesday, May 03, 2017 4:14 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Thanks for all suggestion. Currently, we don’t have any third party product > for doing this task. So, my idea is to create rexx program, which keep > checking ( once in day) particular address spaces like IMS, CICS, or any other > which are continuously running in system and find that if the lines are exceed > in the job with the limit we set in rexx program then this program should cut > those messages from that address space and save it in one separate dataset > > we specified in rexx program and next time when this program find more message > in the address space, it should again cut messages from address space and > append in the dataset we used earlier. > > > > So, for difference address space( CICS, IMS, DB2 etc) , I would like to use > different dataset and keep appending messages on regular interval . > > > > As I am not expert in rexx, can anybody help me doing this task. > > > > Regards > > On 03-May-2017 12:40 AM, "Lizette Koehler" <stars...@mindspring.com> wrote: > > > So it might be possible that you are seeing data that JES2 has buffered. > > That is why you can see all of the data on a job in the ST panel even > > if all that is left in O or H panels is the output from an IEBGENER. > > > > Lizette > > > > -----Original Message- > > >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com> > > >Sent: May 2, 2017 2:26 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU > > >Subject: Re: job output into dataset > > > > > >It works pretty well except for one (minor) issue. When you do SE > > >against > > a DDNAME in SDSF it doesn't work as expected. It seem to display the > > first of the outputs with the same DDNAME, independent of which one you > select. > > At least, that's what it does here (z/OS 2.1). > > >Bart > > > > > >-Original Message- > > >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > >On > > Behalf Of Phil Sidler > > >Sent: Tuesday, May 02, 2017 4:16 PM > > >To: IBM-MAIN@LISTSERV.UA.EDU > > >Subject: Re: job output into dataset > > > > > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler < > > stars...@mindspring.com> wrote: > > > > > >>I have this in place on several Products I support. The JES Messages > > >>all > > go to our output repository. No issues. > > > > > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. > > Cool. > > > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
It just seems to show the first output with the same name, not the output I selected. If I select it with an 'S' it works fine, but sometimes (HSM is an example) I want to filter the long list of messages and try to use SE (Display in ISPF Edit). Same issue with SB (Display in ISPF Browse) I would expect to see the same data independent of what flavor of select I use. Am I the only one seeing this behaviour? More of a nit, but probably time to open a PMR. Bart -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Lizette Koehler Sent: Tuesday, May 02, 2017 5:40 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: job output into dataset So it might be possible that you are seeing data that JES2 has buffered. That is why you can see all of the data on a job in the ST panel even if all that is left in O or H panels is the output from an IEBGENER. Lizette -Original Message- >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com> >Sent: May 2, 2017 2:26 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: job output into dataset > >It works pretty well except for one (minor) issue. When you do SE against a >DDNAME in SDSF it doesn't work as expected. It seem to display the first of >the outputs with the same DDNAME, independent of which one you select. At >least, that's what it does here (z/OS 2.1). >Bart > >-Original Message- >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On >Behalf Of Phil Sidler >Sent: Tuesday, May 02, 2017 4:16 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: job output into dataset > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler <stars...@mindspring.com> >wrote: > >>I have this in place on several Products I support. The JES Messages all go >>to our output repository. No issues. > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. Cool. > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
venkat kulkarni wrote: >... So, my idea is to create rexx program, which keep checking ( once in day) >particular address spaces like IMS, CICS, or any other which are continuously >running in system and find that if the lines are exceed in the job with the >limit we set in rexx program then this program should cut those messages from >that address space and save it in one separate dataset >we specified in rexx program and next time when this program find more message >in the address space, it should again cut messages from address space and >append in the dataset we used earlier. Somehow you need to find how you are counting the lines already written out and only write those lines not written out. Something like using REXX + SDSF to get your lines (all of them), place them somewhere in a dataset and then using a counter to call IDCAMS from your program to do a REPRO like this one: REPRO INFILE(IN) OUTFILE(AF) SKIP() COUNT() Of course you can, from REXX, play with SDSF Print functions to do your printing to another dataset (new, old, mod), DD or yet another SYSOUT. Or using other fancy solutions... All the while your STCs output just grow and grow until JES2 says 'stop' using whatever limits you placed. I have done similar stunts [1] , but not copying certain lines from a live running STC to a dataset. Groete / Greetings Elardus Engelbrecht [1] - In the prehistoric days, I have written a REXX program which copies SYSOUT from a completed batch job to three different datasets, each having x thousand pages by counting how many '1' there were on ASA column. All to split up printing on 3 different printers to speed up printing and chopping down trees faster... -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Thanks for all suggestion. Currently, we don’t have any third party product for doing this task. So, my idea is to create rexx program, which keep checking ( once in day) particular address spaces like IMS, CICS, or any other which are continuously running in system and find that if the lines are exceed in the job with the limit we set in rexx program then this program should cut those messages from that address space and save it in one separate dataset we specified in rexx program and next time when this program find more message in the address space, it should again cut messages from address space and append in the dataset we used earlier. So, for difference address space( CICS, IMS, DB2 etc) , I would like to use different dataset and keep appending messages on regular interval . As I am not expert in rexx, can anybody help me doing this task. Regards On 03-May-2017 12:40 AM, "Lizette Koehler" <stars...@mindspring.com> wrote: > So it might be possible that you are seeing data that JES2 has buffered. > That is why you can see all of the data on a job in the ST panel even if > all that is left in O or H panels is the output from an IEBGENER. > > Lizette > > -Original Message- > >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com> > >Sent: May 2, 2017 2:26 PM > >To: IBM-MAIN@LISTSERV.UA.EDU > >Subject: Re: job output into dataset > > > >It works pretty well except for one (minor) issue. When you do SE against > a DDNAME in SDSF it doesn't work as expected. It seem to display the first > of the outputs with the same DDNAME, independent of which one you select. > At least, that's what it does here (z/OS 2.1). > >Bart > > > >-Original Message- > >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Phil Sidler > >Sent: Tuesday, May 02, 2017 4:16 PM > >To: IBM-MAIN@LISTSERV.UA.EDU > >Subject: Re: job output into dataset > > > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler < > stars...@mindspring.com> wrote: > > > >>I have this in place on several Products I support. The JES Messages all > go to our output repository. No issues. > > > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. > Cool. > > > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
So it might be possible that you are seeing data that JES2 has buffered. That is why you can see all of the data on a job in the ST panel even if all that is left in O or H panels is the output from an IEBGENER. Lizette -Original Message- >From: "van der Grijn, Bart (B)" <bvandergr...@dow.com> >Sent: May 2, 2017 2:26 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: job output into dataset > >It works pretty well except for one (minor) issue. When you do SE against a >DDNAME in SDSF it doesn't work as expected. It seem to display the first of >the outputs with the same DDNAME, independent of which one you select. At >least, that's what it does here (z/OS 2.1). >Bart > >-Original Message- >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On >Behalf Of Phil Sidler >Sent: Tuesday, May 02, 2017 4:16 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: job output into dataset > >On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler <stars...@mindspring.com> >wrote: > >>I have this in place on several Products I support. The JES Messages all go >>to our output repository. No issues. > >Oh, I see it now, $HASP138 and a new DD with the same name shows up. Cool. > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
It works pretty well except for one (minor) issue. When you do SE against a DDNAME in SDSF it doesn't work as expected. It seem to display the first of the outputs with the same DDNAME, independent of which one you select. At least, that's what it does here (z/OS 2.1). Bart -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Phil Sidler Sent: Tuesday, May 02, 2017 4:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: job output into dataset On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehler <stars...@mindspring.com> wrote: >I have this in place on several Products I support. The JES Messages all go to >our output repository. No issues. Oh, I see it now, $HASP138 and a new DD with the same name shows up. Cool. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 2 May 2017 12:54:35 -0700, Lizette Koehlerwrote: >I have this in place on several Products I support. The JES Messages all go to >our output repository. No issues. Oh, I see it now, $HASP138 and a new DD with the same name shows up. Cool. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
I have this in place on several Products I support. The JES Messages all go to our output repository. No issues. Lizette -Original Message- >From: Phil Sidler <phil_sid...@hotmail.com> >Sent: May 2, 2017 12:50 PM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: job output into dataset > >On Tue, 2 May 2017 05:33:18 -0500, Roger Lowe <roger_l...@bigpond.com> wrote: > >>As of zOS 1.13 and later, JES2 provides the ability to 'spin' any SPIN spool >>datasets based on command, size or time (interval or absolute). >> >>SPIN=(UNALLOC,value) where value is one of: >>• ‘hh:mm’ – Spin data set at specified time >>• ‘+hh:mm’ – Spin data set at interval specified >>• nnn [K|M] – Spin every nnn records > >There is a SHARE presentation that implies that this works to spin off SYSOUT >even if the DD is not closed/deallocated. > >• Can be used to make the Transient Data Message logs >available for processing without the need to shutdown >and/or close/deallocate the transient data queue datasets > >(SHARE in San Francisco 2013, #12433) > >Does this work? Really? How would I see this via SDSF if it was working? > >Cheers > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, 2 May 2017 05:33:18 -0500, Roger Lowewrote: >As of zOS 1.13 and later, JES2 provides the ability to 'spin' any SPIN spool >datasets based on command, size or time (interval or absolute). > >SPIN=(UNALLOC,value) where value is one of: >• ‘hh:mm’ – Spin data set at specified time >• ‘+hh:mm’ – Spin data set at interval specified >• nnn [K|M] – Spin every nnn records There is a SHARE presentation that implies that this works to spin off SYSOUT even if the DD is not closed/deallocated. • Can be used to make the Transient Data Message logs available for processing without the need to shutdown and/or close/deallocate the transient data queue datasets (SHARE in San Francisco 2013, #12433) Does this work? Really? How would I see this via SDSF if it was working? Cheers -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
When you SPIN a job it goes to JES Spool. After that you need a process to pick it up. As others have stated: Homegrown REXX using ISFEXEC (SDSF REXX) to write to dataset External Writer to pick up the spooled output $AVERS VIEW Direct SAR Others. Lizette -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
You can start a STARTED TASK with SPIN= parm, Or you can place the SPIN on the SYSOUT statements in the JCL. I prefer at the top, then everything spins. Note: JES2 does not decrement the field in the JCT for the line count. It is possible for an STC to abend with S722 abend due to lines exceeded messages. But S stcname,SPIN=(what you want goes here) should work Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of venkat kulkarni > Sent: Tuesday, May 02, 2017 7:38 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: job output into dataset > > Thanks for sharing.. actually we have is , cics etc running from last 6 month > or 1 yrs without recycle and I saw 1 million record in that address spaces and > I would like to cut these record from these address space and keep appending > in dataset , so that I dont have to recycle ims, cics etc to reduce these > record and manage them in proper manner. > > On 02-May-2017 5:17 PM, "Edward Gould" <edgould1...@comcast.net> wrote: > > > > On May 2, 2017, at 8:02 AM, John McKown > > > <john.archie.mck...@gmail.com> > > wrote: > > > > > > On Tue, May 2, 2017 at 2:35 AM, venkat kulkarni < > > venkatkulkarn...@gmail.com> > > > wrote: > > > > > >> Hello, > > >> > > >> We have some address spaces running from long time and produce > > >> messages regularly. Now, my requirement is to cut those messages on > > >> regular basis and keep appending into seperate dataset. > > >> > > >> This way, we will save spool size and no need to recycle the > > >> address > > space > > >> to remove old message. > > >> > > >> Can anybody help me doing this task. > > >> > > >> Regards > > >> Venkat > > >> > > >> > > > As the others have said, the only facility in JES is to use the > > > SPIN parameter. JES does not have a way to write directly into a > > > sequential > > data > > > set. Your response to this is correct in that this leaves the data > > > in the SPOOL, which is not what you want. So what you need is > > > "something" which can take the data which has been put into the > > > SPOOL via the SPIN and copy it into a data set. There are products which > can do this, such as CA-JMR. > > > However most of these products don't put the data into a "plain" > > sequential > > > data set. One that we used to use is ViewDirect from ASG (was > > > Infopac > > from > > > Mobius). What we use today is "Report to Web". This consists of > > > software > > on > > > a PC (Windows) which acts as a "remote printer" using LPR. It slices > > > and dices the data coming in to it into reports which it store on > > > the SAN. It comes with a web server to read the report. It is rather > > > good, IMO, but > > may > > > not be what you want. > > > > > > You might want to "mess around" with my JES2DISK program. It is > > > written > > in > > > REXX and uses the SDSF REXX interface to read in data from the > > > SPOOL. It can store the jobs' outputs into either sequential data > > > sets or UNIX > > files > > > (in a specified directory). You can look at / download the code here: > > > https://gist.github.com/JohnArchieMckown/b27747d0c4750a258997 > > > You might also look on http://cbttape.org/cbtdowns.htm at file 688, > > 575(?) > > > > > > If you're into "do it yourself", you might want to look at a number > > > of things. > > > If you have zOSMF running, then look at its REST API: > > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2. > > 0/com.ibm.zos.v2r2.izua700/IZUHPINFO_API_RESTJOBS.htm > > > > > > Or look at the JES SPOOL data set browse: > > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2. > > 0/com.ibm.zos.v2r2.hasc300/spbrowse.htm > > > > > > And, a blast from the past (that I did like 20 years ago), is to use > > > an external writer which will open/close/dynamically > > > allocate a data set. > > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2. > > 0/com.ibm.zos.v2r2.hasa300/xwrite.htm > > > > > > > Another option is to have a specific sysout class (not set in any > > printer and that you have msgclass=x where x is the designated shout > > class) and have an external writer with a disp=mod for a dataset you > > want to put it to. Then say once a day (or what ever you choose) have > > a job runs that deletes it and reallocates it. > > Its clumsy but it should work. > > > > Ed -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Thanks for sharing.. actually we have is , cics etc running from last 6 month or 1 yrs without recycle and I saw 1 million record in that address spaces and I would like to cut these record from these address space and keep appending in dataset , so that I dont have to recycle ims, cics etc to reduce these record and manage them in proper manner. On 02-May-2017 5:17 PM, "Edward Gould"wrote: > > On May 2, 2017, at 8:02 AM, John McKown > wrote: > > > > On Tue, May 2, 2017 at 2:35 AM, venkat kulkarni < > venkatkulkarn...@gmail.com> > > wrote: > > > >> Hello, > >> > >> We have some address spaces running from long time and produce messages > >> regularly. Now, my requirement is to cut those messages on regular basis > >> and keep appending into seperate dataset. > >> > >> This way, we will save spool size and no need to recycle the address > space > >> to remove old message. > >> > >> Can anybody help me doing this task. > >> > >> Regards > >> Venkat > >> > >> > > As the others have said, the only facility in JES is to use the SPIN > > parameter. JES does not have a way to write directly into a sequential > data > > set. Your response to this is correct in that this leaves the data in the > > SPOOL, which is not what you want. So what you need is "something" which > > can take the data which has been put into the SPOOL via the SPIN and copy > > it into a data set. There are products which can do this, such as CA-JMR. > > However most of these products don't put the data into a "plain" > sequential > > data set. One that we used to use is ViewDirect from ASG (was Infopac > from > > Mobius). What we use today is "Report to Web". This consists of software > on > > a PC (Windows) which acts as a "remote printer" using LPR. It slices and > > dices the data coming in to it into reports which it store on the SAN. It > > comes with a web server to read the report. It is rather good, IMO, but > may > > not be what you want. > > > > You might want to "mess around" with my JES2DISK program. It is written > in > > REXX and uses the SDSF REXX interface to read in data from the SPOOL. It > > can store the jobs' outputs into either sequential data sets or UNIX > files > > (in a specified directory). You can look at / download the code here: > > https://gist.github.com/JohnArchieMckown/b27747d0c4750a258997 > > You might also look on http://cbttape.org/cbtdowns.htm at file 688, > 575(?) > > > > If you're into "do it yourself", you might want to look at a number of > > things. > > If you have zOSMF running, then look at its REST API: > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2. > 0/com.ibm.zos.v2r2.izua700/IZUHPINFO_API_RESTJOBS.htm > > > > Or look at the JES SPOOL data set browse: > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2. > 0/com.ibm.zos.v2r2.hasc300/spbrowse.htm > > > > And, a blast from the past (that I did like 20 years ago), is to use an > > external writer which will open/close/dynamically allocate a data > > set. > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2. > 0/com.ibm.zos.v2r2.hasa300/xwrite.htm > > > > Another option is to have a specific sysout class (not set in any printer > and that you have msgclass=x where x is the designated shout class) and > have an external writer with a disp=mod for a dataset you want to put it > to. Then say once a day (or what ever you choose) have a job runs that > deletes it and reallocates it. > Its clumsy but it should work. > > Ed > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
> On May 2, 2017, at 8:02 AM, John McKownwrote: > > On Tue, May 2, 2017 at 2:35 AM, venkat kulkarni > wrote: > >> Hello, >> >> We have some address spaces running from long time and produce messages >> regularly. Now, my requirement is to cut those messages on regular basis >> and keep appending into seperate dataset. >> >> This way, we will save spool size and no need to recycle the address space >> to remove old message. >> >> Can anybody help me doing this task. >> >> Regards >> Venkat >> >> > As the others have said, the only facility in JES is to use the SPIN > parameter. JES does not have a way to write directly into a sequential data > set. Your response to this is correct in that this leaves the data in the > SPOOL, which is not what you want. So what you need is "something" which > can take the data which has been put into the SPOOL via the SPIN and copy > it into a data set. There are products which can do this, such as CA-JMR. > However most of these products don't put the data into a "plain" sequential > data set. One that we used to use is ViewDirect from ASG (was Infopac from > Mobius). What we use today is "Report to Web". This consists of software on > a PC (Windows) which acts as a "remote printer" using LPR. It slices and > dices the data coming in to it into reports which it store on the SAN. It > comes with a web server to read the report. It is rather good, IMO, but may > not be what you want. > > You might want to "mess around" with my JES2DISK program. It is written in > REXX and uses the SDSF REXX interface to read in data from the SPOOL. It > can store the jobs' outputs into either sequential data sets or UNIX files > (in a specified directory). You can look at / download the code here: > https://gist.github.com/JohnArchieMckown/b27747d0c4750a258997 > You might also look on http://cbttape.org/cbtdowns.htm at file 688, 575(?) > > If you're into "do it yourself", you might want to look at a number of > things. > If you have zOSMF running, then look at its REST API: > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.izua700/IZUHPINFO_API_RESTJOBS.htm > > Or look at the JES SPOOL data set browse: > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasc300/spbrowse.htm > > And, a blast from the past (that I did like 20 years ago), is to use an > external writer which will open/close/dynamically allocate a data > set. > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasa300/xwrite.htm > Another option is to have a specific sysout class (not set in any printer and that you have msgclass=x where x is the designated shout class) and have an external writer with a disp=mod for a dataset you want to put it to. Then say once a day (or what ever you choose) have a job runs that deletes it and reallocates it. Its clumsy but it should work. Ed -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
On Tue, May 2, 2017 at 2:35 AM, venkat kulkarniwrote: > Hello, > > We have some address spaces running from long time and produce messages > regularly. Now, my requirement is to cut those messages on regular basis > and keep appending into seperate dataset. > > This way, we will save spool size and no need to recycle the address space > to remove old message. > > Can anybody help me doing this task. > > Regards > Venkat > > As the others have said, the only facility in JES is to use the SPIN parameter. JES does not have a way to write directly into a sequential data set. Your response to this is correct in that this leaves the data in the SPOOL, which is not what you want. So what you need is "something" which can take the data which has been put into the SPOOL via the SPIN and copy it into a data set. There are products which can do this, such as CA-JMR. However most of these products don't put the data into a "plain" sequential data set. One that we used to use is ViewDirect from ASG (was Infopac from Mobius). What we use today is "Report to Web". This consists of software on a PC (Windows) which acts as a "remote printer" using LPR. It slices and dices the data coming in to it into reports which it store on the SAN. It comes with a web server to read the report. It is rather good, IMO, but may not be what you want. You might want to "mess around" with my JES2DISK program. It is written in REXX and uses the SDSF REXX interface to read in data from the SPOOL. It can store the jobs' outputs into either sequential data sets or UNIX files (in a specified directory). You can look at / download the code here: https://gist.github.com/JohnArchieMckown/b27747d0c4750a258997 You might also look on http://cbttape.org/cbtdowns.htm at file 688, 575(?) If you're into "do it yourself", you might want to look at a number of things. If you have zOSMF running, then look at its REST API: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.izua700/IZUHPINFO_API_RESTJOBS.htm Or look at the JES SPOOL data set browse: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasc300/spbrowse.htm And, a blast from the past (that I did like 20 years ago), is to use an external writer which will open/close/dynamically allocate a data set. https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.hasa300/xwrite.htm -- Advertising is a valuable economic factor because it is the cheapest way of selling goods, particularly if the goods are worthless. -- Sinclair Lewis Maranatha! <>< John McKown -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
As of zOS 1.13 and later, JES2 provides the ability to 'spin' any SPIN spool datasets based on command, size or time (interval or absolute). SPIN=(UNALLOC,value) where value is one of: • ‘hh:mm’ – Spin data set at specified time • ‘+hh:mm’ – Spin data set at interval specified • nnn [K|M] – Spin every nnn records • NOCMD – Cannot spin data set by command • CMDONLY – Spin only when a command is issued Have a look in the JCL Reference for further details. Roger On Tue, 2 May 2017 12:13:41 +0300, venkat kulkarni <venkatkulkarn...@gmail.com> wrote: >Hello Andy, > >Thanks . but after spin, where these messages will go and reside to later >review. I want to remove messages from job in timely manner and put it in >some dataset to be used further. > >Please suggest. > >On 02-May-2017 10:42 AM, "Styles, Andy (ITS zPlatform Services)" < >00d68f765d25-dmarc-requ...@listserv.ua.edu> wrote: > >Classification: Public >If it's just the JESLOG you're interested in, take a look at the JESLOG >parameter of the JOB card: > >Syntax: > >JESLOG= {SPIN} > {NOSPIN} > {SUPPRESS} > >Subparameter Definition: > >SPIN >JESLOG is spin-eligible. There is an optional second operand. > >JESLOG=(SPIN,hh:mm) >JESLOG will be spun at time hh:mm each 24 hour period. "hh" is >hours and has a range of 00 through 23. "mm" is minutes and has >a range of 00 through 59. > >JESLOG will be spun when the next message is written to the >data set after the specified time. > >JESLOG=(SPIN,+hh:mm) >JESLOG will be spun every hh:mm time interval. "hh" is hours >and has a range of 00 through 23. "mm" is minutes and has a >range of 00 through 59. The minimum interval which can be >specified is 10 minutes. Note that "hh" must be specified even >if zero. For example, JESLOG=(SPIN,0:20) > >JESLOG will be spun when the next message is written to the >data set after the specified time. > >JESLOG=(SPIN,nnn) >JESLOG=(SPIN,nnnK) >JESLOG=(SPIN,nnnM) >JESLOG will be spun when either data set has "n" lines. A >minimum of 500 lines must be specified. "K" is thousands and >"M" is millions. > > >Andy Styles >z/Series Systems Programmer > >-Original Message- >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On >Behalf Of venkat kulkarni >Sent: 02 May 2017 08:35 >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: job output into dataset > >-- This email has reached the Bank via an external source -- > > >Hello, > >We have some address spaces running from long time and produce messages >regularly. Now, my requirement is to cut those messages on regular basis >and keep appending into seperate dataset. > >This way, we will save spool size and no need to recycle the address space >to remove old message. > >Can anybody help me doing this task. > >Regards >Venkat > >-- >For IBM-MAIN subscribe / signoff / archive access instructions, send email >to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > >Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. >Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank >plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in >England and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. >Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. >SC327000. Telephone: 03457 801 801. Cheltenham & Gloucester plc. Registered >Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales >2299428. Telephone: 0345 603 1637 > >Lloyds Bank plc, Bank of Scotland plc are authorised by the Prudential >Regulation Authority and regulated by the Financial Conduct Authority and >Prudential Regulation Authority. > >Cheltenham & Gloucester plc is authorised and regulated by the Financial >Conduct Authority. > >Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester >Savings is a division of Lloyds Bank plc. > >HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in >Scotland no. SC218813. > >This e-mail (including any attachments) is private and confidential and may >contain privileged material. If you have received this e-mail in error, >please notify the sender and delete it (including any attachments) >immediately. You must not copy, distribute, disclose or use any of the >information in it or any atta
Re: job output into dataset
Hello Andy, Thanks . but after spin, where these messages will go and reside to later review. I want to remove messages from job in timely manner and put it in some dataset to be used further. Please suggest. On 02-May-2017 10:42 AM, "Styles, Andy (ITS zPlatform Services)" < 00d68f765d25-dmarc-requ...@listserv.ua.edu> wrote: Classification: Public If it's just the JESLOG you're interested in, take a look at the JESLOG parameter of the JOB card: Syntax: JESLOG= {SPIN} {NOSPIN} {SUPPRESS} Subparameter Definition: SPIN JESLOG is spin-eligible. There is an optional second operand. JESLOG=(SPIN,hh:mm) JESLOG will be spun at time hh:mm each 24 hour period. "hh" is hours and has a range of 00 through 23. "mm" is minutes and has a range of 00 through 59. JESLOG will be spun when the next message is written to the data set after the specified time. JESLOG=(SPIN,+hh:mm) JESLOG will be spun every hh:mm time interval. "hh" is hours and has a range of 00 through 23. "mm" is minutes and has a range of 00 through 59. The minimum interval which can be specified is 10 minutes. Note that "hh" must be specified even if zero. For example, JESLOG=(SPIN,0:20) JESLOG will be spun when the next message is written to the data set after the specified time. JESLOG=(SPIN,nnn) JESLOG=(SPIN,nnnK) JESLOG=(SPIN,nnnM) JESLOG will be spun when either data set has "n" lines. A minimum of 500 lines must be specified. "K" is thousands and "M" is millions. Andy Styles z/Series Systems Programmer -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni Sent: 02 May 2017 08:35 To: IBM-MAIN@LISTSERV.UA.EDU Subject: job output into dataset -- This email has reached the Bank via an external source -- Hello, We have some address spaces running from long time and produce messages regularly. Now, my requirement is to cut those messages on regular basis and keep appending into seperate dataset. This way, we will save spool size and no need to recycle the address space to remove old message. Can anybody help me doing this task. Regards Venkat -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC327000. Telephone: 03457 801 801. Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales 2299428. Telephone: 0345 603 1637 Lloyds Bank plc, Bank of Scotland plc are authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority. Cheltenham & Gloucester plc is authorised and regulated by the Financial Conduct Authority. Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings is a division of Lloyds Bank plc. HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC218813. This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Telephone calls may be monitored or recorded. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: job output into dataset
Classification: Public If it's just the JESLOG you're interested in, take a look at the JESLOG parameter of the JOB card: Syntax: JESLOG= {SPIN} {NOSPIN} {SUPPRESS} Subparameter Definition: SPIN JESLOG is spin-eligible. There is an optional second operand. JESLOG=(SPIN,hh:mm) JESLOG will be spun at time hh:mm each 24 hour period. "hh" is hours and has a range of 00 through 23. "mm" is minutes and has a range of 00 through 59. JESLOG will be spun when the next message is written to the data set after the specified time. JESLOG=(SPIN,+hh:mm) JESLOG will be spun every hh:mm time interval. "hh" is hours and has a range of 00 through 23. "mm" is minutes and has a range of 00 through 59. The minimum interval which can be specified is 10 minutes. Note that "hh" must be specified even if zero. For example, JESLOG=(SPIN,0:20) JESLOG will be spun when the next message is written to the data set after the specified time. JESLOG=(SPIN,nnn) JESLOG=(SPIN,nnnK) JESLOG=(SPIN,nnnM) JESLOG will be spun when either data set has "n" lines. A minimum of 500 lines must be specified. "K" is thousands and "M" is millions. Andy Styles z/Series Systems Programmer -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of venkat kulkarni Sent: 02 May 2017 08:35 To: IBM-MAIN@LISTSERV.UA.EDU Subject: job output into dataset -- This email has reached the Bank via an external source -- Hello, We have some address spaces running from long time and produce messages regularly. Now, my requirement is to cut those messages on regular basis and keep appending into seperate dataset. This way, we will save spool size and no need to recycle the address space to remove old message. Can anybody help me doing this task. Regards Venkat -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC327000. Telephone: 03457 801 801. Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales 2299428. Telephone: 0345 603 1637 Lloyds Bank plc, Bank of Scotland plc are authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority. Cheltenham & Gloucester plc is authorised and regulated by the Financial Conduct Authority. Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings is a division of Lloyds Bank plc. HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC218813. This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Telephone calls may be monitored or recorded. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
job output into dataset
Hello, We have some address spaces running from long time and produce messages regularly. Now, my requirement is to cut those messages on regular basis and keep appending into seperate dataset. This way, we will save spool size and no need to recycle the address space to remove old message. Can anybody help me doing this task. Regards Venkat -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN