Not able to delete old library codes in PanApt
search cancel

Not able to delete old library codes in PanApt

book

Article ID: 281427

calendar_today

Updated On:

Products

PanApt

Issue/Introduction

When trying to delete an obsolete library code PanApt is returning message "APCS1910-12 Library Code can't be deleted because of Move Request Usage".

Yet a query of the library codes shows no such request usage(APCS1230-02 No matching Move Requests were found"). 

Environment

PanApt

z/OS

Resolution

Follow the procedures below to clear out any outstanding requests:

1) From the Inventory Maintenance Panel:

   Verify if there are any outstanding entries(members) for the specific library code. If there are only a few then issue delete for each entry(member).

   If there are a lot then proceed to step2. If there are no outstanding entries(members) at all then move to step 3.

 

    ------------------  Inventory File Maintenance - Entry Panel  ------  CA-PanAPT
 Command ===>
 
  Enter an Action or MSL   ===> MSL         (MSL, will display a criteria panel)
  Library Code/subcode  ===> XXX  /  PAN (Enter LC on Command line for MSL)

  Results returned:

  Command ===>                                                  Scroll ===> CSR
 
 Inventory Maintenance Actions:
 |    C -Change  P -Approve  I -Inquiry (View Inv)   D -Delete Verify ==>   (N)
 |
 ||Member Assignment Actions:
 ||   A -Assign  L -Release  R -Assign and Retrieve  T -Transfer to user
 ||   Last-Action
 VV   |                  To     To Move
 ACT  V   Member       Userid   Request
               ADD2
               ADD3
               DMSCOPY
               DRS01
               DSR01

 

2) From the Library Code File Maintenance Panel:

    Changed the library code and page down until Inventory Options page is displayed.

    Change the Require approved Inventory record  ( Y ) field from Y to N (if applicable).

     ----------------  Library Code Maintenance - Inventory Options  ----  CA-PanAPT
    Command ===>
 
    Action ( CHG )                         Library code / subcode ( HOB  / PAN )
 
   Inventory options
     Inventory enabled                  ( Y )
     Inventory qualifier                  ( XXX /PAN )
     Auto create at assignment     ( Y )
     Auto approve at creation       ( Y )
     Require approved Inventory record  ( Y )
     Edit exit program    (          )
               parameter  (                                                    )

 

3) From the Move Request Panel:

    Browse the move request by issuing BRO and leave the request number blank, press enter.

     --------------------------  Move Request Maintenance  --------------  CA-PanAPT
    Command ===>
 
 
    Action   ==> BRO                    - Defaults to BRO
    Move Req ==>                        - Move Request number or Change name,
                                      required if Action not ADD or BRO

    Change the "TO DATE" to 9999/12/31/ - To pick up any move requests that might have been set far out in the future. Press enter.

    ----------------------  Change, Move Selection Criteria  -----------  CA-PanAPT
   Command ===>                                                  Scroll ===> PAGE
 
   Range Criteria:        From                 To
     Move Request Numbers ( 000001 )           ( 999999 )
     Final move dates      ( 1990 / 01 / 01 )   ( 9999 / 12 / 31 )
     Next move dates      ( 1990 / 01 / 01 )   ( 9999 / 12 / 31 )
 Other Criteria:
    Change Name          ( *                )
    Library Code/Subcode ( XXX  / PAN )  Member Name     (            )
    Originator           (          )
    Move Type            (   )           Project Name    (                  )
    Held Move Requests   (   )           Service Request ( *                )
 Additional criteria    (   ) (blank, A -Approvals & Verifications, S -Status)

Press Enter

   -------------------------  Browse Move Requests List  ----- Row 12 to 26 of 26
 Command ===>                                                  Scroll ===> CSR
 
 Action Commands:                                     Current Request( BRO )
 |  ADD  CHG  COP  CR  INQ  STA  DEL  PRT  APP  BAK  CLO  RVP  DAT  VA  VV
 |
 V
 Act  Move  Description                                             Status
 === ====== ===============================================================  

        000275 test for z/15 using MOD2                      MVP
        000276 testing                                                   CRE

  Delete any outstanding entries(move request) by entering DEL under the ACT for the move requests.

 

4) Edit the PURGEPEND batch job located in CABYJCL member APJJ5950.

    This batch job will read the APTDB file selecting the move request and purge them to the APTHIST(history file).  

    Make sure the history file has been created and the APJJ5950 job has the correct CABYPROC and VSAM database prefix.

    SYSIN Example below:

    //APCS5950.APTSYSIN DD *
    ACTION="PURGEPEND"
    MR="000275"        <<< One move request >>> or
    MR="000275:000276" <<< Range of move requests >>>
    //

 

5) Submit the batch job.

 

6) From the Library Code File Maintenance Panel:

    Delete the Library Code

    -------------------  Library Code Maintenance - Entry Pa Row 154 to 160 of 207
 Command ===>                                                  Scroll ===> CSR
 
 Action Commands:
 |     ADD or A     CHG or C     INQ or I     COP (copy)    DEL (delete)
 |
 V      Library Code
 Act   Old        New   Description
 === ======== ========= ======================================================
 DEL XXX /PAN          Libcode for PAN movement
   ADD/COPY=>      /