Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. p_com_02 counting deleted records as new

    p_com_02 counting deleted records as new

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    Is p_com_02 supposed to count deleted records as new? I ran a check against z13_open_date and found that the numbers were different. When I looked at them, it was that deleted records are counted as newly cataloged. For example, doing a p_com_02 for records created between 7/1/2007 and 7/17/2007, I came up with 1 more than using z13. So I used p_ret_01 to retrieve the records created between 7/1/2007 and 7/17/2007 and then having a DEL subfield a Y. The deleted record was returned. I understand why this is happening, but it makes our statistical reporting of "Total new cataloging" give misleading results.

    Resolution:
    $aleph_proc/p_com_02 executes the .../a18_1/alephm/sql_stat/util_s_01_23.sql, reading the z13, to select the New records and the Updated records:

    spool $data_scratch/util_s_01_23.open
    select distinct substr(Z13_REC_KEY,1,9)
    from &&1..Z13
    where Z13_OPEN_DATE >= &&FROM_DATE and
    Z13_OPEN_DATE <= &&TO_DATE;

    spool $data_scratch/util_s_01_23.update
    select distinct substr(Z13_REC_KEY,1,9)
    from &&1..Z13
    where Z13_UPDATE_DATE >= &&FROM_DATE and
    Z13_UPDATE_DATE <= &&TO_DATE and
    Z13_OPEN_DATE <> Z13_UPDATE_DATE;

    It will get all records created in this time period regardless of whether they have been deleted.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • p_circ_51 using default values, not customized
      • p_course_01 (Course List Report) sorted by Department omits certain courses
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved