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. Adding util a/17/1 to the job_list

    Adding util a/17/1 to the job_list

    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:
    Is it possible to add util a/17/1 (util_a_17_01) to the job_list?

    Resolution:
    Two methods of doing this are described below....
    --------------------------
    METHOD #1:
    --------------------------
    The $aleph_proc/util_a_17_b is a version of util_a_17_01 intended for inclusion in other procedures.

    To permit util_a_17_b to run in the job_list as a standalone job, you need to make a util_a_17_b_job:

    > ap
    > cp util_a_17_b util_a_17_b_job
    > vi util_a_17_b_job

    Then change lines 5 - 15 of util_a_17_b_job from:

    if ($#argv != 2) then
    echo "Usage: $0 <table|index|table_index|index_list|synonym|trigger> <all|tablename>"
    rm_f_symbol
    exit(1)
    endif
    #
    set l_op = `echo $1 | aleph_tr -l`
    set l_table = `echo $2 | aleph_tr -l`
    echo $active_library $l_op $l_table
    cd $data_scratch

    to:

    if ($#argv != 3) then
    echo "Usage: $0 <library> <table|index|table_index|index_list|synonym|trigger> <all|tablename>"
    rm_f_symbol
    exit(1)
    endif
    #

    set active_library = `echo $1 | aleph_tr -l`
    set l_op = `echo $2 | aleph_tr -l`
    set l_table = `echo $3 | aleph_tr -l`
    echo $active_library $l_op $l_table
    echo "library == $active_library"
    cd $data_scratch


    The job_list entry would look like this:

    W4 18:05:00 N csh -f /exlibris/aleph/a20_3/aleph/proc/util_a_17_b_job USMnn table_index znn

    where "USMnn" is the library and "znn" is the table you want to drop/create.

    ----------------------------------
    METHOD #2:
    ----------------------------------

    Create a proc like the following util_a_17_1_z301, in which the "z301" is changed to the file that you want to drop/create:

    # dlib to usm50
    source $aleph_proc/def_local_env
    start_p0000 usm50

    # run util a 17 1 on z301
    source $aleph_proc/util_a_17_01 << EOF
    usm50
    z301
    yes
    no
    EOF

    <end sample util_a_17_1_z301proc >

    To run do this:

    csh -f /$aleph_proc/util_a_17_1_z301

    You can also put above line in job list.

    [end METHOD #2]


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Adding substring of z76-budget-number form acq-full-inv-info.xsl
      • Addition of ISSN or ISBN in orders created from file-96
    • 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