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 <[email protected]> 
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)" <
>[email protected]> 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:[email protected]] On
>Behalf Of venkat kulkarni
>Sent: 02 May 2017 08:35
>To: [email protected]
>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 [email protected] 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 [email protected] with the message: INFO IBM-MAIN
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to