Thanks for the CL Source code Chuck.
 
When I try to delete the journal receiver(created between 1st Jan to 1st March),the system cannot delete these specific receivers.
 
The error message which I get is
 
Cause . . . . . :   You tried to delete journal receiver RECVXXX in library
  TEST; however, the previous journal receivers are not deleted.  Journal 
  receivers must be deleted in the same order in which they were attached.

Now the problem is I have to delete only receivers created between specific date mentioned above.
 
Please can anyone help me this.
Regards
Sneha   

--- On Thu, 1/4/10, CRPence <CRPbottle@xxxxxxxxx> wrote:


From: CRPence <CRPbottle@xxxxxxxxx>
Subject: Re: Journal Cleanup
To: midrange-l@xxxxxxxxxxxx
Date: Thursday, 1 April, 2010, 5:46 PM


   Given a list of *JRNRCV object names as rows in a database *FILE
named QTEMP/ODJRNRCVLST, where the journal receiver name is column
ODOBNM & the journal receiver library name is column ODLBNM, the
following CLP source for example:

<code>

   dclf QTEMP/ODJRNRCVS
   NextJrnRcv:
    rcvf
    monmsg cpf0864 /* no more *jrnrcv */ exec(do)
      rcvmsg (*SAME (*)) *PGMQ *EXCP rmv(*YES))
      goto AllDone:
    dltjrnrcv &odlbnm/&odobnm dltopt(*igninqmsg)
    goto NextJrnRcv
   AllDone:
    return

</code>

   How that list or rows as *JRNRCV qualified names is
obtained\generated, is left as an exercise for the reader.  It could
be as simple as DSPOBJD *ALLUSR/*ALL *JRNRCV *FULL OUTPUT(*OUTFILE)
OUTFILE(QTEMP/ODJRNRCVS) OUTMBR(*FIRST *REPLACE) /* optionally rows
previously deleted or omitted; e.g. by a logical view */

Regards, Chuck

Sneha Verma wrote:
 
I have 250-300 journal receivers in different library which are
to be deleted. Please can anyone tell me the CL Source Program
which can help me delete these receivers from each of the
libraries.
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.