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. p_file_96: `cobrun get_file_format < ${file}`: Ambiguous

    p_file_96: `cobrun get_file_format < ${file}`: Ambiguous

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    In version 18, p_file_96 is crashing with an error `cobrun get_file_format < ${file}`: Ambiguous.

    You can find a log file at $alephe_scratch/mit01_p_file_96.00066, or I can send it to you if desired. A small sample MARC file is at $data_scratch/uk0725.ord.gfund. This procedure is extremely important to us, as this is how approximately 70% of our orders are created.

    Resolution:
    The problem was due to extra displays that someone added to get_file_format.cbl (you can see the original file in get_file_format.cbl.keep.exlibris)
    The program works correctly now.

    From Tami:
    The problem was due to extra displays that someone added to get_file_format.cbl (you can see the original file in get_file_format.cbl.keep.exlibris):
    display "REC-IN-DOC-NUMBER= " REC-IN-DOC-NUMBER.
    display "REC-IN-CODE= " REC-IN-CODE.
    display "REC-IN-ALPHA= " REC-IN-ALPHA.

    This program displays the format of a given file.
    The script of p_file_96 compares the output of this program, and continues accordingly:
    if ( `cobrun get_file_format < ${file}` == "MARC" ) then…

    When the program displayed more then one string, the compare could not be done.

    I ran:
    walter-a18(2) >>csh -f $aleph_proc/p_file_96 USM01,jerout,tab_96_def,USM60,USM50,N,N,N,,N > /exlibris/aleph/u18_2/mit01/scratch/p_file_96_log_exlibris

    You can see the log in /exlibris/aleph/u18_2/mit01/scratch/p_file_96_log_exlibris:
    walter-18(2) MIT01-ALEPH>>grep cobrun p_file_96_log_exlibris
    walter-18(2) MIT01-ALEPH>>tail p_file_96_log_exlibris
    Load: /exlibris/aleph/u18_2/alephe/unicode/marc8_lat_to_unicode
    --------------------------------------------------------------
    Load: /exlibris/aleph/u18_2/alephe/tab/tab100
    --------------------------------------------------------------
    Load: /exlibris/aleph/a18_2/usm01/tab/tab100
    Load: /tmp/utf_files/exlibris/aleph/a18_2/usm01/tab/tab01.eng
    3 END READING AT 06:43:59
    Note : Last BIB doc number (start): 000050090
    Note : Last BIB doc number (end) : 000050092
    end


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • p_file_96: "sql_stmt<select ..." lines
      • p_file_96: acceptable forms of date
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      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