Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Adding util a/17/1 to the job_list

    • 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
    //Feedback