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. Translating due date from the Z31-KEY field

    Translating due date from the Z31-KEY field

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

    Description:
    I am running cash-02 to generate a list of patrons billed for lost items. I would like to include the due date for this items in the report, and I see that information is contained in the Z31-KEY field that is part of the XML data.

    How can I translate that field to make it look nice for the report? I would like to be able to display bytes 63-70.

    Resolution:
    Here is an example of SQL to format Aleph yyyymmdd dates:

    usm50@ALEPH201> select to_date (z36_loan_date, 'YYYY/MM/DD') from z36;

    And here is specific SQL for the Z31-KEY due date:

    usm50@ALEPH201> select to_date (substr (z31_key,63,8), 'YYYY/MM/DD') from z31;


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Translate special characters within a fix or expand routine
      • Translation (trn) File Options for Forms / XSL
    • Was this article helpful?

    Recommended articles

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