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. cron job to read last-doc-number's

    cron job to read last-doc-number's

    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:
    I was asked to write a linux script that will send alerts to certain people when the cjh01 and cjh50 doc_numbers are out of synch (they don't want to use cjhxx.z103 because slows down reports). This will run as a cron job in the end.
    1. How I can switch from root user to aleph user without password inside a linux script to be able to do "s+ cjhxx"
    2. I would like to know which one holds the most accurate last-doc-number in cjhxx.z00 or cjhxx.z52(the last one being updated periodically)?
    Is it when you
    a.select max(z00_rec_key) from cjhxx.z00
    Or
    b. Select z52_sequence from cjhxx.z52 where z52_rec_key = 'last-doc-number';?

    Resolution:
    1. "s+" is an Aleph thing. This does the same: > sqlplus usm50/usm50

    2. Whenever max(z00_rec_key) changes the z52 last-doc-number is updated. They should always be the same.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Credit/Debit Accounting in Aleph; exporting of Cash transactions
      • Cron jobs released 1 hour late
    • 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