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. SQL to update the 852 subfield h

    SQL to update the 852 subfield h

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

    Description:
    For all the records with a sub-library of MEDIA that have the 852 subfield h set to '0', we want to change the 852 subfield h to '8'. The problem is that there are so many records it would take months to change them using the GUI, so we would like to change it programmatically.

    I know that the 852 subfield h is the z30_call_no_type in the ABC50.Z30 and ABC50.Z30H. I also know that the HOL record containing that field is in ABC60 somewhere, but I do not know where. So here is my question:

    If I write a SQL program to update the 852 subfield h, in what tables is the value stored? Or, to put it another way, what fields, in what tables, in what databases need to be updated?

    Resolution:
    As described in KB 8192-4359, the HOL record (and all of the ALEPH z00 doc records) are stored in Binary-Long Object format. You can not run SQL against them.

    You will need to do this:

    1. Run p_ret_01 in ABC60 to locate the relevant HOL records.

    2. Use the output file of record numbers from step 1 as input to the p_manage_21 Global change (in ABC60). The change made by p_manage_21 will be propagated to the associated item records.

    3. The update to the HOL record will also generate z07 records in the bib library, which will be processed by the bib ue_01, which will update the bib library call number indexes.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • SQL to show out-of-sync Bib/ADM record keys
      • SQL update doesn't actually take effect
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 17.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