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. Number of zeros inserted when util g/2 Suppress = "N"

    Number of zeros inserted when util g/2 Suppress = "N"

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

    Description:
    When we specify "N" for Suppress Leading Zeros in a util g/2 counter for a particular library, the number of zeros inserted in front of the Value is always 9 minus the number of characters in the Value, that is, a value of "12345" will have four zeros inserted, making "000012345".

    If we have a 4-character Prefix value and if, as is the case with the last-bor-id:

    Sequence Name Value Suppress Type Prefix
    -------------------- --------- -------- ---- --------------------
    10. last-bor-id 12345 N S ABC-

    the field in which the value is to be used {the z303_rec_key (the Aleph-assigned patron ID)} is only 12 bytes, the last byte (of the the z303_rec_key) will be truncated.

    For example, if we have a prefix of ABC- and a value of 000012345, the resulting complete value will be "ABC-000012345". But the z303_rec_key is only 12 bytes, so the key actually stored is "ABC-00001234".

    Resolution:
    As can be seen in the ./alephm/source/copy/Z52, the z52-SEQUENCE (the "Value" column in util g/2) is 9 bytes:

    Z52-SEQUENCE PICTURE 9(9)

    The number of zeros inserted will always be 9 minus the number of characters in the Value.

    There are only two solutions to this problem:

    1) Specify a shorter prefix. In the case of the last-bor-id this would be a prefix of three characters or fewer.

    2) Specify Suppress = "Y".

    In regard to other parameters: most of the targets of these parameters are 20 bytes or longer so there is usually no problem, but it is good to follow these rules:

    If you want to specify "N" for Suppress for a parameter which has "N" in the USMnn util g/2 example, don't specify a Prefix which is longer than the one which you see in the distributed.

    If you want to change "Y" to "N" for a particular parameter, then consider whether the length of the Prefix + Value is greater than the length of the target.

    Additional Information

    faq


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Number of z00p records fewer than should be
      • Numbering of rep_change's in version 20-up
    • 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