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

    p_cash_10 log has error messages: empty export file - ns

    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    I am trying to test cash-10 to see if/how we can use it with our campuses. I have created last-cash-transfer and last-cash recall using util g/2 in the xxx50 library:
    10. last-cash-recall 1 N U
    12. last-cash-transfer 1 N U

    When I run cash-10, a report file is correctly created in the xxx50/print directory. An export file is created in the xxx50/scratch directory, but it has no content:
    <?xml version="1.0"?>

    These 2 error messages are in the log file. They each appear multiple times - possibly one for every entry that should be in the export file:

    sort: warning: missing NEWLINE added at end of input file /aleph/prod/abc/abc50/scratch/cash_10_1
    Error (b_cash_10_c) : failed to read z308-rec-key

    The problem seems to be with the "gsort" command on the customer's AIX machine:

    1. The script p_cash_10 uses the command "$aleph_sort"

    2. The command "$aleph_sort" is interpreted on AIX machines as follows:

    il-aix01-a18(2) >>echo $aleph_sort
    gsort -y -T /exlibris/aleph/a18_2/tmp

    3. However, if there is a problem with "gsort", then $aleph_sort is interpreted as follows (this is the problem on the customer's server):

    >>echo $aleph_sort
    sort -A -y -T /aleph/prod/osw/tmp

    4. the gsort on our AIX server il-aix01 is of a newer version:

    -rwxrwxr-x 1 aleph exlibris 44198 Nov 13 2004 gsort*

    We've put the new version of gsort on your server, directory /app/exlibris/aleph/a18_1/product/bin:

    We've backed up the original gsort:

    -rwxr-xr-x 1 aleph aleph 313167 Dec 22 2003 gsort.20100228*

    Here is the new gsort I brought from our server il-aix01 :

    -rwxr-xr-x 1 aleph aleph 44198 Feb 28 03:31 gsort*

    We've tested gsort. It seems to be working well.

    • Article last edited: 10/8/2013