Page 1 of 2

JES2 and purge by batch

PostPosted: Fri Sep 06, 2013 2:48 pm
by samb01
Hello,
i would like to purge all the job sysout with MSGCLASS=B by batch which have ten days old.

Is-it possible by batch ?

Thanks for your help.

Re: JES2 and purge by batch

PostPosted: Fri Sep 06, 2013 6:02 pm
by NicC
Probably - what are you going to execute in batch? Probably SDSF? With, perhaps a Rexx wrapper?

Re: JES2 and purge by batch

PostPosted: Fri Sep 06, 2013 6:28 pm
by prino
Use, if you're allowed to do so, the JES2 $O command

Re: JES2 and purge by batch

PostPosted: Fri Sep 06, 2013 7:48 pm
by Akatsukami
samb01 wrote:Hello,
i would like to purge all the job sysout with MSGCLASS=B by batch which have ten days old.

Is-it possible by batch ?

As you can see, there is a powerful and flexible Rexx/SDSF interface.

Re: JES2 and purge by batch

PostPosted: Mon Sep 09, 2013 5:09 pm
by samb01
Hello,

i have an error after this command :

ADDRESS SDSF "ISFACT ST TOKEN('"TOKEN.IX"') PARM(NP P)"



Here is the error :

    23 *-*    /* IDENTIFIED BY THE TOKEN VARIABLE.  NOTE     */                 
    24 *-*    /* THE TOKEN MUST BE ENCLOSED IN SINGLE QUOTES */                 
    25 *-*    ADDRESS SDSF "ISFACT ST TOKEN('"TOKEN.IX"') PARM(NP P)"           
       >L>      "ISFACT ST TOKEN('"                                             
       >C>      "TOKEN.1"                                                       
       >V>      "3h4hhoSZo5KWVMNFxEBBQO5Qw0x4QGlA1IP8LEyWl4NTl1NATomihhIOIJKEQGB
       >O>      "ISFACT ST TOKEN('3h4hhoSZo5KWVMNFxEBBQO5Qw0x4QGlA1IP8LEyWl4NTl1
iMyxwBEQEHW1g=="                                                               
       >L>      "') PARM(NP P)"                                                 
       >O>      "ISFACT ST TOKEN('3h4hhoSZo5KWVMNFxEBBQO5Qw0x4QGlA1IP8LEyWl4NTl1
iMyxwBEQEHW1g==') PARM(NP P)"                                                   
       +++ RC(8) +++                                                           
    26 *-*    LRC=RC                                                           
       >V>      "8"                                                             


Re: JES2 and purge by batch

PostPosted: Mon Sep 09, 2013 5:25 pm
by prino
The error is in line 12 of your code!

Re: JES2 and purge by batch

PostPosted: Mon Sep 09, 2013 7:16 pm
by samb01
How can you see that ?
I think it's a problem of right may be ?

How could i check it ?

Re: JES2 and purge by batch

PostPosted: Mon Sep 09, 2013 8:10 pm
by Akatsukami
samb01 wrote:How can you see that ?
I think it's a problem of right may be ?

How could i check it ?

Display the messages.

Re: JES2 and purge by batch

PostPosted: Mon Sep 09, 2013 8:24 pm
by dick scherrer
Hello,

If after reading about the message(s) you are still stuck, you need to post the code (at least the bit that has a problem).

For diagnosing, it is often a good thing to copy the problem code into a small test script and debug.

Re: JES2 and purge by batch

PostPosted: Mon Sep 09, 2013 8:33 pm
by samb01

     37 *-*     IF ISFMSG<>""                                             
        >V>       "NOT AUTHORIZED FOR JOB"                                 
        >L>       ""                                                       
        >O>       "1"                                                     
1       *-*      THEN                                                     
     38 *-*      SAY "ISFMSG IS:" ISFMSG                                   
        >L>        "ISFMSG IS:"                                           
        >V>        "NOT AUTHORIZED FOR JOB"                               
        >O>        "ISFMSG IS: NOT AUTHORIZED FOR JOB"                     
 ISFMSG IS: NOT AUTHORIZED FOR JOB                                         
     39 *-*      /* THE ISFMSG2 STEM CONTAINS ADDITIONAL DESCRIPTIVE */   
     40 *-*      /* ERROR MESSAGES                                   */   


thank's.

i don't what can i do to have the right ...