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. Populating z30_inventory_number with counter value from util g/2 (z52)

    Populating z30_inventory_number with counter value from util g/2 (z52)

    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:
    How can we populate the z30_inventory_number with a counter value from util g/2 (z52)?

    Resolution:
    If you want to populate the z30_inventory_number with a unique number from the z52 -- let's say you want to continue using "i" as the prefix --, then you would add an entry like this to util g/2 (the z52):

    Sequence Name Value Suppress Type Prefix

    27. i 4533140 y S i

    {where "i4533140" is the max (z30_inventory_number) }

    and then you'd place the following in the xxx01/tab/import/tab_96_def for p_file_96:

    Z30-INVENTORY-NUMBER xxxxx i

    and something similar for p_manage_50.

    And a GUI operator would enter "?i" in the

    This is based on the following code (from the pc_item_c0917 program):

    IF TAB100-INVENTORY-NUMBER = "Z52"
    THEN
    IF Z30-INVENTORY-NUMBER (1: 1) = "?"
    THEN
    MOVE Z30-INVENTORY-NUMBER (2: ) TO Z52-NAME

    MOVE 20 TO L
    CALL "pic_to_lower" USING
    Z52-NAME
    L
    END-CALL

    CALL "get_sequence" USING
    ACTIVE-LIBRARY
    "NEXT"
    Z52-SEQ-NUMBER
    Z52-ERROR-CODE
    END-CALL


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Populating z30_enumeration_a with the Z30-ITEM-SEQUENCE for multi-volume sets
      • Position of setenv parameter lines aleph_start file
    • Was this article helpful?

    Recommended articles

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