Endevor

 View Only
  • 1.  Endevor Package delete using batch package facility

    Posted Jan 21, 2025 09:27 AM

    Hello,

    Using below code, I'm trying to delete only STATUS=EXECUTED  package using Batch package facility. But below code is deleting STATUS=IN_APPROVAL Package also. Could you please help on this.

    //ENPSCLIN   DD DATA,DLM=II               
     DELETE PACKAGE 'P012624AUTOPKG1'         
     OPTIONS WHERE PACKAGE STATUS IS EXECUTED.
    II                                         



  • 2.  RE: Endevor Package delete using batch package facility

    Broadcom Employee
    Posted Jan 21, 2025 09:38 AM

    Hi Suvakumar,

    You have coded a Package name " DELETE PACKAGE 'P012624AUTOPKG1'      "
    The option WHERE PACKAGE STATUS specifies the statuses of the Packages you are deleting.
    You can only use this clause when you wildcard the Package ID. If you do not specify the WHERE PACKAGE STATUS clause, the DELETE PACKAGE action deletes Packages of any status type.
    -> https://techdocs.broadcom.com/us/en/ca-mainframe-software/devops/ca-endevor-software-change-manager/19-0/reference/scl-reference/manage-packages-in-batch-batch-package-facility/delete-package-syntax.html

    Regards,
    Ollivier



  • 3.  RE: Endevor Package delete using batch package facility

    Posted Jan 21, 2025 10:35 AM

    Thank you Ollivier, I want to check the status of one particular package: 

                        If the package is IN APPROVAL status, then the package should not delete.

                        IF the package is in EXECUTED status, then the package should delete.

    Could you please suggest me to achieve this condition...




  • 4.  RE: Endevor Package delete using batch package facility

    Broadcom Employee
    Posted Jan 21, 2025 11:06 AM
    Edited by Ollivier-Francois Dorso Jan 21, 2025 11:31 AM

    Can you try this ?
    //ENPSCLIN   DD DATA,DLM=II               
     DELETE PACKAGE P012624AUTOPKG1*      
     OPTIONS WHERE PACKAGE STATUS IS EXECUTED.
    II       




  • 5.  RE: Endevor Package delete using batch package facility

    Broadcom Employee
    Posted Jan 21, 2025 08:40 PM

    There is an alternative method for doing massive DELETE/ RESET/ COMMIT actions on packages using two items - PKGMAINT and PMAINTPN from  here.

    Use the Endevor package panels to list the packages you want, then enter TSO PKGMAINT on the command line.